diff options
-rw-r--r-- | gis/python-mapnik/python-mapnik.SlackBuild | 20 | ||||
-rw-r--r-- | gis/python-mapnik/python-mapnik.info | 6 |
2 files changed, 17 insertions, 9 deletions
diff --git a/gis/python-mapnik/python-mapnik.SlackBuild b/gis/python-mapnik/python-mapnik.SlackBuild index 772cb0f0101d9..0da411b95ebb0 100644 --- a/gis/python-mapnik/python-mapnik.SlackBuild +++ b/gis/python-mapnik/python-mapnik.SlackBuild @@ -24,7 +24,8 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=python-mapnik -VERSION=${VERSION:-3.0.16} +GITREV=${GITREV:-7da019cf9eb12af8f8aa88b7d75789dfcd1e901b} +VERSION=${VERSION:-git$(echo "$GITREV" | sed 's/^\(.\{7\}\).*$/\1/')} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -68,9 +69,9 @@ set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $PRGNAM-$VERSION -tar xzvf $CWD/$PRGNAM-$VERSION.tar.gz -cd $PRGNAM-$VERSION +rm -rf $PRGNAM-$GITREV +tar xvf $CWD/$PRGNAM-$GITREV.tar.gz +cd $PRGNAM-$GITREV chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ @@ -78,8 +79,15 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -python2 setup.py install --root=$PKG -#python3 setup.py install --root=$PKG # only works on -current, where boost has libboost_python3x.so +BOOST_PYTHON_LIB="boost_python$(python -c 'import sys; print("{}{}".format(sys.version_info.major, sys.version_info.minor))')" +export BOOST_PYTHON_LIB +export BOOST_THREAD_LIB="boost_thread" +export BOOST_SYSTEM_LIB="boost_system" +python setup.py install --root=$PKG + +BOOST_PYTHON_LIB="boost_python$(python3 -c 'import sys; print("{}{}".format(sys.version_info.major, sys.version_info.minor))')" +export BOOST_PYTHON_LIB +python3 setup.py install --root=$PKG 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 diff --git a/gis/python-mapnik/python-mapnik.info b/gis/python-mapnik/python-mapnik.info index 17dffb195ef26..24c2ce6bae562 100644 --- a/gis/python-mapnik/python-mapnik.info +++ b/gis/python-mapnik/python-mapnik.info @@ -1,8 +1,8 @@ PRGNAM="python-mapnik" -VERSION="3.0.16" +VERSION="git7da019c" HOMEPAGE="https://mapnik.org" -DOWNLOAD="https://github.com/mapnik/python-mapnik/archive/v3.0.16/python-mapnik-3.0.16.tar.gz" -MD5SUM="1a23274f810812791af163d3806792a2" +DOWNLOAD="https://github.com/mapnik/python-mapnik/archive/7da019cf9eb12af8f8aa88b7d75789dfcd1e901b/python-mapnik-7da019cf9eb12af8f8aa88b7d75789dfcd1e901b.tar.gz" +MD5SUM="88fa158fec168c4a54f5b1010849af85" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="mapnik" |