summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Noël Rivasseau <elvanor@gentoo.org>2011-05-07 19:51:18 +0000
committerJean-Noël Rivasseau <elvanor@gentoo.org>2011-05-07 19:51:18 +0000
commit635f66ff225630e2f5e4a5c0dbbace8f5be4a065 (patch)
treed0beac371a8a427fa036386835cd35d6b15fad8e /dev-java/byaccj
parentFix a comment. (diff)
downloadgentoo-2-635f66ff225630e2f5e4a5c0dbbace8f5be4a065.tar.gz
gentoo-2-635f66ff225630e2f5e4a5c0dbbace8f5be4a065.tar.bz2
gentoo-2-635f66ff225630e2f5e4a5c0dbbace8f5be4a065.zip
Initial import into tree from overlay.
(Portage version: 2.1.9.42/cvs/Linux i686)
Diffstat (limited to 'dev-java/byaccj')
-rw-r--r--dev-java/byaccj/ChangeLog18
-rw-r--r--dev-java/byaccj/byaccj-1.15.ebuild27
-rw-r--r--dev-java/byaccj/files/Makefile99
-rw-r--r--dev-java/byaccj/metadata.xml6
4 files changed, 150 insertions, 0 deletions
diff --git a/dev-java/byaccj/ChangeLog b/dev-java/byaccj/ChangeLog
new file mode 100644
index 000000000000..90081890a374
--- /dev/null
+++ b/dev-java/byaccj/ChangeLog
@@ -0,0 +1,18 @@
+# ChangeLog for dev-java/byaccj
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/byaccj/ChangeLog,v 1.1 2011/05/07 19:51:18 elvanor Exp $
+
+*byaccj-1.15 (07 May 2011)
+
+ 07 May 2011; <elvanor@gentoo.org> +byaccj-1.15.ebuild, +files/Makefile,
+ +metadata.xml:
+ Version bump to 1.15, commited to main Portage tree.
+
+ 18 Jan 2009; Alistair Bush <ali_bush@gentoo.org> +metadata.xml,
+ byaccj-1.14.ebuild:
+ Fix QA issues.
+
+ 24 Apr 2007; Petteri Räty <betelgeuse@gentoo.org> -byaccj-1.1.ebuild,
+ +byaccj-1.14.ebuild:
+ Version bump.
+
diff --git a/dev-java/byaccj/byaccj-1.15.ebuild b/dev-java/byaccj/byaccj-1.15.ebuild
new file mode 100644
index 000000000000..9d0ceec7cf09
--- /dev/null
+++ b/dev-java/byaccj/byaccj-1.15.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/byaccj/byaccj-1.15.ebuild,v 1.1 2011/05/07 19:51:18 elvanor Exp $
+
+EAPI="3"
+DESCRIPTION="A java extension of BSD YACC-compatible parser generator"
+HOMEPAGE="http://byaccj.sourceforge.net/"
+MY_P="${PN}${PV}_src"
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
+LICENSE="as-is"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE=""
+DEPEND=""
+RDEPEND=""
+
+S="${WORKDIR}/${PN}${PV}"
+
+src_compile() {
+ cp "${FILESDIR}/Makefile" src/Makefile
+ emake -C src linux || die "Failed too build"
+}
+
+src_install() {
+ newbin src/yacc.linux "${PN}" || die "Missing binary"
+ dodoc docs/ACKNOWLEDGEMEN || die
+}
diff --git a/dev-java/byaccj/files/Makefile b/dev-java/byaccj/files/Makefile
new file mode 100644
index 000000000000..003419f6b16d
--- /dev/null
+++ b/dev-java/byaccj/files/Makefile
@@ -0,0 +1,99 @@
+#################################################
+## Makefile for Byacc/Java
+## Date: 06 Aug 00
+## Author: Bob Jamison
+#################################################
+
+CC = gcc
+CFLAGS = -O
+LDFLAGS = -static
+TAR = tar
+GZIP = gzip
+VERS = byaccj1.15
+JAVA = /usr/java
+ZIP = zip
+
+INC = -I.
+
+OBJ = closure.o \
+ error.o \
+ lalr.o \
+ lr0.o \
+ main.o \
+ mkpar.o \
+ output.o \
+ reader.o \
+ skeleton.o \
+ symtab.o \
+ verbose.o \
+ warshall.o
+
+irix: yacc
+ mv yacc yacc.irix
+linux: yacc
+ mv yacc yacc.linux
+solaris: yacc
+ mv yacc yacc.solaris
+
+all: yacc
+
+dist:
+ ( \
+ cd .. ; \
+ /bin/rm -rf $(VERS) ; \
+ /bin/mkdir -p $(VERS) ; \
+ /bin/mkdir -p dist ; \
+ /bin/cp -r docs $(VERS) ; \
+ /bin/mkdir -p $(VERS)/src ; \
+ /bin/cp src/*.c $(VERS)/src ; \
+ /bin/cp src/*.h $(VERS)/src ; \
+ /bin/cp src/Makefile $(VERS)/src ; \
+ /bin/cp src/Makefile.bcc $(VERS)/src ; \
+ /bin/cp -f src/yacc.irix $(VERS) ; \
+ /bin/cp -f src/yacc.solaris $(VERS) ; \
+ /bin/cp -f src/yacc.linux $(VERS) ; \
+ /bin/cp -f src/yacc.exe $(VERS) ; \
+ /bin/cp src/README $(VERS) ; \
+ $(TAR) -cvf - $(VERS) | $(GZIP) > dist/$(VERS).tar.gz ;\
+ $(ZIP) dist/$(VERS).zip $(VERS) \
+ )
+
+SRCS = closure.c \
+ error.c \
+ lalr.c \
+ lr0.c \
+ main.c \
+ mkpar.c \
+ output.c \
+ reader.c \
+ skeleton.c \
+ symtab.c \
+ verbose.c \
+ warshall.c
+
+%.o : %.c
+ $(CC) -c $(CFLAGS) $(INC) $< -o $@
+
+yacc: $(OBJ)
+ $(CC) -o yacc $(OBJ)
+ @echo "done"
+
+clean:
+ /bin/rm -rf *.o *.obj yacc y.tab.c *.java *.class
+ /bin/rm -rf yacc.linux yacc.irix yacc.solaris yacc.exe
+ (cd .. ; /bin/rm -rf $(VERS) ; /bin/rm -rf dist )
+
+### Dependencies
+closure.o: closure.c defs.h
+error.o: error.c defs.h
+lalr.o: lalr.c defs.h
+lr0.o: lr0.c defs.h
+main.o: main.c defs.h
+mkpar.o: mkpar.c defs.h
+output.o: output.c defs.h
+reader.o: reader.c defs.h
+skeleton.o: skeleton.c defs.h
+symtab.o: symtab.c defs.h
+verbose.o: verbose.c defs.h
+warshall.o: warshall.c defs.h
+
diff --git a/dev-java/byaccj/metadata.xml b/dev-java/byaccj/metadata.xml
new file mode 100644
index 000000000000..604e0a4238bb
--- /dev/null
+++ b/dev-java/byaccj/metadata.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>java</herd>
+</pkgmetadata>
+