summaryrefslogtreecommitdiff
path: root/recipes/classpathx/gnujaf_1.1.1.bb
blob: 1ae47172e74d1a07fe9ade1a32db1dd3d8a03798 (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
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;patch=1 \
  "

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

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

DEPENDS = "fastjar-native"

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} .
}

do_install() {
  java_install
}