aboutsummaryrefslogtreecommitdiff
path: root/development/gperf/gperf.build
diff options
context:
space:
mode:
Diffstat (limited to 'development/gperf/gperf.build')
-rwxr-xr-xdevelopment/gperf/gperf.build76
1 files changed, 76 insertions, 0 deletions
diff --git a/development/gperf/gperf.build b/development/gperf/gperf.build
new file mode 100755
index 0000000..d2141c3
--- /dev/null
+++ b/development/gperf/gperf.build
@@ -0,0 +1,76 @@
+#!/bin/bash
+#
+# Maintainer: Deposite Pirate <ofni.sknuplatem@etaripd>
+
+source /usr/src/ports/Build/build.sh
+
+NAME=gperf
+VERSION=3.0.4
+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}: gperf (a perfect hash function generator)
+${NAME}:
+${NAME}: gperf is a perfect hash function generator written in C++. It
+${NAME}: transforms an n element user-specified keyword set W into a perfect
+${NAME}: hash function F. gperf currently generates the reserved keyword
+${NAME}: recognizer for lexical analyzers in several production and research
+${NAME}: compilers and language processing tools, including GNU C, GNU C++,
+${NAME}: GNU Java, GNU Pascal, GNU Modula 3, and GNU indent.
+${NAME}:
+${NAME}: gperf was written by by Douglas C. Schmidt and Bruno Haible.
+${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 gperf
+EOF
+
+# Sources
+
+SRCNAME[0]=${NAME}
+SRCVERS[0]=${VERSION}
+SRCPACK[0]=${URL[gnu]}/${SRCNAME[0]}/${SRCNAME[0]}-${SRCVERS[0]}.tar.gz
+SRCCOPY[0]="GPL3"
+
+build0()
+{
+CFLAGS="${FLAGS}" CXXFLAGS="${FLAGS}" \
+./configure \
+ --build="${ARCH}-slackware-linux" \
+ --prefix="${SYS_DIR[usr]}" \
+ --mandir="${SYS_DIR[man]}" \
+ --infodir="${SYS_DIR[info]}" \
+ --docdir="${SYS_DIR[doc]}/gperf" \
+ --sysconfdir="${SYS_DIR[etc]}" \
+ --libdir="${SYS_DIR[lib]}" \
+ --localstatedir="${SYS_DIR[var]}"
+make ${JOBS}
+make install DESTDIR="${PKG}"
+doc AUTHORS
+changelog NEWS
+rm -rf ${PKG}${SYS_DIR[doc]}/gperf
+}