summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Trygve Kalleberg <karltk@gentoo.org>2001-12-15 01:07:52 +0000
committerKarl Trygve Kalleberg <karltk@gentoo.org>2001-12-15 01:07:52 +0000
commit11583f396c457f273cb0b6a2604de2efe478eee0 (patch)
treea91ef9c85b777c79eefd285257cbc20853a6dc10 /dev-java/makeme
parentUnmasked TightVNC (diff)
downloadhistorical-11583f396c457f273cb0b6a2604de2efe478eee0.tar.gz
historical-11583f396c457f273cb0b6a2604de2efe478eee0.tar.bz2
historical-11583f396c457f273cb0b6a2604de2efe478eee0.zip
Major Java overhaul in progress
Diffstat (limited to 'dev-java/makeme')
-rw-r--r--dev-java/makeme/files/digest-makeme-0.02-r11
-rw-r--r--dev-java/makeme/files/makeme-0.02-r1-gentoo.diff22
-rw-r--r--dev-java/makeme/files/makeme.sh15
-rw-r--r--dev-java/makeme/makeme-0.02-r1.ebuild43
4 files changed, 81 insertions, 0 deletions
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
+}
+