summaryrefslogtreecommitdiff
path: root/recipes/jakarta-libs/logkit_1.2.2.bb
blob: c5eceee2b4b69494198094b605c3e1ef8ff66633 (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
DESCRIPTION = "Logging toolkit designed for secure performance orientated logging in Java applications"
LICENSE = "AL2.0"
AUTHOR = "Apache Software Foundation"

SRC_URI = "http://www.apache.org/dist/avalon/logkit/source/${BP}-src.tar.gz"

inherit java-library

S = "${WORKDIR}/${BP}-dev"

DEPENDS = "fastjar-native oro servlet2.3 gnumail gnujaf log4j1.2 avalon-framework-api"
DEPENDS_virtclass-native = "fastjar-native oro-native servlet2.3-native gnumail-native gnujaf-native log4j1.2-native avalon-framework-api-native"

PR = "r1"

do_compile() {
  mkdir -p build

  oe_makeclasspath cp -s oro servlet-2.3 activation gnumail log4j-1.2 avalon-framework-api

  # Built everything but the JMS and JMX classes (like in Debian)
  javac -encoding ISO8859-1 -sourcepath src/java -cp $cp -d build \
    `find src/java -name \*.java -and -not \( -iwholename "*jms*" -or -wholename "*test*" \)`

  (cd src/java && find . -name "*.properties" -exec cp {} ../../build/{} \;)

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

SRC_URI[md5sum] = "996ee20d6b5785ab71f4692f64d10f9c"
SRC_URI[sha256sum] = "2c81edc87571fbd05797da7f65515e089c62cbb735bdbd10f93e29bd3aa3ddb8"

NATIVE_INSTALL_WORKS = "1"
BBCLASSEXTEND = "native"