diff options
author | Karl Trygve Kalleberg <karltk@gentoo.org> | 2001-12-15 01:07:52 +0000 |
---|---|---|
committer | Karl Trygve Kalleberg <karltk@gentoo.org> | 2001-12-15 01:07:52 +0000 |
commit | b1987d7b7e0107de5850738a56d375ebae03a5a0 (patch) | |
tree | 05774204d1235b5326d73591a0c83c66d138ce04 /dev-java | |
parent | Unmasked TightVNC (diff) | |
download | gentoo-2-b1987d7b7e0107de5850738a56d375ebae03a5a0.tar.gz gentoo-2-b1987d7b7e0107de5850738a56d375ebae03a5a0.tar.bz2 gentoo-2-b1987d7b7e0107de5850738a56d375ebae03a5a0.zip |
Major Java overhaul in progress
Diffstat (limited to 'dev-java')
21 files changed, 483 insertions, 31 deletions
diff --git a/dev-java/ant/files/digest-ant-1.4.1-r1 b/dev-java/ant/files/digest-ant-1.4.1-r1 new file mode 100644 index 000000000000..be4db08508d2 --- /dev/null +++ b/dev-java/ant/files/digest-ant-1.4.1-r1 @@ -0,0 +1 @@ +MD5 4707ab065b39ddf812c724fd74e7831d jakarta-ant-1.4.1-src.tar.gz 1331200 diff --git a/dev-java/antlr/antlr-2.7.1-r1.ebuild b/dev-java/antlr/antlr-2.7.1-r1.ebuild new file mode 100644 index 000000000000..81611a814961 --- /dev/null +++ b/dev-java/antlr/antlr-2.7.1-r1.ebuild @@ -0,0 +1,29 @@ +# Copyright 1999-2001 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Author Karl Trygve Kalleberg <karltk@gentoo.org> +# $Header: /var/cvsroot/gentoo-x86/dev-java/antlr/antlr-2.7.1-r1.ebuild,v 1.1 2001/12/15 01:07:51 karltk Exp $ + +S=${WORKDIR}/${P} + +DESCRIPTION="A parser generator for Java" + +SRC_URI="http://www.antlr.org/D00100100/antlr-2.7.1.tar.gz" + +HOMEPAGE="http://www.antlr.org" + +DEPEND=">=virtual/jdk-1.2 + >=dev-java/jikes-1.13" + +src_compile() { + PATH=${PATH}:${JAVA_HOME}/bin JAVAC=jikes make all-jars || die +} + +src_install () { + insinto /usr/share/antlr + doins antlr.debug.jar antlr.jar antlrall.jar + doins extras/antlr-mode.el + dohtml -r doc/* + cp -R examples ${D}/usr/share/doc/${P}/ + dodoc RIGHTS +} + diff --git a/dev-java/antlr/files/digest-antlr-2.7.1-r1 b/dev-java/antlr/files/digest-antlr-2.7.1-r1 new file mode 100644 index 000000000000..18937f5d50ed --- /dev/null +++ b/dev-java/antlr/files/digest-antlr-2.7.1-r1 @@ -0,0 +1 @@ +MD5 13bae8d2d48fc36b7eda2305a59f4349 antlr-2.7.1.tar.gz 1126400 diff --git a/dev-java/blackdown-jdk/blackdown-jdk-1.3.1.ebuild b/dev-java/blackdown-jdk/blackdown-jdk-1.3.1.ebuild new file mode 100644 index 000000000000..3443cfb64efa --- /dev/null +++ b/dev-java/blackdown-jdk/blackdown-jdk-1.3.1.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2000 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Author Karl Trygve Kalleberg <karltk@gentoo.org> +# $Header: /var/cvsroot/gentoo-x86/dev-java/blackdown-jdk/blackdown-jdk-1.3.1.ebuild,v 1.1 2001/12/15 01:07:51 karltk Exp $ + +A=j2sdk-1.3.1-FCS-linux-i386.tar.bz2 +S=${WORKDIR}/j2sdk1.3.1 +DESCRIPTION="Java Runtime Environment" +SRC_URI="ftp://metalab.unc.edu/pub/linux/devel/lang/java/blackdown.org/JDK-1.3.1/i386/FCS/${A}" +HOMEPAGE="http://www.blackdown.org" + +DEPEND="virtual/glibc" + +PROVIDE="virtual/jdk-1.3 + virtual/jre-1.3" + +src_install () { + + dodir /opt/${P} + + cp -R ${S}/{bin,jre,lib,man,include,include-old} ${D}/opt/${P} + + dodir /opt/${P}/share/java + cp -R ${S}/{demo,src.jar} ${D}/opt/${P}/share + + dodoc COPYRIGHT LICENSE README INSTALL README.html + + if [ "`use mozilla`" ] ; then + dosym /opt/${P}/jre/plugin/i386/mozilla/javaplugin_oji.so /usr/lib/mozilla/plugins/javaplugin_oji.so + fi + + dodir /etc/env.d + echo "JAVA_HOME=/opt/${P}" > ${D}/etc/env.d/20java + echo "CLASSPATH=/opt/${P}/jre/lib/rt.jar" >> ${D}/etc/env.d/20java +} + +pkg_postinst () { + if [ "`use mozilla`" ] ; then + einfo "The Mozilla browser plugin has been installed as /usr/lib/mozilla/plugins/javaplugin_oji.so" + else + einfo "For instructions on installing the ${P} browser plugin for" + einfo "Netscape and Mozilla, see /usr/share/doc/${P}/INSTALL." + fi +} diff --git a/dev-java/blackdown-jdk/files/digest-blackdown-jdk-1.3.1 b/dev-java/blackdown-jdk/files/digest-blackdown-jdk-1.3.1 new file mode 100644 index 000000000000..47d6ea0a8ce6 --- /dev/null +++ b/dev-java/blackdown-jdk/files/digest-blackdown-jdk-1.3.1 @@ -0,0 +1 @@ +MD5 142ddf0a54a06ad81a5df9a31e28431a j2sdk-1.3.1-FCS-linux-i386.tar.bz2 24563712 diff --git a/dev-java/blackdown-jre/blackdown-jre-1.3.1-r2.ebuild b/dev-java/blackdown-jre/blackdown-jre-1.3.1-r2.ebuild new file mode 100644 index 000000000000..e1ab8deadd2a --- /dev/null +++ b/dev-java/blackdown-jre/blackdown-jre-1.3.1-r2.ebuild @@ -0,0 +1,150 @@ +# Copyright 1999-2001 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Author Karl Trygve Kalleberg <karltk@gentoo.org> +# $Header: /var/cvsroot/gentoo-x86/dev-java/blackdown-jre/blackdown-jre-1.3.1-r2.ebuild,v 1.1 2001/12/15 01:07:51 karltk Exp $ + +A=j2re-1.3.1-FCS-linux-i386.tar.bz2 +S=${WORKDIR}/j2re1.3.1 +DESCRIPTION="Java Runtime Environment" +SRC_URI="ftp://metalab.unc.edu/pub/linux/devel/lang/java/blackdown.org/JDK-1.3.1/i386/FCS/${A}" +HOMEPAGE="http://www.blackdown.org" + +DEPEND="virtual/glibc" + +PROVIDE="virtual/jre-1.3" + +src_install () { + insinto /opt/${P} + doins JavaPluginControlPanel.html + + exeinto /opt/${P}/bin + doexe bin/.java_wrapper bin/awt_robot bin/JavaPluginControlPanel + doexe bin/j2sdk-config bin/realpath + + dosym /opt/${P}/bin/.java_wrapper /opt/${P}/bin/java + dosym /opt/${P}/bin/.java_wrapper /opt/${P}/bin/keytool + dosym /opt/${P}/bin/.java_wrapper /opt/${P}/bin/policytool + dosym /opt/${P}/bin/.java_wrapper /opt/${P}/bin/rmid + dosym /opt/${P}/bin/.java_wrapper /opt/${P}/bin/rmiregistry + dosym /opt/${P}/bin/.java_wrapper /opt/${P}/bin/tnameserv + + exeinto /opt/${P}/bin/i386 + doexe bin/i386/realpath + + exeinto /opt/${P}/bin/i386/green_threads + doexe bin/i386/green_threads/* + + exeinto /opt/${P}/bin/i386/native_threads + doexe bin/i386/native_threads/* + + insinto /opt/${P}/lib + doins lib/* + + dodir /opt/${P}/lib/applet + + insinto /opt/${P}/lib/audio + doins lib/audio/* + + insinto /opt/${P}/lib/cmm + doins lib/cmm/* + + dodir /opt/${P}/lib/ext + + insinto /opt/${P}/lib/fonts + doins lib/fonts/* + + insinto /opt/${P}/lib/i386 + doins lib/i386/* + + insinto /opt/${P}/lib/i386/classic + doins lib/i386/classic/* + + insinto /opt/${P}/lib/i386/client + doins lib/i386/client/* + + insinto /opt/${P}/lib/i386/green_threads + doins lib/i386/green_threads/* + + insinto /opt/${P}/lib/i386/native_threads + doins lib/i386/native_threads/* + + insinto /opt/${P}/lib/i386/server + doins lib/i386/server/* + + insinto /opt/${P}/lib/images/cursors + doins lib/images/cursors/* + + insinto /opt/${P}/lib/locale/de/LC_MESSAGES + doins lib/locale/de/LC_MESSAGES/* + + insinto /opt/${P}/lib/locale/es/LC_MESSAGES + doins lib/locale/es/LC_MESSAGES/* + + insinto /opt/${P}/lib/locale/fr/LC_MESSAGES + doins lib/locale/fr/LC_MESSAGES/* + + insinto /opt/${P}/lib/locale/it/LC_MESSAGES + doins lib/locale/ja/LC_MESSAGES/* + + insinto /opt/${P}/lib/locale/ko/LC_MESSAGES + doins lib/locale/ko/LC_MESSAGES/* + + insinto /opt/${P}/lib/locale/ko.UTF-8/LC_MESSAGES + doins lib/locale/ko.UTF-8/LC_MESSAGES/* + + insinto /opt/${P}/lib/locale/sv/LC_MESSAGES + doins lib/locale/sv/LC_MESSAGES/* + + insinto /opt/${P}/lib/locale/zh/LC_MESSAGES + doins lib/locale/zh/LC_MESSAGES/* + + insinto /opt/${P}/lib/locale/zh.GBK/LC_MESSAGES + doins lib/locale/zh.GBK/LC_MESSAGES/* + + insinto /opt/${P}/lib/locale/zh_TW/LC_MESSAGES + doins lib/locale/zh_TW/LC_MESSAGES/* + + insinto /opt/${P}/lib/locale/zh_TW.BIG5/LC_MESSAGES + doins lib/locale/zh_TW.BIG5/LC_MESSAGES/* + + insinto /opt/${P}/lib/locale/de/LC_MESSAGES + doins lib/locale/de/LC_MESSAGES/* + + insinto /opt/${P}/lib/security + doins lib/security/* + + insinto /opt/${P}/man/ja/man1 + doins man/ja/man1/* + + insinto /opt/${P}/man/man1 + doins man/man1/* + + insinto /opt/${P}/plugin/i386/mozilla + doins plugin/i386/mozilla/* + + dosym /opt/${P}/plugin/i386/mozilla /opt/${P}/plugin/i386/netscape6 + + insinto /opt/${P}/plugin/i386/netscape4 + doins plugin/i386/netscape4/* + + dodir /usr/share + dodoc COPYRIGHT LICENSE README INSTALL + + if [ "`use mozilla`" ] ; then + dosym /opt/${P}/plugin/i386/mozilla/javaplugin_oji.so /usr/lib/mozilla/plugins/javaplugin_oji.so + fi + + dodir /etc/env.d + echo "JAVA_HOME=/opt/${P}" > ${D}/etc/env.d/20java + echo "CLASSPATH=/opt/${P}/lib/rt.jar" > ${D}/etc/env.d/20java +} + +pkg_postinst () { + + if [ "`use mozilla`" ] ; then + einfo "The Mozilla browser plugin has been installed as /usr/lib/mozilla/plugins/javaplugin_oji.so" + else + einfo "For instructions on installing the ${P} browser plugin for" + einfo "Netscape and Mozilla, see /usr/share/doc/${P}/INSTALL." + fi +} diff --git a/dev-java/jndi/jndi-1.2.1-r2.ebuild b/dev-java/jndi/jndi-1.2.1-r2.ebuild new file mode 100644 index 000000000000..706bf6dfdd96 --- /dev/null +++ b/dev-java/jndi/jndi-1.2.1-r2.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2001 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Author Karl Trygve Kalleberg <karltk@gentoo.org> +# $Header: /var/cvsroot/gentoo-x86/dev-java/jndi/jndi-1.2.1-r2.ebuild,v 1.1 2001/12/15 01:07:52 karltk Exp $ + +Arse=jndi1_2_1.zip +P=jndi-1.2.1 +S=${WORKDIR}/${P} +DESCRIPTION="Java Naming and Directory Interface" +HOMEPAGE="http://java.sun.com/products/jndi/" +#SRC_URI="" +#error:You must download ${A} from $HOMEPAGE yourself" + +DEPEND=">=virtual/jdk-1.2" + +src_unpack() { + echo ${Arse} + if [ ! -f ${DISTDIR}/${Arse} ] ; then + echo "!!! You must download ${Arse} from ${HOMEPAGE} yourself" + die + fi + mkdir ${S} + cd ${S} + ${JAVA_HOME}/bin/jar -xf ${DISTDIR}/${Arse} +} + +src_compile() { + cd ${S} +} + +src_install() { + insinto /usr/share/jndi + doins lib/jndi.jar + dodoc COPYRIGHT README.txt + dohtml -r doc/* + echo "/usr/share/jndi/jndi.jar" > /usr/share/jndi/eclasspath +} + + + diff --git a/dev-java/kissme-classpath/files/digest-kissme-classpath-0.18-r1 b/dev-java/kissme-classpath/files/digest-kissme-classpath-0.18-r1 new file mode 100644 index 000000000000..58385251ce16 --- /dev/null +++ b/dev-java/kissme-classpath/files/digest-kissme-classpath-0.18-r1 @@ -0,0 +1 @@ +MD5 06823b0d7c6eca94d7595a77ed2dccac kissme-classpath-0.18.tar.gz 925696 diff --git a/dev-java/kissme-classpath/files/digest-kissme-classpath-0.19 b/dev-java/kissme-classpath/files/digest-kissme-classpath-0.19 new file mode 100644 index 000000000000..1ff8eb3ed49a --- /dev/null +++ b/dev-java/kissme-classpath/files/digest-kissme-classpath-0.19 @@ -0,0 +1 @@ +MD5 3009021829440f079400e9d1ff2b1794 kissme-classpath-0.19.tar.gz 749568 diff --git a/dev-java/kissme-classpath/kissme-classpath-0.18-r1.ebuild b/dev-java/kissme-classpath/kissme-classpath-0.18-r1.ebuild new file mode 100644 index 000000000000..001302740a13 --- /dev/null +++ b/dev-java/kissme-classpath/kissme-classpath-0.18-r1.ebuild @@ -0,0 +1,30 @@ +# Copyright 1999-2001 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Author Karl Trygve Kalleberg <karltk@gentoo.org> +# $Header: /var/cvsroot/gentoo-x86/dev-java/kissme-classpath/kissme-classpath-0.18-r1.ebuild,v 1.1 2001/12/15 01:07:52 karltk Exp $ + +S=${WORKDIR}/${P} + +DESCRIPTION="GNU Classpath specifically tailored to kissme" + +SRC_URI="http://prdownloads.sourceforge.net/kissme/kissme-classpath-0.18.tar.gz" + +HOMEPAGE="http://www.gnu.org/software/classpath/classpath.html" + +DEPEND=">=virtual/jdk-1.3 + >=dev-java/jikes-1.13 + app-shells/zsh" + +RDEPEND="" + +src_compile() { + make build || die +} + +src_install () { + dodir usr/share/kissme/classpath + dodoc src/README + DESTDIR=${D} sh install.sh || die + echo "/usr/share/kissme/classpath" > ${D}/usr/share/kissme/eclasspath +} + diff --git a/dev-java/kissme-classpath/kissme-classpath-0.19.ebuild b/dev-java/kissme-classpath/kissme-classpath-0.19.ebuild new file mode 100644 index 000000000000..143cf32917c5 --- /dev/null +++ b/dev-java/kissme-classpath/kissme-classpath-0.19.ebuild @@ -0,0 +1,30 @@ +# Copyright 1999-2001 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Author Karl Trygve Kalleberg <karltk@gentoo.org> +# $Header: /var/cvsroot/gentoo-x86/dev-java/kissme-classpath/kissme-classpath-0.19.ebuild,v 1.1 2001/12/15 01:07:52 karltk Exp $ + +S=${WORKDIR}/${P} + +DESCRIPTION="GNU Classpath specifically tailored to kissme" + +SRC_URI="http://prdownloads.sourceforge.net/kissme/${P}.tar.gz" + +HOMEPAGE="http://www.gnu.org/software/classpath/classpath.html" + +DEPEND=">=virtual/jdk-1.3 + >=dev-java/jikes-1.13 + app-shells/zsh" + +RDEPEND="" + +src_compile() { + make build || die +} + +src_install () { + dodir usr/share/kissme/classpath + dodoc src/README + DESTDIR=${D} sh install.sh || die + echo "/usr/share/kissme/classpath" > ${D}/usr/share/kissme/eclasspath +} + diff --git a/dev-java/kissme/files/digest-kissme-0.18-r1 b/dev-java/kissme/files/digest-kissme-0.18-r1 new file mode 100644 index 000000000000..2082e5bc3eb7 --- /dev/null +++ b/dev-java/kissme/files/digest-kissme-0.18-r1 @@ -0,0 +1 @@ +MD5 d3d28e36c5285b0dbe1b8c4b24bdb788 kissme-0.18.tar.gz 802816 diff --git a/dev-java/kissme/files/digest-kissme-0.19 b/dev-java/kissme/files/digest-kissme-0.19 new file mode 100644 index 000000000000..427fef6445bc --- /dev/null +++ b/dev-java/kissme/files/digest-kissme-0.19 @@ -0,0 +1 @@ +MD5 f7a29fd99e13e23d4544798c669638f8 kissme-0.19.tar.gz 847872 diff --git a/dev-java/kissme/files/kissme.sh b/dev-java/kissme/files/kissme.sh new file mode 100644 index 000000000000..4cdc7076b1e3 --- /dev/null +++ b/dev-java/kissme/files/kissme.sh @@ -0,0 +1,13 @@ +#! /bin/sh + +if [ -z "$CLASSPATH" ] ; then + CLASSPATH=`cat /usr/share/kissme/eclasspath` +else + CLASSPATH=`cat /usr/share/kissme/eclasspath`:${CLASSPATH} +fi + +if [ -z "$*" ] ; then + /usr/bin/kissme-bin +else + /usr/bin/kissme-bin -cp ${CLASSPATH} $* +fi
\ No newline at end of file diff --git a/dev-java/kissme/kissme-0.18-r1.ebuild b/dev-java/kissme/kissme-0.18-r1.ebuild new file mode 100644 index 000000000000..3cd3fe07fbc3 --- /dev/null +++ b/dev-java/kissme/kissme-0.18-r1.ebuild @@ -0,0 +1,29 @@ +# Copyright 1999-2001 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Author Karl Trygve Kalleberg <karltk@gentoo.org> +# $Header: /var/cvsroot/gentoo-x86/dev-java/kissme/kissme-0.18-r1.ebuild,v 1.1 2001/12/15 01:07:52 karltk Exp $ + +S=${WORKDIR}/${P} +DESCRIPTION="Tiny, JITless JVM" +SRC_URI="http://prdownloads.sourceforge.net/kissme/kissme-0.18.tar.gz" +HOMEPAGE="http://kissme.sf.net" +DEPEND=">=virtual/jre-1.2 + >=dev-java/makeme-0.02 + >=dev-libs/gmp-3.1.1 + =dev-java/kissme-classpath-0.18-r1" + +RDEPEND="=dev-java/kissme-classpath-0.18-r1" + +src_compile() { + makeme || die +} + +src_install () { + dodoc AUTHORS COPYING NEWS + dodoc doc/*.txt + dodoc doc/{TAGS,TIMING} + dohtml -r doc/* + exeinto /usr/bin + newexe kissme kissme-bin + newexe ${FILESDIR}/kissme.sh kissme +} diff --git a/dev-java/kissme/kissme-0.18.ebuild b/dev-java/kissme/kissme-0.18.ebuild index 499db0153d7e..ea0c8a85cb72 100644 --- a/dev-java/kissme/kissme-0.18.ebuild +++ b/dev-java/kissme/kissme-0.18.ebuild @@ -1,31 +1 @@ -# Copyright 1999-2001 Gentoo Technologies, Inc. -# Distributed under the terms of the GNU General Public License, v2 or later -# Author Karl Trygve Kalleberg <karltk@gentoo.org> -# $Header: /var/cvsroot/gentoo-x86/dev-java/kissme/kissme-0.18.ebuild,v 1.2 2001/12/12 00:17:59 karltk Exp $ - -S=${WORKDIR}/${P} -DESCRIPTION="Tiny JVM" -SRC_URI="http://prdownloads.sourceforge.net/kissme/kissme-0.18.tar.gz" -HOMEPAGE="http://kissme.sf.net" -DEPEND=">=virtual/jre-1.2 - >=dev-java/makeme-0.02 - >=dev-libs/gmp-3.1.1 - =dev-java/kissme-classpath-0.18" - -src_compile() { - makeme -} - -src_install () { - dodoc AUTHORS COPYING NEWS - dodoc doc/*.txt - dodir usr/share/doc/${P}/html - dodoc doc/{TAGS,TIMING} - cp doc/*.html ${D}/usr/share/doc/${P}/html/ - dobin kissme -} - -pkg_postinst() { - einfo "Please remember to add /usr/share/kissme/classpath to your CLASSPATH" - einfo ' Example: export CLASSPATH=/usr/share/kissme/classpath:$CLASSPATH' -} +q
\ No newline at end of file diff --git a/dev-java/kissme/kissme-0.19.ebuild b/dev-java/kissme/kissme-0.19.ebuild new file mode 100644 index 000000000000..87d7b368520c --- /dev/null +++ b/dev-java/kissme/kissme-0.19.ebuild @@ -0,0 +1,29 @@ +# Copyright 1999-2001 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Author Karl Trygve Kalleberg <karltk@gentoo.org> +# $Header: /var/cvsroot/gentoo-x86/dev-java/kissme/kissme-0.19.ebuild,v 1.1 2001/12/15 01:07:52 karltk Exp $ + +S=${WORKDIR}/${P} +DESCRIPTION="Tiny, JITless JVM" +SRC_URI="http://prdownloads.sourceforge.net/kissme/${P}.tar.gz" +HOMEPAGE="http://kissme.sf.net" +DEPEND=">=virtual/jre-1.2 + >=dev-java/makeme-0.02 + >=dev-libs/gmp-3.1.1 + =dev-java/kissme-classpath-0.19" + +RDEPEND="=dev-java/kissme-classpath-0.19" + +src_compile() { + makeme || die +} + +src_install () { + dodoc AUTHORS COPYING NEWS + dodoc doc/*.txt + dodoc doc/{TAGS,TIMING} + dohtml -r doc/* + exeinto /usr/bin + newexe kissme kissme-bin + newexe ${FILESDIR}/kissme.sh kissme +} diff --git a/dev-java/makeme/files/digest-makeme-0.02-r1 b/dev-java/makeme/files/digest-makeme-0.02-r1 new file mode 100644 index 000000000000..e89d9ffd3884 --- /dev/null +++ b/dev-java/makeme/files/digest-makeme-0.02-r1 @@ -0,0 +1 @@ +MD5 7a89ffc5941c63f64315dcaada2c011e makeme-0.02.tar.gz 20480 diff --git a/dev-java/makeme/files/makeme-0.02-r1-gentoo.diff b/dev-java/makeme/files/makeme-0.02-r1-gentoo.diff new file mode 100644 index 000000000000..8c2e104c3c5f --- /dev/null +++ b/dev-java/makeme/files/makeme-0.02-r1-gentoo.diff @@ -0,0 +1,22 @@ +--- Makefile.orig Wed Sep 26 19:53:12 2001 ++++ Makefile Wed Sep 26 19:53:16 2001 +@@ -7,14 +7,14 @@ + + build: + #first run antlr.Tool +- CLASSPATH=/usr/share/java/antlrall.jar kaffe antlr.Tool -o gnu/makeme/parser gnu/makeme/parser/makeme.g +- CLASSPATH=/usr/share/kaffe/Klasses.jar:/usr/share/java/antlrall.jar:. jikes -d . $(JAVA_SOURCES) ++ CLASSPATH=$(CLASSPATH):/usr/share/antlr/antlrall.jar $(JAVA_HOME)/bin/java antlr.Tool -o gnu/makeme/parser gnu/makeme/parser/makeme.g ++ CLASSPATH=$(CLASSPATH):/usr/share/antlr/antlrall.jar:. jikes -d . $(JAVA_SOURCES) + + install: + # cp -Rv $(JAVA_CLASSES) $(DESTDIR)/usr/share/java/repository +- fastjar cvf makeme.jar $(JAVA_CLASSES) +- fastjar xvf makeme.jar $(DESTDIR)/usr/share/java/repository +- install teaseme $(DESTDIR)/usr/bin/ ++ jar cvf makeme.jar $(JAVA_CLASSES) ++ jar xvf makeme.jar $(DESTDIR)/usr/share/java/repository ++ install makeme $(DESTDIR)/usr/bin/ + clean: + rm -f $(JAVA_CLASSES) + rm -f makeme.jar diff --git a/dev-java/makeme/files/makeme.sh b/dev-java/makeme/files/makeme.sh new file mode 100644 index 000000000000..cf9f73db8733 --- /dev/null +++ b/dev-java/makeme/files/makeme.sh @@ -0,0 +1,15 @@ +#! /bin/sh + +if [ -z "$JAVA_HOME" ] ; then + echo "!!! JAVA_HOME not set" + exit -1 +fi + +newcp="" +for i in antlr makeme ; do + newcp=`cat < /usr/share/$i/eclasspath`:${newcp} +done + +CLASSPATH=${newcp}:${CLASSPATH} + +${JAVA_HOME}/bin/java -cp ${CLASSPATH} gnu.makeme.MakeMe $* diff --git a/dev-java/makeme/makeme-0.02-r1.ebuild b/dev-java/makeme/makeme-0.02-r1.ebuild new file mode 100644 index 000000000000..77be43cb0736 --- /dev/null +++ b/dev-java/makeme/makeme-0.02-r1.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2001 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Author Karl Trygve Kalleberg <karltk@gentoo.org> +# $Header: /var/cvsroot/gentoo-x86/dev-java/makeme/makeme-0.02-r1.ebuild,v 1.1 2001/12/15 01:07:52 karltk Exp $ + +S=${WORKDIR}/${P} + +DESCRIPTION="Make utility written in Java" + +SRC_URI="http://prdownloads.sourceforge.net/makeme/makeme-0.02.tar.gz" + +HOMEPAGE="http://makeme.sf.net" + +DEPEND=">=virtual/jdk-1.2 + >=dev-java/jikes-1.13 + >=dev-java/antlr-2.7.1-r1" + +src_unpack() { + unpack makeme-0.02.tar.gz + + cd ${S} + patch -p0 < ${FILESDIR}/${PF}-gentoo.diff +} + +src_compile() { + if [ -z "$CLASSPATH" ] ; then + echo "!!! CLASSPATH is unset" + die + fi + make build || die +} + +src_install () { + dodir usr/share/makeme + dodir usr/bin + insinto usr/share/makeme + doins makeme.jar + exeinto /usr/bin + newexe ${FILESDIR}/makeme.sh makeme + doman doc/makeme.1 + echo "/usr/share/makeme/makeme.jar" > ${D}/usr/share/makeme/eclasspath +} + |