summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author Matteo Bernardini2024-03-26 22:59:49 +0100
committer Matteo Bernardini2024-04-27 10:37:56 +0200
commit4abdfbb6c4b8c4c6d103c3e0006693ac6cc83410 (patch)
tree55d73588ccde2fbaad9d4d65397286ad9895ef2f
parent68ac93024440c1dcb61e579018ce241a1ab44180 (diff)
downloadslackbuilds-libpst.tar.gz
ibraries/libpst: Remove python2 support.libpst
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
-rw-r--r--libraries/libpst/libpst.SlackBuild72
1 files changed, 20 insertions, 52 deletions
diff --git a/libraries/libpst/libpst.SlackBuild b/libraries/libpst/libpst.SlackBuild
index f02b91fcd1..65c4e55007 100644
--- a/libraries/libpst/libpst.SlackBuild
+++ b/libraries/libpst/libpst.SlackBuild
@@ -99,58 +99,26 @@ chown -R root:root .
find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \
\! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+
-buildit() {
- autoreconf -if
-
- CFLAGS="$SLKCFLAGS" \
- CXXFLAGS="$SLKCFLAGS" \
- ./configure \
- --prefix=/usr \
- --libdir=/usr/lib${LIBDIRSUFFIX} \
- --mandir=/usr/man \
- --enable-dii \
- --disable-static \
- --enable-libpst-shared \
- --enable-python \
- --build=$ARCH-slackware-linux
-
- make
- # ./configure options --docdir and --htmldir have no effect,
- # it is necessary to override "htmldir" and "htmldeveldir"
- make install-strip DESTDIR=$PKG \
- htmldir=/usr/doc/$PRGNAM-$VERSION \
- htmldeveldir=/usr/doc/$PRGNAM-$VERSION/devel
-}
-
-# 20211019 bkw: python3 builds work now. Include support for both
-# python versions, 2 and 3. Unfortunately this means building the
-# entire project twice (keeping only the python2 stuff from the
-# first build). autotools doesn't make it easy or even necessarily
-# possible to build only part of a project :(
-
-# Python 2 build. If python2 ever really does go away, this code will
-# silently omit python2 support from the package.
-if type -p python2 &>/dev/null; then
- PY2VER="$( python2 --version 2>&1 | cut -d' ' -f2 | cut -d. -f1,2 )"
-
- # ./configure --help claims that I can set PYTHON_VERSION in the environment
- # and it'll use that, but it doesn't work. So I have to use this abomination:
- sed -i.bak 's,\<python3\..\>,python'$PY2VER',g' m4/ax_python.m4
-
- buildit
-
- mv $PKG/usr/lib$LIBDIRSUFFIX/python$PY2VER $PKG/.keep.python2
- rm -rf $PKG/*
-
- # put everything back the way it was.
- make distclean
- mv m4/ax_python.m4.bak m4/ax_python.m4
-fi
-
-# Python 3 build
-buildit
-[ -e $PKG/.keep.python2 ] && \
- mv $PKG/.keep.python2 $PKG/usr/lib$LIBDIRSUFFIX/python$PY2VER
+autoreconf -if
+
+CFLAGS="$SLKCFLAGS" \
+CXXFLAGS="$SLKCFLAGS" \
+./configure \
+ --prefix=/usr \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
+ --mandir=/usr/man \
+ --enable-dii \
+ --disable-static \
+ --enable-libpst-shared \
+ --enable-python \
+ --build=$ARCH-slackware-linux
+
+make
+# ./configure options --docdir and --htmldir have no effect,
+# it is necessary to override "htmldir" and "htmldeveldir"
+make install-strip DESTDIR=$PKG \
+ htmldir=/usr/doc/$PRGNAM-$VERSION \
+ htmldeveldir=/usr/doc/$PRGNAM-$VERSION/devel
gzip -9 $PKG/usr/man/man?/*.?