From 8995a81ccd7ce612a0b479b3d528e41c24baaeb5 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Mon, 18 Mar 2019 18:53:08 +0000 Subject: user/java-gcj-compat: move to legacy/ --- legacy/java-gcj-compat/APKBUILD | 65 +++++++++++++++++++++++++++++++++++++++++ user/java-gcj-compat/APKBUILD | 65 ----------------------------------------- 2 files changed, 65 insertions(+), 65 deletions(-) create mode 100644 legacy/java-gcj-compat/APKBUILD delete mode 100644 user/java-gcj-compat/APKBUILD diff --git a/legacy/java-gcj-compat/APKBUILD b/legacy/java-gcj-compat/APKBUILD new file mode 100644 index 000000000..a75f1e6b1 --- /dev/null +++ b/legacy/java-gcj-compat/APKBUILD @@ -0,0 +1,65 @@ +# Contributor: Timo Teras +# Maintainer: A. Wilcox +gccver=6.4.0 +gccpkgrel=10 + +pkgname=java-gcj-compat +pkgver=$gccver +pkgrel=$gccpkgrel +pkgdesc="Java runtime environment using GCC Java" +url="https://gcc.gnu.org/" +arch="all" +license="GPL-3.0+ AND LGPL-2.1+" +depends="fastjar gcc-java=$gccver-r$gccpkgrel java-common" +makedepends="gcc-java=$gccver-r$gccpkgrel zlib-dev" +subpackages="" +source="" + +build() { + mkdir -p $builddir + cd $builddir + msg "Building ecj..." + gcj -Wl,-Bsymbolic -findirect-dispatch -o ecj \ + --main=org.eclipse.jdt.internal.compiler.batch.Main \ + /usr/share/java/ecj.jar -lgcj +} + +check() { + $builddir/ecj > /dev/null +} + +package() { + JVM_DIR=$pkgdir/usr/lib/jvm + JDK_DIR=$JVM_DIR/java-1.5-gcj + JDK_BIN_DIR=$JDK_DIR/bin + JRE_DIR=$JDK_DIR/jre + JRE_BIN_DIR=$JRE_DIR/bin + JRE_LIB_DIR=$JRE_DIR/lib + + CPU=$(uname -m | sed -e 's/i.86/i386/g' -e 's/x86_64/amd64/g') + + mkdir -p $JDK_BIN_DIR + ln -sf ../../../../bin/gij $JDK_BIN_DIR/java + ln -sf ../../../../bin/fastjar $JDK_BIN_DIR/fastjar + ln -sf ../../../../bin/sinjdoc $JDK_BIN_DIR/javadoc + ln -sf ../../../../bin/grmic $JDK_BIN_DIR/rmic + ln -sf ../../../../bin/gjavah $JDK_BIN_DIR/javah + install -s $builddir/ecj $JDK_BIN_DIR/javac + ln -sf ../../../../bin/gappletviewer $JDK_BIN_DIR/appletviewer + ln -sf ../../../../bin/gjarsigner $JDK_BIN_DIR/jarsigner + ln -sf ../../../../bin/grmiregistry $JDK_BIN_DIR/rmiregistry + ln -sf ../../../../bin/gkeytool $JDK_BIN_DIR/keytool + + gcjrel=`ls -d /usr/lib/gcj-$gccver-* | cut -d '-' -f 3` + + mkdir -p $JRE_BIN_DIR $JRE_LIB_DIR/$CPU + ln -sf ../../../../../bin/gij $JRE_BIN_DIR/java + ln -sf ../../../../../bin/grmiregistry $JRE_BIN_DIR/rmiregistry + ln -sf ../../../../../bin/gkeytool $JRE_BIN_DIR/keytool + ln -sf ../../../../../share/java/libgcj-$gccver.jar $JRE_LIB_DIR/rt.jar + ln -sf ../../../../../share/java/libgcj-tools-$gccver.jar $JRE_LIB_DIR/tools.jar + ln -sf ../../../../../../lib/gcj-$gccver-$gcjrel/libjvm.so $JRE_LIB_DIR/$CPU + ln -sf ../../../../../../lib/gcj-$gccver-$gcjrel/libjavamath.so $JRE_LIB_DIR/$CPU + ln -sf ../../../../../../lib/gcj-$gccver-$gcjrel/classmap.db $JRE_LIB_DIR/$CPU +} + diff --git a/user/java-gcj-compat/APKBUILD b/user/java-gcj-compat/APKBUILD deleted file mode 100644 index a75f1e6b1..000000000 --- a/user/java-gcj-compat/APKBUILD +++ /dev/null @@ -1,65 +0,0 @@ -# Contributor: Timo Teras -# Maintainer: A. Wilcox -gccver=6.4.0 -gccpkgrel=10 - -pkgname=java-gcj-compat -pkgver=$gccver -pkgrel=$gccpkgrel -pkgdesc="Java runtime environment using GCC Java" -url="https://gcc.gnu.org/" -arch="all" -license="GPL-3.0+ AND LGPL-2.1+" -depends="fastjar gcc-java=$gccver-r$gccpkgrel java-common" -makedepends="gcc-java=$gccver-r$gccpkgrel zlib-dev" -subpackages="" -source="" - -build() { - mkdir -p $builddir - cd $builddir - msg "Building ecj..." - gcj -Wl,-Bsymbolic -findirect-dispatch -o ecj \ - --main=org.eclipse.jdt.internal.compiler.batch.Main \ - /usr/share/java/ecj.jar -lgcj -} - -check() { - $builddir/ecj > /dev/null -} - -package() { - JVM_DIR=$pkgdir/usr/lib/jvm - JDK_DIR=$JVM_DIR/java-1.5-gcj - JDK_BIN_DIR=$JDK_DIR/bin - JRE_DIR=$JDK_DIR/jre - JRE_BIN_DIR=$JRE_DIR/bin - JRE_LIB_DIR=$JRE_DIR/lib - - CPU=$(uname -m | sed -e 's/i.86/i386/g' -e 's/x86_64/amd64/g') - - mkdir -p $JDK_BIN_DIR - ln -sf ../../../../bin/gij $JDK_BIN_DIR/java - ln -sf ../../../../bin/fastjar $JDK_BIN_DIR/fastjar - ln -sf ../../../../bin/sinjdoc $JDK_BIN_DIR/javadoc - ln -sf ../../../../bin/grmic $JDK_BIN_DIR/rmic - ln -sf ../../../../bin/gjavah $JDK_BIN_DIR/javah - install -s $builddir/ecj $JDK_BIN_DIR/javac - ln -sf ../../../../bin/gappletviewer $JDK_BIN_DIR/appletviewer - ln -sf ../../../../bin/gjarsigner $JDK_BIN_DIR/jarsigner - ln -sf ../../../../bin/grmiregistry $JDK_BIN_DIR/rmiregistry - ln -sf ../../../../bin/gkeytool $JDK_BIN_DIR/keytool - - gcjrel=`ls -d /usr/lib/gcj-$gccver-* | cut -d '-' -f 3` - - mkdir -p $JRE_BIN_DIR $JRE_LIB_DIR/$CPU - ln -sf ../../../../../bin/gij $JRE_BIN_DIR/java - ln -sf ../../../../../bin/grmiregistry $JRE_BIN_DIR/rmiregistry - ln -sf ../../../../../bin/gkeytool $JRE_BIN_DIR/keytool - ln -sf ../../../../../share/java/libgcj-$gccver.jar $JRE_LIB_DIR/rt.jar - ln -sf ../../../../../share/java/libgcj-tools-$gccver.jar $JRE_LIB_DIR/tools.jar - ln -sf ../../../../../../lib/gcj-$gccver-$gcjrel/libjvm.so $JRE_LIB_DIR/$CPU - ln -sf ../../../../../../lib/gcj-$gccver-$gcjrel/libjavamath.so $JRE_LIB_DIR/$CPU - ln -sf ../../../../../../lib/gcj-$gccver-$gcjrel/classmap.db $JRE_LIB_DIR/$CPU -} - -- cgit v1.2.3-70-g09d2