summaryrefslogtreecommitdiffstats
path: root/recipes-core/xml-commons/jaxen_1.1.6.bb
blob: 2741f2cb5e6d6ed7cb322fc6f0bb70211e4679c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
SUMMARY = "XPath library written in Java"
DESCRIPTION = "Adaptable to many different object models, including \
DOM, XOM, dom4j, and JDOM. Is it also possible to write adapters that \
treat non-XML trees such as compiled Java byte code or Java beans as XML, \
thus enabling you to query these trees with XPath too.\
"
LICENSE = "BSD"
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=a2e66c2e2482aa23c11342f1469fa3b6"

HOMEPAGE = "http://jaxen.org/"

DEPENDS = "fastjar-native virtual/javac-native xerces-j xom"

# upstream has moved to github, do not rely on ephemeral tarball, use git
SRCREV = "7d7755ac8b19daa2ff6f319f432b864cc72d89b6"

SRC_URI = "\
        git://github.com/codehaus/${BPN} \
        http://www.jdom.org/dist/binary/archive/jdom-1.1.tar.gz;name=jdom \
"
SRC_URI[jdom.md5sum] = "22745cbaaddb12884ed8ee09083d8fe2"
SRC_URI[jdom.sha256sum] = "a13549087141be24ad176b659afdc2c675f1ffa5288ff999a193d6d44a282056"

S = "${WORKDIR}/git/jaxen"

PACKAGE_ARCH = "${TUNE_PKGARCH}"

inherit java-library

do_compile() {
  mkdir -p build

  oe_makeclasspath cp -s xercesImpl xom
	scp="src/java/main:${WORKDIR}/jdom-1.1/src/java"

  javac -sourcepath $scp -cp $cp -d build `find src/java/main -name "*.java" -and -not -wholename "*dom4j*"`
  (cd src/java/main && find org -name "*.properties" -exec cp {} ../../../build/{} \;)

	rm -rf build/org/jdom

  fastjar -C build -c -f ${JARFILENAME} .
}