diff options
author | Robert Schuster <thebohemian@gmx.net> | 2008-11-07 16:37:40 +0100 |
---|---|---|
committer | Robert Schuster <thebohemian@gmx.net> | 2008-11-07 16:40:38 +0100 |
commit | 461b28671d10c4fd8c1967e00ef152d055815895 (patch) | |
tree | 01c97e8798d82efa58c0e90090a5229208121e73 /packages/openjdk-langtools | |
parent | f1905259f95aadaaac08409eb75ac12aac93e1b7 (diff) |
openjdk-langtools-native: New recipe.
Diffstat (limited to 'packages/openjdk-langtools')
-rw-r--r-- | packages/openjdk-langtools/files/0.0+jdk7-b31-build-fix.patch | 114 | ||||
-rw-r--r-- | packages/openjdk-langtools/openjdk-langtools-native_0.0+jdk7-b31.bb | 25 |
2 files changed, 139 insertions, 0 deletions
diff --git a/packages/openjdk-langtools/files/0.0+jdk7-b31-build-fix.patch b/packages/openjdk-langtools/files/0.0+jdk7-b31-build-fix.patch new file mode 100644 index 0000000000..147dab520e --- /dev/null +++ b/packages/openjdk-langtools/files/0.0+jdk7-b31-build-fix.patch @@ -0,0 +1,114 @@ +Index: icepick-0.0+hg20080118/Makefile.am +=================================================================== +--- icepick-0.0+hg20080118.orig/Makefile.am ++++ icepick-0.0+hg20080118/Makefile.am +@@ -19,55 +19,61 @@ else + JCOMPILER = echo "No compiler found" 1>&2; exit 1 + endif + +-# All our example java source files ++# Go into $(LANGTOOLS_SRC_DIR)/src/share/classes and set ++# TOOLS_JAVA_FILES to the output of ++# find . -mindepth 2 -type d -and -not -wholename "*resources" -printf \$\(OPENJDK_CLASSES\)/%P/\*.java' \\'\\n ++# (btw: xclip is your friend) + OPENJDK_CLASSES = $(LANGTOOLS_SRC_DIR)/src/share/classes +-TOOLS_JAVA_FILES = $(OPENJDK_CLASSES)/com/sun/tools/apt/Main.java \ +- $(OPENJDK_CLASSES)/com/sun/javadoc/*.java \ +- $(OPENJDK_CLASSES)/com/sun/tools/apt/comp/*.java \ +- $(OPENJDK_CLASSES)/com/sun/tools/apt/main/*.java \ +- $(OPENJDK_CLASSES)/com/sun/tools/apt/util/*.java \ +- $(OPENJDK_CLASSES)/com/sun/tools/apt/mirror/apt/*.java \ +- $(OPENJDK_CLASSES)/com/sun/tools/apt/mirror/type/*.java \ +- $(OPENJDK_CLASSES)/com/sun/tools/apt/mirror/util/*.java \ +- $(OPENJDK_CLASSES)/com/sun/tools/apt/mirror/declaration/*.java \ +- $(OPENJDK_CLASSES)/com/sun/tools/apt/mirror/*.java \ +- $(OPENJDK_CLASSES)/com/sun/tools/javac/api/*.java \ +- $(OPENJDK_CLASSES)/com/sun/tools/javac/jvm/*.java \ +- $(OPENJDK_CLASSES)/com/sun/tools/javac/sym/*.java \ +- $(OPENJDK_CLASSES)/com/sun/tools/javac/code/*.java \ +- $(OPENJDK_CLASSES)/com/sun/tools/javac/comp/*.java \ +- $(OPENJDK_CLASSES)/com/sun/tools/javac/main/*.java \ +- $(OPENJDK_CLASSES)/com/sun/tools/javac/tree/*.java \ +- $(OPENJDK_CLASSES)/com/sun/tools/javac/util/*.java \ +- $(OPENJDK_CLASSES)/com/sun/tools/javac/*.java \ +- $(OPENJDK_CLASSES)/com/sun/tools/javac/model/*.java \ +- $(OPENJDK_CLASSES)/com/sun/tools/javac/parser/*.java \ +- $(OPENJDK_CLASSES)/com/sun/tools/javac/processing/*.java \ +- $(OPENJDK_CLASSES)/com/sun/tools/javac/zip/*.java \ +- $(OPENJDK_CLASSES)/com/sun/tools/javah/*.java \ +- $(OPENJDK_CLASSES)/com/sun/tools/javadoc/*.java \ +- $(OPENJDK_CLASSES)/com/sun/mirror/apt/*.java \ +- $(OPENJDK_CLASSES)/com/sun/mirror/type/*.java \ +- $(OPENJDK_CLASSES)/com/sun/mirror/util/*.java \ +- $(OPENJDK_CLASSES)/com/sun/mirror/declaration/*.java \ +- $(OPENJDK_CLASSES)/com/sun/source/tree/*.java \ +- $(OPENJDK_CLASSES)/com/sun/source/util/*.java \ +- $(OPENJDK_CLASSES)/javax/lang/model/type/*.java \ +- $(OPENJDK_CLASSES)/javax/lang/model/util/*.java \ +- $(OPENJDK_CLASSES)/javax/lang/model/*.java \ +- $(OPENJDK_CLASSES)/javax/lang/model/element/*.java \ +- $(OPENJDK_CLASSES)/javax/tools/*.java \ +- $(OPENJDK_CLASSES)/javax/annotation/processing/*.java \ +- $(OPENJDK_CLASSES)/com/sun/tools/doclets/*.java \ +- $(OPENJDK_CLASSES)/com/sun/tools/doclets/formats/html/*.java \ +- $(OPENJDK_CLASSES)/com/sun/tools/doclets/formats/html/markup/*.java \ +- $(OPENJDK_CLASSES)/com/sun/tools/doclets/internal/toolkit/*.java \ +- $(OPENJDK_CLASSES)/com/sun/tools/doclets/internal/toolkit/builders/*.java \ +- $(OPENJDK_CLASSES)/com/sun/tools/doclets/internal/toolkit/taglets/*.java \ +- $(OPENJDK_CLASSES)/com/sun/tools/doclets/internal/toolkit/util/*.java \ +- $(OPENJDK_CLASSES)/com/sun/tools/doclets/internal/toolkit/util/links/*.java \ +- $(OPENJDK_CLASSES)/com/sun/tools/doclets/standard/*.java \ +- $(OPENJDK_CLASSES)/sun/tools/javap/*.java ++TOOLS_JAVA_FILES = \ ++ $(OPENJDK_CLASSES)/sun/tools/javap/*.java \ ++ $(OPENJDK_CLASSES)/com/sun/tools/javap/*.java \ ++ $(OPENJDK_CLASSES)/com/sun/tools/javadoc/*.java \ ++ $(OPENJDK_CLASSES)/com/sun/tools/apt/*.java \ ++ $(OPENJDK_CLASSES)/com/sun/tools/apt/comp/*.java \ ++ $(OPENJDK_CLASSES)/com/sun/tools/apt/util/*.java \ ++ $(OPENJDK_CLASSES)/com/sun/tools/apt/main/*.java \ ++ $(OPENJDK_CLASSES)/com/sun/tools/apt/mirror/*.java \ ++ $(OPENJDK_CLASSES)/com/sun/tools/apt/mirror/declaration/*.java \ ++ $(OPENJDK_CLASSES)/com/sun/tools/apt/mirror/apt/*.java \ ++ $(OPENJDK_CLASSES)/com/sun/tools/apt/mirror/util/*.java \ ++ $(OPENJDK_CLASSES)/com/sun/tools/apt/mirror/type/*.java \ ++ $(OPENJDK_CLASSES)/com/sun/tools/javah/*.java \ ++ $(OPENJDK_CLASSES)/com/sun/tools/javac/*.java \ ++ $(OPENJDK_CLASSES)/com/sun/tools/javac/comp/*.java \ ++ $(OPENJDK_CLASSES)/com/sun/tools/javac/file/*.java \ ++ $(OPENJDK_CLASSES)/com/sun/tools/javac/model/*.java \ ++ $(OPENJDK_CLASSES)/com/sun/tools/javac/code/*.java \ ++ $(OPENJDK_CLASSES)/com/sun/tools/javac/tree/*.java \ ++ $(OPENJDK_CLASSES)/com/sun/tools/javac/api/*.java \ ++ $(OPENJDK_CLASSES)/com/sun/tools/javac/util/*.java \ ++ $(OPENJDK_CLASSES)/com/sun/tools/javac/jvm/*.java \ ++ $(OPENJDK_CLASSES)/com/sun/tools/javac/processing/*.java \ ++ $(OPENJDK_CLASSES)/com/sun/tools/javac/parser/*.java \ ++ $(OPENJDK_CLASSES)/com/sun/tools/javac/sym/*.java \ ++ $(OPENJDK_CLASSES)/com/sun/tools/javac/main/*.java \ ++ $(OPENJDK_CLASSES)/com/sun/tools/classfile/*.java \ ++ $(OPENJDK_CLASSES)/com/sun/tools/doclets/*.java \ ++ $(OPENJDK_CLASSES)/com/sun/tools/doclets/standard/*.java \ ++ $(OPENJDK_CLASSES)/com/sun/tools/doclets/internal/toolkit/*.java \ ++ $(OPENJDK_CLASSES)/com/sun/tools/doclets/internal/toolkit/builders/*.java \ ++ $(OPENJDK_CLASSES)/com/sun/tools/doclets/internal/toolkit/util/*.java \ ++ $(OPENJDK_CLASSES)/com/sun/tools/doclets/internal/toolkit/util/links/*.java \ ++ $(OPENJDK_CLASSES)/com/sun/tools/doclets/internal/toolkit/taglets/*.java \ ++ $(OPENJDK_CLASSES)/com/sun/tools/doclets/formats/html/*.java \ ++ $(OPENJDK_CLASSES)/com/sun/tools/doclets/formats/html/markup/*.java \ ++ $(OPENJDK_CLASSES)/com/sun/javadoc/*.java \ ++ $(OPENJDK_CLASSES)/com/sun/source/tree/*.java \ ++ $(OPENJDK_CLASSES)/com/sun/source/util/*.java \ ++ $(OPENJDK_CLASSES)/com/sun/mirror/declaration/*.java \ ++ $(OPENJDK_CLASSES)/com/sun/mirror/apt/*.java \ ++ $(OPENJDK_CLASSES)/com/sun/mirror/util/*.java \ ++ $(OPENJDK_CLASSES)/com/sun/mirror/type/*.java \ ++ $(OPENJDK_CLASSES)/javax/tools/*.java \ ++ $(OPENJDK_CLASSES)/javax/annotation/processing/*.java \ ++ $(OPENJDK_CLASSES)/javax/lang/model/*.java \ ++ $(OPENJDK_CLASSES)/javax/lang/model/element/*.java \ ++ $(OPENJDK_CLASSES)/javax/lang/model/util/*.java \ ++ $(OPENJDK_CLASSES)/javax/lang/model/type/*.java + + # The zip files with classes we want to produce. + TOOLS_ZIP = tools.jar diff --git a/packages/openjdk-langtools/openjdk-langtools-native_0.0+jdk7-b31.bb b/packages/openjdk-langtools/openjdk-langtools-native_0.0+jdk7-b31.bb new file mode 100644 index 0000000000..3f90e4a7dd --- /dev/null +++ b/packages/openjdk-langtools/openjdk-langtools-native_0.0+jdk7-b31.bb @@ -0,0 +1,25 @@ +DESCRIPTION = "Java Language tools (javac, javah, javap, javadoc and apt) from OpenJDK" +HOMEPAGE = "http://http://openjdk.java.net/groups/compiler" +LICENSE = "GPL" + +DEPENDS = "classpath-native fastjar-native ecj-initial" + +S = "${WORKDIR}/icepick-0.0+hg20080118" + +SRC_URI = "\ + http://jalimo.evolvis.org/repository/sources/icepick-0.0+hg20080118.tar.bz2;md5sum=ce7b1827e6f4cbe73b9ffa90b0d45a6a \ + http://jalimo.evolvis.org/repository/sources/openjdk-langtools-jdk7-b31.tar.bz2;md5sum=670931f67b2e4ac46c6e0cd15418f2fa \ + file://${PV}-build-fix.patch;patch=1 \ + " + +inherit java autotools native + +EXTRA_OECONF = "\ + --with-javac=${STAGING_BINDIR}/ecj-initial \ + --with-vm=${STAGING_BINDIR}/java \ + --with-fastjar=${STAGING_BINDIR}/fastjar \ + --with-classpath=${STAGING_DATADIR}/classpath/glibj.zip \ + --with-langtools-src-dir=${WORKDIR}/openjdk-langtools-jdk7-b31 \ + " + +export JAVAC_OPTS="-bootclasspath ${STAGING_DATADIR_JAVA}/share/classpath/glibj.zip -source 5.0" |