diff options
Diffstat (limited to 'libraries/tre/tre.SlackBuild')
-rw-r--r-- | libraries/tre/tre.SlackBuild | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/libraries/tre/tre.SlackBuild b/libraries/tre/tre.SlackBuild index 54560e0c0c2c6..9701d5a62faf2 100644 --- a/libraries/tre/tre.SlackBuild +++ b/libraries/tre/tre.SlackBuild @@ -3,6 +3,7 @@ # Slackware build script for TRE # Copyright 2008 Frank Caraballo <fecaraballo{at}gmail{dot}com> +# Maintained 2013-2021 by Benjamin Trigona-Harany <slackbuilds@jaxartes.net> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -80,23 +81,14 @@ CFLAGS="$SLKCFLAGS" \ make install-strip DESTDIR=$PKG -cp -r python python3 cd python + # Python 3 support from https://github.com/ahomansikka/tre/commit/d6a0220 + patch -p0 < $CWD/python3.patch CFLAGS="-I$PKG/usr/include" \ LDFLAGS="-L$PKG/usr/lib$LIBDIRSUFFIX" \ - python setup.py install --root=$PKG + python3 setup.py install --root=$PKG cd - -if $(python3 -c 'import sys' 2>/dev/null); then - cd python3 - # Python 3 support from https://github.com/ahomansikka/tre/commit/d6a0220 - patch -p0 < $CWD/python3.patch - CFLAGS="-I$PKG/usr/include" \ - LDFLAGS="-L$PKG/usr/lib$LIBDIRSUFFIX" \ - python3 setup.py install --root=$PKG - cd - -fi - find $PKG/usr/man -type f -exec gzip -9 {} \; for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done |