diff options
Diffstat (limited to 'recipes-core/jakarta-libs/log4j1.2_1.2.17.bb')
-rw-r--r-- | recipes-core/jakarta-libs/log4j1.2_1.2.17.bb | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/recipes-core/jakarta-libs/log4j1.2_1.2.17.bb b/recipes-core/jakarta-libs/log4j1.2_1.2.17.bb new file mode 100644 index 0000000..b37eb05 --- /dev/null +++ b/recipes-core/jakarta-libs/log4j1.2_1.2.17.bb | |||
@@ -0,0 +1,35 @@ | |||
1 | DESCRIPTION = "Java library to help the programmer output log statements to a variety of output targets" | ||
2 | AUTHOR = "Apache Software Foundation" | ||
3 | LICENSE = "AL2.0" | ||
4 | LIC_FILES_CHKSUM = "file://LICENSE;md5=f4ce41a6d1028498fcacde12f589bce7" | ||
5 | |||
6 | SRC_URI = "http://archive.apache.org/dist/logging/log4j/${PV}/log4j-${PV}.tar.gz" | ||
7 | |||
8 | inherit java-library | ||
9 | |||
10 | DEPENDS = "gnumail gnujaf" | ||
11 | DEPENDS_virtclass-native = "gnumail-native gnujaf-native" | ||
12 | |||
13 | S = "${WORKDIR}/apache-log4j-${PV}" | ||
14 | |||
15 | JARFILENAME = "log4j-${PV}.jar" | ||
16 | ALTJARFILENAMES = "log4j-1.2.jar log4j1.2.jar" | ||
17 | |||
18 | do_compile() { | ||
19 | mkdir -p build | ||
20 | |||
21 | oe_makeclasspath cp -s activation gnumail | ||
22 | |||
23 | # Built everything but the JMS and JMX classes (like in Debian) | ||
24 | javac -sourcepath src/main/java -cp $cp -d build `find src/main/java -name "*.java" -and -not \( -iwholename "*jms*" -or -iwholename "*jmx*" \)` | ||
25 | |||
26 | cp -R src/main/resources/* build/ | ||
27 | |||
28 | fastjar -C build -c -f ${JARFILENAME} . | ||
29 | } | ||
30 | |||
31 | SRC_URI[md5sum] = "8218714e41ee0c6509dcfeafa2e1f53f" | ||
32 | SRC_URI[sha256sum] = "a528e3771ee6234661b5eb0fa02e14faee89dfec38de94088c163ddf2a0a8663" | ||
33 | |||
34 | BBCLASSEXTEND = "native" | ||
35 | |||