summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author Matteo Bernardini2019-09-27 09:04:19 +0200
committer Matteo Bernardini2020-01-12 11:51:59 +0100
commite3a55ca09f10edd8bbac9e2d0ef1f42b295ea7b3 (patch)
treefca277c16c04844d90c0970a1067f390c025f62f
parent3066e0530b82d92e7856c44afb715f6fae0a5df0 (diff)
downloadslackbuilds-python3-sip.tar.gz
python/python3-sip: Avoid conflicts with sip in Slackware.python3-sip
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
-rw-r--r--python/python3-sip/python3-sip.SlackBuild17
1 files changed, 13 insertions, 4 deletions
diff --git a/python/python3-sip/python3-sip.SlackBuild b/python/python3-sip/python3-sip.SlackBuild
index 0e1098d936..9717963af0 100644
--- a/python/python3-sip/python3-sip.SlackBuild
+++ b/python/python3-sip/python3-sip.SlackBuild
@@ -83,16 +83,25 @@ python3 configure.py \
-b "/usr/bin" \
-d "$PYTHONLIB" \
-e "/usr/include/python$PYTHONVER" \
+ --sip-module="python3_sip" \
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS"
make
make install DESTDIR=$PKG
-(
- cd $PKG/usr/bin
- mv sip python3-sip
-)
+mv $PKG/usr/bin/sip $PKG/usr/bin/python3-sip
+
+mkdir -p $PKG/usr/include/python$PYTHONVER/python3-sip
+
+mv $PKG/usr/include/python$PYTHONVER/sip.h \
+ $PKG/usr/include/python$PYTHONVER/python3-sip/sip.h \
+
+for oldf in sipdistutils.py sip.pyi sipconfig.py
+do
+ mv $PKG/usr/lib$LIBDIRSUFFIX/python$PYTHONVER/site-packages/$oldf \
+ $PKG/usr/lib$LIBDIRSUFFIX/python$PYTHONVER/site-packages/python3_$oldf
+done
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true