diff options
author | B. Watson <yalhcru@gmail.com> | 2019-12-25 14:58:36 -0500 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2019-12-31 18:06:24 +0700 |
commit | d452da1a2630e10d633466d8f8f636949b6c71fd (patch) | |
tree | 23b9b20112221fb9334ea3016aef9be701060148 /development/bed/bed.SlackBuild | |
parent | dcc93ee3c92bcff39afcf54395f8b1d87b04968a (diff) |
development/bed: Fix re2 builds.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Diffstat (limited to 'development/bed/bed.SlackBuild')
-rw-r--r-- | development/bed/bed.SlackBuild | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/development/bed/bed.SlackBuild b/development/bed/bed.SlackBuild index 37bae1531287..ba792ecfcc74 100644 --- a/development/bed/bed.SlackBuild +++ b/development/bed/bed.SlackBuild @@ -6,9 +6,13 @@ # Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details. +# 20191225 bkw: BUILD=2 +# - fix builds with optional re2 dep, document optional hyperscan dep. +# - install BUGS CHANGELOG TODO in docdir. + PRGNAM=bed VERSION=${VERSION:-3.0.0} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -62,6 +66,9 @@ find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \ # "exit". So: sed -i '/Press F1 in menu/s/X/[x]/g' plugins/examples/helpf1.cc +# 20191225 bkw: build was failing on systems where re2 was installed +sed -i 's,static *string,static std::string,' src/re2search.cpp + # Not sure the --without-x does anything, but it doesn't hurt either. CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ @@ -144,13 +151,23 @@ rm -f $PKGBEDLIB/uninstallbed.sh # but it's stuff that could be considered documentation so I'll leave it. mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +chmod 644 BUGS +cp -a BUGS CHANGELOG TODO $PKG/usr/doc/$PRGNAM-$VERSION for i in LICENSE README; do ln -s ../../lib$LIBDIRSUFFIX/$PRGNAM-$VERSION/$i $PKG/usr/doc/$PRGNAM-$VERSION done cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +# 20191225 bkw: slack-desc shows optional deps. Can't use ldd for hyperscan +# as it's dynamically loaded. +RE2=no; HYPER=no +ldd $PKG/usr/bin/$PRGNAM | fgrep libre2.so && RE2=yes +strings $PKG/usr/bin/$PRGNAM | grep -q '(hyperscan) search' && HYPER=yes + mkdir -p $PKG/install -cat $CWD/slack-desc > $PKG/install/slack-desc +sed -e "s,@HYPER@,$HYPER," \ + -e "s,@RE2@,$RE2," \ + $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/doinst.sh > $PKG/install/doinst.sh cd $PKG |