aboutsummaryrefslogtreecommitdiff
path: root/recipes/jakarta-libs/avalon-framework-api_4.3.bb
blob: 06fde6224ca24d9d223e7a1f94214c5f609730e5 (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
DESCRIPTION = "Common way for components to be created, initialized, configured, started. (API-only)"
LICENSE = "AL2.0"
AUTHOR = "Apache Software Foundation"

SRC_URI = "\
	http://www.apache.org/dist/excalibur/avalon-framework/source/${BP}-src.tar.gz;name=archive \
	http://www.apache.org/dist/avalon/logkit/source/logkit-1.2.2-src.tar.gz;name=logkit \
	"

inherit java-library

DEPENDS = "fastjar-native"

PR = "r1"

do_compile() {
  mkdir -p build

	#	Allow reaching method definitions from logkit (stupid cyclic dependency).
	srcpath=src/java:${WORKDIR}/logkit-1.2.2-dev/src/java

  javac -sourcepath $srcpath -d build `find src/java -name "*.java"`

	# Remove classes that belong to logkit ...
	rm -rf ${S}/build/org/apache/log

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



SRC_URI[archive.md5sum] = "d4cffb4ba1d07bdc517ac6e322636495"
SRC_URI[archive.sha256sum] = "a4d56a053609ddfc77f6a42c3f15a11708d5e0eb29ffc60a40b87e4cc7331d47"
SRC_URI[logkit.md5sum] = "996ee20d6b5785ab71f4692f64d10f9c"
SRC_URI[logkit.sha256sum] = "2c81edc87571fbd05797da7f65515e089c62cbb735bdbd10f93e29bd3aa3ddb8"

NATIVE_INSTALL_WORKS = "1"
BBCLASSEXTEND = "native"