diff options
author | Robert Schuster <thebohemian@gmx.net> | 2008-01-29 11:32:23 +0000 |
---|---|---|
committer | Robert Schuster <thebohemian@gmx.net> | 2008-01-29 11:32:23 +0000 |
commit | 77cb724357c5ced429a7c5445c4db6aa18fe84d7 (patch) | |
tree | 320300d3ff443c8a3f87c0ce113317f9660aeb72 /packages/kxml2/kxml2_2.3.0.bb | |
parent | 849474e1d48a4c5e44abe5ef901d368ad615086d (diff) |
kxml2: Reworked to be build from source.
xmlpull: Added recipe.
Diffstat (limited to 'packages/kxml2/kxml2_2.3.0.bb')
-rw-r--r-- | packages/kxml2/kxml2_2.3.0.bb | 44 |
1 files changed, 25 insertions, 19 deletions
diff --git a/packages/kxml2/kxml2_2.3.0.bb b/packages/kxml2/kxml2_2.3.0.bb index 7682e84311..994a0a5799 100644 --- a/packages/kxml2/kxml2_2.3.0.bb +++ b/packages/kxml2/kxml2_2.3.0.bb @@ -1,32 +1,38 @@ -DESCRIPTION = "kxml2 is a small XML pull parser" -HOMEPAGE = "http://kxml.sourceforge.net/" -LICENSE = "BSD" +DESCRIPTION = "A small XML pull parser, specially designed for constrained environments such as Applets, Personal Java or MIDP devices" +HOMEPAGE = "http://kxml.sourceforge.net" PRIORITY = "optional" -PR = "r0" +SECTION = "libs" +LICENSE = "BSD CPL LGPL" +PR = "r1" +inherit java-library -JAR = ${PN}-${PV}.jar +DEPENDS = "xmlpull" +RDEPENDS = "libxmlpull-java" -SRC_URI = "http://downloads.sourceforge.net/kxml/${JAR}" +S = "${WORKDIR}" +JAR = "${PN}-${PV}.jar" -do_unpack() { - : -} - -do_install() { +SRC_URI = "\ + http://belnet.dl.sourceforge.net/sourceforge/kxml/${PN}-src-${PV}.zip \ + file://makefile.patch;patch=1 \ + " -install -d ${D}${datadir}/java -install -m 0644 ${DL_DIR}/${JAR} ${D}${datadir}/java +do_compile() { + oe_runmake -C src \ + JAVAC_FLAGS="-sourcepath . -cp ${STAGING_DATADIR}/java/xmlpull.jar" \ + JAR="oefatal \"No jar invocation expected here.\"" \ + oe_runmake -C src \ + JAVAC="oefatal \"No Java compilation expected here.\"" \ + jar } do_stage() { - -install -d ${STAGING_DATADIR}/java -install -m 0644 ${DL_DIR}/${JAR} ${STAGING_DATADIR}/java - + oe_jarinstall -s src/${JAR} ${PN}.jar } - -FILES_${PN} = "${datadir}/java/${JAR}" +do_install() { + oe_jarinstall src/${JAR} ${PN}.jar +} |