summaryrefslogtreecommitdiff
path: root/recipes/classpathx/gnujaf_1.1.1.bb
blob: e0dfd2491305a090415b64ac0d07c6817cd3f6fb (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
DESCRIPTION = "Provides a mean to type data and locate components suitable for performing various kinds of action on it."
LICENSE = "GPL + library exception"
AUTHOR = "GNU ClasspathX"

SRC_URI = "\
  http://ftp.gnu.org/gnu/classpathx/activation-${PV}.tar.gz \
  file://datadir_java.patch \
  "

# java-library must be last (it defines do_stage)
inherit autotools java-library

S = "${WORKDIR}/activation-${PV}"

PR = "r1"

export JAVAC = "javac"

# Fake javadoc
export JAVADOC = "true"

JARFILENAME = "activation-${PV}.jar"
ALTJARFILENAMES = "activation.jar gnujaf.jar"

do_compile() {
  mkdir -p build

  javac -sourcepath source -d build `find source -name "*.java"`

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

SRC_URI[md5sum] = "de50d7728e8140eb404f2b4554321f8c"
SRC_URI[sha256sum] = "b1b5ef560d30fcb11fbf537246857d14110ce4eb2b200d4c54690472305d87b7"

NATIVE_INSTALL_WORKS = "1"
BBCLASSEXTEND = "native"