aboutsummaryrefslogtreecommitdiff
path: root/academic
diff options
context:
space:
mode:
authorRob van Nues <sborg63@disroot.org>2019-08-03 06:21:42 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2019-08-03 06:21:42 +0700
commit53ab6902c2818a949ebfad0635e66e72dad3c413 (patch)
treec414a7b621cd9d0ce34216f4ff1f3096214f2c7c /academic
parent0785dbba03919456985cd04e8baf60d25bcfc8b0 (diff)
academic/pysam: Updated for version 0.15.3.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'academic')
-rw-r--r--academic/pysam/pysam.SlackBuild17
-rw-r--r--academic/pysam/pysam.info8
2 files changed, 19 insertions, 6 deletions
diff --git a/academic/pysam/pysam.SlackBuild b/academic/pysam/pysam.SlackBuild
index c2ff916cc9bd..f5c3d8615e71 100644
--- a/academic/pysam/pysam.SlackBuild
+++ b/academic/pysam/pysam.SlackBuild
@@ -24,10 +24,14 @@
PRGNAM=pysam
-VERSION=${VERSION:-0.15.2}
+VERSION=${VERSION:-0.15.3}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+#set which python version to install it for
+PYTHON2=false
+PYTHON3=true
+
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i586 ;;
@@ -70,7 +74,16 @@ 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 {} \;
-python setup.py install --root=$PKG
+#use system htslib instead
+export HTSLIB_LIBRARY_DIR=/usr/lib$LIBDIRSUFFIX
+export HTSLIB_INCLUDE_DIR=/usr/include
+
+if $PYTHON2; then
+ python setup.py install --root=$PKG
+fi
+if $PYTHON3; then
+ python3 setup.py install --root=$PKG
+fi
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/academic/pysam/pysam.info b/academic/pysam/pysam.info
index 2951c27d9572..a7747f8d207c 100644
--- a/academic/pysam/pysam.info
+++ b/academic/pysam/pysam.info
@@ -1,10 +1,10 @@
PRGNAM="pysam"
-VERSION="0.15.2"
+VERSION="0.15.3"
HOMEPAGE="https://github.com/pysam-developers/pysam"
-DOWNLOAD="https://github.com/pysam-developers/pysam/archive/v0.15.2/pysam-0.15.2.tar.gz"
-MD5SUM="3000f77fd997d864fe551b3001fbac22"
+DOWNLOAD="https://github.com/pysam-developers/pysam/archive/v0.15.3/pysam-0.15.3.tar.gz"
+MD5SUM="f8586362c20c754bc698c04e32e11a63"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES=""
+REQUIRES="python3 htslib"
MAINTAINER="Rob van Nues"
EMAIL="sborg63@disroot.org"