diff --git a/programming/misc/btyacc/actions.py b/programming/misc/btyacc/actions.py new file mode 100644 index 0000000000..3572e95b0a --- /dev/null +++ b/programming/misc/btyacc/actions.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +# +# Licensed under the GNU General Public License, version 3. +# See the file http://www.gnu.org/licenses/gpl.txt + +from pisi.actionsapi import autotools +from pisi.actionsapi import pisitools +from pisi.actionsapi import shelltools +from pisi.actionsapi import get + +WorkDir = "." + +def setup(): + pisitools.dosed("main.c", "len + 13", "len + 14") + +def build(): + autotools.make() + +def install(): + pisitools.dobin("btyacc") + pisitools.newman("manpage", "btyacc.1") + pisitools.dodoc("README*") diff --git a/programming/misc/btyacc/files/btyacc-3.0-includes.patch b/programming/misc/btyacc/files/btyacc-3.0-includes.patch new file mode 100644 index 0000000000..e415574213 --- /dev/null +++ b/programming/misc/btyacc/files/btyacc-3.0-includes.patch @@ -0,0 +1,10 @@ +--- a/mstring.c ++++ b/mstring.c +@@ -1,6 +1,7 @@ + #include + #include + #include ++#include + #include + #include "mstring.h" + diff --git a/programming/misc/btyacc/files/btyacc-3.0-makefile.patch b/programming/misc/btyacc/files/btyacc-3.0-makefile.patch new file mode 100644 index 0000000000..60187256d1 --- /dev/null +++ b/programming/misc/btyacc/files/btyacc-3.0-makefile.patch @@ -0,0 +1,22 @@ +Respect CC, append to CFLAGS (but not -g), append to LDFLAGS, use system LD -jer + +--- a/Makefile 1999-07-15 19:40:12.000000000 +0200 ++++ b/Makefile 2009-09-04 15:27:15.000000000 +0200 +@@ -8,14 +8,13 @@ + + HDRS = defs.h mstring.h + +-CFLAGS = -g -Wall -Wstrict-prototypes -Wmissing-prototypes ++CFLAGS += -Wall -Wstrict-prototypes -Wmissing-prototypes + +-LDFLAGS = -static ++LDFLAGS += -static + + LIBS = + +-CC = gcc +-LINKER = gcc ++LINKER = $(CC) + # LINKER = cl + # CC = cl + diff --git a/programming/misc/btyacc/pspec.xml b/programming/misc/btyacc/pspec.xml new file mode 100644 index 0000000000..3c9d763f75 --- /dev/null +++ b/programming/misc/btyacc/pspec.xml @@ -0,0 +1,54 @@ + + + + + btyacc + http://www.siber.com/btyacc + + PisiLinux Community + admins@pisilinux.org + + freedist + app:console + Backtracking YACC - modified from Berkeley YACC + This is original Berkeley Yacc modified to better fit production environment (and to have less bugs, too). + http://www.siber.com/btyacc/btyacc-3-0.tar.gz + + btyacc-3.0-includes.patch + btyacc-3.0-makefile.patch + + + + + btyacc + + /usr/bin + /usr/share/man + /usr/share/doc + + + + + + 2014-05-11 + 3.0 + Release bump. + Marcin Bojara + marcin@pisilinux.org + + + 2013-11-13 + 3.0 + Release bump. + Serdar Soytetir + kaptan@pisilinux.org + + + 2012-10-15 + 3.0 + First release + Marcin Bojara + marcin@pisilinux.org + + +