aboutsummaryrefslogtreecommitdiff
path: root/development/bison/bison.build
diff options
context:
space:
mode:
Diffstat (limited to 'development/bison/bison.build')
-rwxr-xr-xdevelopment/bison/bison.build77
1 files changed, 77 insertions, 0 deletions
diff --git a/development/bison/bison.build b/development/bison/bison.build
new file mode 100755
index 0000000..4f07cf2
--- /dev/null
+++ b/development/bison/bison.build
@@ -0,0 +1,77 @@
+#!/bin/bash
+#
+# Maintainer: Deposite Pirate <ofni.sknuplatem@etaripd>
+
+source /usr/src/ports/Build/build.sh
+
+NAME=bison
+VERSION=3.0
+BUILD=1
+
+# Description
+
+cat > ${PKG}/install/slack-desc <<EOF
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description. Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in. You must
+# make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':'.
+
+$(padd)|-----handy-ruler------------------------------------------------------|
+${NAME}: bison (parser generator similar to yacc)
+${NAME}:
+${NAME}: GNU "Bison" is a general-purpose parser generator that converts a
+${NAME}: grammar description for an LALR(1) context-free grammar into a C
+${NAME}: program to parse that grammar.
+${NAME}:
+${NAME}: Bison is upward compatible with Yacc: all properly-written Yacc
+${NAME}: grammars ought to work with Bison with no change. Anyone familiar
+${NAME}: with Yacc should be able to use Bison with little trouble.
+${NAME}:
+${NAME}:
+EOF
+
+cat >> ${PKG}/install/doinst.sh <<EOF
+#!/bin/sh
+
+install_info()
+{
+ for file in "\${*}"; do
+ if [ -x usr/bin/install-info ]; then
+ usr/bin/install-info --info-dir=usr/share/info usr/share/info/\${file}.info.xz 2> /dev/null
+ fi
+ done
+}
+
+# Install texinfo files
+
+install_info bison
+EOF
+
+# Sources
+
+SRCNAME[0]=${NAME}
+SRCVERS[0]=${VERSION}
+SRCPACK[0]=${URL[gnu]}/${SRCNAME[0]}/${SRCNAME[0]}-${SRCVERS[0]}.tar.xz
+SRCCOPY[0]="GPL3"
+
+build0()
+{
+CFLAGS="${FLAGS}" CXXFLAGS="${FLAGS}" \
+./configure \
+ --build="${ARCH}-slackware-linux" \
+ --disable-dependency-tracking \
+ --disable-silent-rules \
+ --disable-rpath \
+ --prefix="${SYS_DIR[usr]}" \
+ --mandir="${SYS_DIR[man]}" \
+ --infodir="${SYS_DIR[info]}" \
+ --sysconfdir="${SYS_DIR[etc]}" \
+ --libdir="${SYS_DIR[lib]}" \
+ --localstatedir="${SYS_DIR[var]}"
+make ${JOBS}
+make install DESTDIR="${PKG}"
+doc AUTHORS THANKS
+changelog NEWS
+}