aboutsummaryrefslogtreecommitdiff
path: root/academic/hyphy
diff options
context:
space:
mode:
authorPetar Petrov <slackalaxy@gmail.com>2021-05-18 16:25:15 +0300
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2021-05-18 23:40:10 +0700
commitf24243963545eeceb0a83756f89764e0a6e61b3b (patch)
treef749e41aa023148eaeb8713c7d156efce3e485d5 /academic/hyphy
parent91059909c55d99090d019014374a4be668f19e29 (diff)
academic/hyphy/: update for version 2.5.31
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'academic/hyphy')
-rw-r--r--academic/hyphy/hyphy.SlackBuild27
-rw-r--r--academic/hyphy/hyphy.info6
2 files changed, 18 insertions, 15 deletions
diff --git a/academic/hyphy/hyphy.SlackBuild b/academic/hyphy/hyphy.SlackBuild
index e22cf3435a1e..f7039bb235fc 100644
--- a/academic/hyphy/hyphy.SlackBuild
+++ b/academic/hyphy/hyphy.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for hyphy
-# Copyright 2017-2018 Petar Petrov slackalaxy@gmail.com
+# Copyright 2017-2021 Petar Petrov slackalaxy@gmail.com
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=hyphy
-VERSION=${VERSION:-2.3.14}
+VERSION=${VERSION:-2.5.31}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -71,11 +71,18 @@ find -L . \
# Fix the libraries path on 64 systems and use our compiler flags
sed -i "s:lib/hyphy:lib${LIBDIRSUFFIX}/hyphy:g" CMakeLists.txt
-sed -i "s:-msse3:$SLKCFLAGS:g" CMakeLists.txt
-sed -i "s:-march=corei7-avx -mtune=corei7-avx:$SLKCFLAGS:g" CMakeLists.txt
-sed -i "s:-mno-avx:$SLKCFLAGS:g" CMakeLists.txt
-sed -i "s:-mno-sse3:$SLKCFLAGS:g" CMakeLists.txt
-sed -i "s:-fsigned-char -O3:$SLKCFLAGS:g" CMakeLists.txt
+
+# Use our flags
+sed -i "s:-fsigned-char -O3:$SLKCFLAGS -fsigned-char:g" CMakeLists.txt
+
+# Use _only_ our flags. You may wish to comment out the lines below to
+# enable flags automatically set for you architecture.
+sed -i "s:-march=native -mtune=native -mavx::g" CMakeLists.txt
+sed -i "s:-mavx::g" CMakeLists.txt
+sed -i "s:-mfma::g" CMakeLists.txt
+sed -i "s:-msse3::g" CMakeLists.txt
+sed -i "s:-mno-avx::g" CMakeLists.txt
+sed -i "s:-mno-sse3::g" CMakeLists.txt
mkdir -p build
cd build
@@ -93,12 +100,8 @@ cd ..
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
-# Include a few examples
-mkdir -p $PKG/usr/share/$PRGNAM
-cp -a Examples $PKG/usr/share/$PRGNAM
-
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a help/*.pdf LICENSE README.md $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a LICENSE README.md CONTRIBUTING.md $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
cat $CWD/References > $PKG/usr/doc/$PRGNAM-$VERSION/References
diff --git a/academic/hyphy/hyphy.info b/academic/hyphy/hyphy.info
index 33786b6d6c38..440a4e7e1d2c 100644
--- a/academic/hyphy/hyphy.info
+++ b/academic/hyphy/hyphy.info
@@ -1,8 +1,8 @@
PRGNAM="hyphy"
-VERSION="2.3.14"
+VERSION="2.5.31"
HOMEPAGE="https://veg.github.io/hyphy-site/"
-DOWNLOAD="https://github.com/veg/hyphy/archive/2.3.14/hyphy-2.3.14.tar.gz"
-MD5SUM="d82809929d213e236078ed4853ea3962"
+DOWNLOAD="https://github.com/veg/hyphy/archive/2.5.31/hyphy-2.5.31.tar.gz"
+MD5SUM="f4d6e48aa47b657810e29dacf183860b"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="openmpi"