summaryrefslogtreecommitdiff
path: root/source/d/bison/bison.SlackBuild
diff options
context:
space:
mode:
authorPatrick J Volkerding <volkerdi@slackware.com>2018-08-28 22:05:19 +0000
committerEric Hameleers <alien@slackware.com>2018-08-29 09:00:38 +0200
commit38dfc4aa131a87735dfc8629c3394c7d2670e9d5 (patch)
treeb34469310a5bc67af355f7145a9dd2cd6e59495c /source/d/bison/bison.SlackBuild
parentb70192b9212452c9cca2049c9e718ea7d88dd765 (diff)
downloadcurrent-38dfc4aa131a87735dfc8629c3394c7d2670e9d5.tar.gz
Tue Aug 28 22:05:19 UTC 201820180828220519
a/sysvinit-scripts-2.1-noarch-18.txz: Rebuilt. rc.cpufreq: for CPUs that use intel_pstate, default to the performance governor. The performance governor provides power savings while avoiding the ramp-up lag caused by using "ondemand", which defaults to "powersave" on these systems. Thanks to EdGr. d/bison-3.1-x86_64-1.txz: Upgraded.
Diffstat (limited to 'source/d/bison/bison.SlackBuild')
-rwxr-xr-xsource/d/bison/bison.SlackBuild29
1 files changed, 29 insertions, 0 deletions
diff --git a/source/d/bison/bison.SlackBuild b/source/d/bison/bison.SlackBuild
index b11ccd7e..713fda61 100755
--- a/source/d/bison/bison.SlackBuild
+++ b/source/d/bison/bison.SlackBuild
@@ -77,6 +77,27 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
+# Don't use icecream:
+for path_element in $(echo $PATH | tr ':' '\n') ; do
+ if [ "$path_element" = "/usr/libexec/icecc/bin" ]; then
+ continue
+ fi
+ if [ -z "$REVERSE_PATH" ]; then
+ REVERSE_PATH="$path_element"
+ else
+ REVERSE_PATH="${REVERSE_PATH}:$path_element"
+ fi
+done
+for path_element in $(echo $REVERSE_PATH | tr ':' '\n') ; do
+ if [ -z "$FORWARD_PATH" ]; then
+ FORWARD_PATH="$path_element"
+ else
+ FORWARD_PATH="${FORWARD_PATH}:$path_element"
+ fi
+done
+PATH=$FORWARD_PATH
+unset FORWARD_PATH REVERSE_PATH
+
CFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
@@ -123,6 +144,14 @@ if [ -r ChangeLog ]; then
touch -r ChangeLog $DOCSDIR/ChangeLog
fi
+# If there's a NEWS file, installing at least part of the recent history
+# is useful, but don't let it get totally out of control:
+if [ -r NEWS ]; then
+ DOCSDIR=$(echo $PKG/usr/doc/${PKGNAM}-$VERSION)
+ cat NEWS | head -n 1000 > $DOCSDIR/NEWS
+ touch -r NEWS $DOCSDIR/NEWS
+fi
+
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc