summaryrefslogtreecommitdiff
path: root/dev-java/byaccj
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
commit8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch)
tree7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-java/byaccj
parent30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff)
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-java/byaccj')
-rw-r--r--dev-java/byaccj/Manifest4
-rw-r--r--dev-java/byaccj/byaccj-1.15-r1.ebuild28
-rw-r--r--dev-java/byaccj/files/Makefile99
-rw-r--r--dev-java/byaccj/metadata.xml11
4 files changed, 142 insertions, 0 deletions
diff --git a/dev-java/byaccj/Manifest b/dev-java/byaccj/Manifest
new file mode 100644
index 000000000000..5102aca816db
--- /dev/null
+++ b/dev-java/byaccj/Manifest
@@ -0,0 +1,4 @@
+AUX Makefile 2003 BLAKE2B e57447ec26975954239e92509fa1491fb31235a150d56db7fdefbd4fb61bd53e13df5d0b6157843c094ff8b691de00515e92fdf4c95c9ea6e71fc122c4d27efb SHA512 d48f81fcf89ca5f6524572b75dcde4866cea5f434059233c234a664f56e80c0daadc8f314711cb9c55430a947cc9dbf48f4a0bead0433da5b333f5fd73fcbc68
+DIST byaccj1.15_src.tar.gz 53646 BLAKE2B a57cdb85253f2ea8485c05687222cf99912494841cdfb6deb13d80d49f87a3dd8f1eb3350bf2501c7c86b70a198415e339019930301bd8d2a770e10ca9bb850f SHA512 6423ecca70d21dd0c1dd8366361f6c4420536e099090b18738013fbb6e8e0710ee739e51dfd7f603a64f8761f48cdd1d8dc7844d1b5ec6b792535254d290addc
+EBUILD byaccj-1.15-r1.ebuild 691 BLAKE2B 4264f45b95fa79e347af7f4f731906398f630e7c186352df1f1de708b84b8d96de7fd022132c08fc015dc7a5a8b648f1b654a1fadc6dd0679ff4b63987f490a7 SHA512 e24b9878b8551f984060bb3b4b449f7d9cf8c7d876c9a1fbfa9efc46bb2f1a3a1eda104706b8e07bd52623019e0c348453a4ac33d66b17fe409f2602b8113551
+MISC metadata.xml 312 BLAKE2B 1148e4e9d86c4155c8413261aa2bd091a462baac98b22bbe6e7d609088c5dbe3fc3d0f8d4d537f2052c87571c29a95ffeeeebabbbaa6a623559bc5ba463c6171 SHA512 3ce25507ed5012c2f4c4961a9a9b739b04762e0a34bef6db4202240a65e6c1212a459ab35fa1c680dea52928c88f88301e36abc780228fb4b3591a37b3cff749
diff --git a/dev-java/byaccj/byaccj-1.15-r1.ebuild b/dev-java/byaccj/byaccj-1.15-r1.ebuild
new file mode 100644
index 000000000000..ecb1c7ade4cb
--- /dev/null
+++ b/dev-java/byaccj/byaccj-1.15-r1.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="4"
+
+inherit toolchain-funcs
+
+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="public-domain"
+SLOT="0"
+KEYWORDS="amd64 ~arm ~arm64 ppc64 x86 ~ppc-macos ~x64-macos ~x86-macos"
+IUSE=""
+
+S="${WORKDIR}/${PN}${PV}"
+
+src_compile() {
+ cp "${FILESDIR}/Makefile" src/Makefile || die
+ emake CC="$(tc-getCC)" LDFLAGS="${LDFLAGS}" CFLAGS="${CFLAGS}" -C src linux
+}
+
+src_install() {
+ newbin src/yacc.linux "${PN}"
+ dodoc docs/ACKNOWLEDGEMEN
+}
diff --git a/dev-java/byaccj/files/Makefile b/dev-java/byaccj/files/Makefile
new file mode 100644
index 000000000000..c46772a1de1b
--- /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) $(LDFLAGS) -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..11872579d69e
--- /dev/null
+++ b/dev-java/byaccj/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>java@gentoo.org</email>
+ <name>Java</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">byaccj</remote-id>
+ </upstream>
+</pkgmetadata>