diff options
author | Henning Heinold <heinold@inf.fu-berlin.de> | 2011-11-12 20:58:34 +0100 |
---|---|---|
committer | Henning Heinold <heinold@inf.fu-berlin.de> | 2011-11-26 23:41:44 +0100 |
commit | 57e069cde6617f00ca8834a82c6f360af43d5067 (patch) | |
tree | 48cbe15e96d217c45acfa64b0c13aad8c6424980 /recipes-core/classpathx | |
download | meta-java-57e069cde6617f00ca8834a82c6f360af43d5067.tar.gz |
meta-java: initial commit
* taken over mostly stuff from oe classic
* cleaned up recipes
* added license checksums
* bump icedtea6-native to 1.8.11
* use jamvm from git as native
Diffstat (limited to 'recipes-core/classpathx')
-rw-r--r-- | recipes-core/classpathx/gnujaf-1.1.1/datadir_java.patch | 23 | ||||
-rw-r--r-- | recipes-core/classpathx/gnujaf_1.1.1.bb | 35 | ||||
-rw-r--r-- | recipes-core/classpathx/gnumail-1.1.2/datadir_java.patch | 25 | ||||
-rw-r--r-- | recipes-core/classpathx/gnumail_1.1.2.bb | 39 | ||||
-rw-r--r-- | recipes-core/classpathx/inetlib-1.1.1/datadir_java.patch | 23 | ||||
-rw-r--r-- | recipes-core/classpathx/inetlib_1.1.1.bb | 31 |
6 files changed, 176 insertions, 0 deletions
diff --git a/recipes-core/classpathx/gnujaf-1.1.1/datadir_java.patch b/recipes-core/classpathx/gnujaf-1.1.1/datadir_java.patch new file mode 100644 index 0000000..807a1cb --- /dev/null +++ b/recipes-core/classpathx/gnujaf-1.1.1/datadir_java.patch | |||
@@ -0,0 +1,23 @@ | |||
1 | Index: activation-1.1.1/Makefile.am | ||
2 | =================================================================== | ||
3 | --- activation-1.1.1.orig/Makefile.am 2008-03-01 10:30:06.000000000 +0100 | ||
4 | +++ activation-1.1.1/Makefile.am 2008-03-01 10:31:04.000000000 +0100 | ||
5 | @@ -7,6 +7,8 @@ | ||
6 | JAVADOC = @JAVADOC@ | ||
7 | JAVADOCFLAGS = @JAVADOCFLAGS@ | ||
8 | |||
9 | +JARDIR = $(datadir)/java | ||
10 | + | ||
11 | src = @srcdir@/source | ||
12 | dst = classes | ||
13 | doc = @srcdir@/docs | ||
14 | @@ -92,7 +94,7 @@ | ||
15 | $(RM) config.log config.status | ||
16 | |||
17 | install-data-local: | ||
18 | - @srcdir@/mkinstalldirs $(DESTDIR)/$(datadir)/java | ||
19 | - $(INSTALL_DATA) $(activation_jar) $(DESTDIR)/$(datadir)/java | ||
20 | + @srcdir@/mkinstalldirs $(DESTDIR)/$(JARDIR) | ||
21 | + $(INSTALL_DATA) $(activation_jar) $(DESTDIR)/$(JARDIR) | ||
22 | |||
23 | # End of Makefile.am | ||
diff --git a/recipes-core/classpathx/gnujaf_1.1.1.bb b/recipes-core/classpathx/gnujaf_1.1.1.bb new file mode 100644 index 0000000..2c055bb --- /dev/null +++ b/recipes-core/classpathx/gnujaf_1.1.1.bb | |||
@@ -0,0 +1,35 @@ | |||
1 | DESCRIPTION = "Provides a mean to type data and locate components suitable for performing various kinds of action on it." | ||
2 | AUTHOR = "GNU ClasspathX" | ||
3 | LICENSE = "GPL+libraryexception" | ||
4 | LIC_FILES_CHKSUM = "file://COPYING;md5=a916467b91076e631dd8edb7424769c7" | ||
5 | |||
6 | SRC_URI = "http://ftp.gnu.org/gnu/classpathx/activation-${PV}.tar.gz \ | ||
7 | file://datadir_java.patch \ | ||
8 | " | ||
9 | |||
10 | inherit autotools java-library | ||
11 | |||
12 | S = "${WORKDIR}/activation-${PV}" | ||
13 | |||
14 | export JAVAC = "javac" | ||
15 | |||
16 | # Fake javadoc | ||
17 | export JAVADOC = "true" | ||
18 | |||
19 | JARFILENAME = "activation-${PV}.jar" | ||
20 | ALTJARFILENAMES = "activation.jar gnujaf.jar" | ||
21 | |||
22 | do_compile() { | ||
23 | mkdir -p build | ||
24 | |||
25 | javac -sourcepath source -d build `find source -name "*.java"` | ||
26 | |||
27 | fastjar -C build -c -f ${JARFILENAME} . | ||
28 | } | ||
29 | |||
30 | SRC_URI[md5sum] = "de50d7728e8140eb404f2b4554321f8c" | ||
31 | SRC_URI[sha256sum] = "b1b5ef560d30fcb11fbf537246857d14110ce4eb2b200d4c54690472305d87b7" | ||
32 | |||
33 | NATIVE_INSTALL_WORKS = "1" | ||
34 | BBCLASSEXTEND = "native" | ||
35 | |||
diff --git a/recipes-core/classpathx/gnumail-1.1.2/datadir_java.patch b/recipes-core/classpathx/gnumail-1.1.2/datadir_java.patch new file mode 100644 index 0000000..50e908d --- /dev/null +++ b/recipes-core/classpathx/gnumail-1.1.2/datadir_java.patch | |||
@@ -0,0 +1,25 @@ | |||
1 | Index: mail-1.1.2/Makefile.am | ||
2 | =================================================================== | ||
3 | --- mail-1.1.2.orig/Makefile.am 2008-03-01 11:13:36.000000000 +0100 | ||
4 | +++ mail-1.1.2/Makefile.am 2008-03-01 11:17:49.000000000 +0100 | ||
5 | @@ -7,6 +7,8 @@ | ||
6 | JAVADOC = @JAVADOC@ | ||
7 | JAVADOCFLAGS = @JAVADOCFLAGS@ | ||
8 | |||
9 | +JARDIR = $(datadir)/java | ||
10 | + | ||
11 | src = @srcdir@/source | ||
12 | dst = classes | ||
13 | doc = @srcdir@/docs | ||
14 | @@ -433,8 +435,8 @@ | ||
15 | rm -rf $(gnumail_jar) $(providers_jar) META-INF $(dst) $(doc) | ||
16 | |||
17 | install-data-local: | ||
18 | - @srcdir@/mkinstalldirs $(DESTDIR)/$(datadir)/java | ||
19 | - $(INSTALL_DATA) $(gnumail_jar) $(DESTDIR)/$(datadir)/java | ||
20 | - $(INSTALL_DATA) $(providers_jar) $(DESTDIR)/$(datadir)/java | ||
21 | + @srcdir@/mkinstalldirs $(DESTDIR)/$(JARDIR) | ||
22 | + $(INSTALL_DATA) $(gnumail_jar) $(DESTDIR)/$(JARDIR) | ||
23 | + $(INSTALL_DATA) $(providers_jar) $(DESTDIR)/$(JARDIR) | ||
24 | |||
25 | # End of Makefile.am | ||
diff --git a/recipes-core/classpathx/gnumail_1.1.2.bb b/recipes-core/classpathx/gnumail_1.1.2.bb new file mode 100644 index 0000000..4cdee2b --- /dev/null +++ b/recipes-core/classpathx/gnumail_1.1.2.bb | |||
@@ -0,0 +1,39 @@ | |||
1 | DESCRIPTION = "GNU's free implementation of the JavaMail API specification" | ||
2 | AUTHOR = "GNU ClasspathX" | ||
3 | LICENSE = "GPL+libraryexception" | ||
4 | LIC_FILES_CHKSUM = "file://COPYING;md5=14bc6ee8b2e2b409be599212867d126e" | ||
5 | |||
6 | SRC_URI = "http://ftp.gnu.org/gnu/classpathx/mail-${PV}.tar.gz \ | ||
7 | file://datadir_java.patch \ | ||
8 | " | ||
9 | |||
10 | inherit java-library autotools | ||
11 | |||
12 | S = "${WORKDIR}/mail-${PV}" | ||
13 | |||
14 | DEPENDS = "gnujaf inetlib" | ||
15 | DEPENDS_virtclass-native = "gnujaf-native inetlib-native" | ||
16 | |||
17 | export JAVAC = "${STAGING_BINDIR_NATIVE}/javac" | ||
18 | export JAVA = "${STAGING_BINDIR_NATIVE}/java" | ||
19 | |||
20 | # Fake javadoc | ||
21 | export JAVADOC = "true" | ||
22 | |||
23 | EXTRA_OECONF = " \ | ||
24 | --with-inetlib-jar=${STAGING_DATADIR_JAVA} \ | ||
25 | --with-activation-jar=${STAGING_DATADIR_JAVA} \ | ||
26 | " | ||
27 | |||
28 | do_compile() { | ||
29 | oe_runmake \ | ||
30 | JARDIR=${datadir_java} \ | ||
31 | gnumail_jar=${JARFILENAME} \ | ||
32 | providers_jar=${P}-providers.jar | ||
33 | } | ||
34 | |||
35 | SRC_URI[md5sum] = "0a94ff4328ceb6a4131be96946976a33" | ||
36 | SRC_URI[sha256sum] = "5eb09597a8f81bfc943206e3e0f45b963ba605a646051c353374f1b475bb9f04" | ||
37 | |||
38 | BBCLASSEXTEND = "native" | ||
39 | |||
diff --git a/recipes-core/classpathx/inetlib-1.1.1/datadir_java.patch b/recipes-core/classpathx/inetlib-1.1.1/datadir_java.patch new file mode 100644 index 0000000..16302cd --- /dev/null +++ b/recipes-core/classpathx/inetlib-1.1.1/datadir_java.patch | |||
@@ -0,0 +1,23 @@ | |||
1 | Index: inetlib-1.1.1/Makefile.am | ||
2 | =================================================================== | ||
3 | --- inetlib-1.1.1.orig/Makefile.am 2008-03-01 10:49:49.000000000 +0100 | ||
4 | +++ inetlib-1.1.1/Makefile.am 2008-03-01 10:52:21.000000000 +0100 | ||
5 | @@ -7,6 +7,8 @@ | ||
6 | JAVADOC = @JAVADOC@ | ||
7 | JAVADOCFLAGS = @JAVADOCFLAGS@ | ||
8 | |||
9 | +JARDIR = $(datadir)/java | ||
10 | + | ||
11 | src = @srcdir@/source | ||
12 | dst = classes | ||
13 | doc = @srcdir@/docs | ||
14 | @@ -280,7 +282,7 @@ | ||
15 | find $(dst) -name '*.class' -exec rm -f '{}' ';' | ||
16 | |||
17 | install-data-local: | ||
18 | - $(mkinstalldirs) $(prefix)/share/java | ||
19 | - $(INSTALL_DATA) $(inetlib_jar) $(prefix)/share/java | ||
20 | + $(mkinstalldirs) $(DESTDIR)/$(JARDIR) | ||
21 | + $(INSTALL_DATA) $(inetlib_jar) $(DESTDIR)/$(JARDIR) | ||
22 | |||
23 | # End of Makefile.am | ||
diff --git a/recipes-core/classpathx/inetlib_1.1.1.bb b/recipes-core/classpathx/inetlib_1.1.1.bb new file mode 100644 index 0000000..862b730 --- /dev/null +++ b/recipes-core/classpathx/inetlib_1.1.1.bb | |||
@@ -0,0 +1,31 @@ | |||
1 | DESCRIPTION = "A Java library of clients for common internet protocols" | ||
2 | AUTHOR = "GNU Classpath" | ||
3 | HOMEPAGE = "http://gnu.org/software/classpath/inetlib.html" | ||
4 | LICENSE = "GPL+libraryexception" | ||
5 | LIC_FILES_CHKSUM = "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3" | ||
6 | |||
7 | SRC_URI = "http://ftp.gnu.org/gnu/classpath/${BP}.tar.gz \ | ||
8 | file://datadir_java.patch \ | ||
9 | " | ||
10 | |||
11 | inherit java-library autotools | ||
12 | |||
13 | JPN = "libgnuinet-java" | ||
14 | |||
15 | export JAVAC = "javac" | ||
16 | |||
17 | export JAVA = "java" | ||
18 | |||
19 | # We fake this, it is not neccessary anyway. | ||
20 | export JAVADOC = "true" | ||
21 | |||
22 | do_compile() { | ||
23 | oe_runmake JARDIR=${datadir_java} inetlib_jar=${JARFILENAME} | ||
24 | } | ||
25 | |||
26 | SRC_URI[md5sum] = "aaa24be4bc8d172ac675be8bdfa636ee" | ||
27 | SRC_URI[sha256sum] = "1b078a39e022f86e4e2c8189b4d2789a5da414e8f1cb285587b7800b950a44de" | ||
28 | |||
29 | NATIVE_INSTALL_WORKS = "1" | ||
30 | BBCLASSEXTEND = "native" | ||
31 | |||