summaryrefslogtreecommitdiff
path: root/academic/wxmacmolplt/wxmacmolplt.SlackBuild
diff options
context:
space:
mode:
authorDaniil Bratashov <dn2010@gmail.com>2010-05-13 00:20:30 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-13 00:20:30 +0200
commit75c5e5f698c543c456ba6e8ec15d13c16b8f2723 (patch)
tree7fe1aaf09ea024f5c21d8caf9c98c1cee77375a7 /academic/wxmacmolplt/wxmacmolplt.SlackBuild
parent4c3794d742d4056ee42f8754053e01f5712f9f2f (diff)
downloadslackbuilds-75c5e5f698c543c456ba6e8ec15d13c16b8f2723.tar.gz
academic/wxmacmolplt: Updated for version 7.4
Diffstat (limited to 'academic/wxmacmolplt/wxmacmolplt.SlackBuild')
-rw-r--r--academic/wxmacmolplt/wxmacmolplt.SlackBuild30
1 files changed, 15 insertions, 15 deletions
diff --git a/academic/wxmacmolplt/wxmacmolplt.SlackBuild b/academic/wxmacmolplt/wxmacmolplt.SlackBuild
index d1791a0ccb..54cb8516e3 100644
--- a/academic/wxmacmolplt/wxmacmolplt.SlackBuild
+++ b/academic/wxmacmolplt/wxmacmolplt.SlackBuild
@@ -5,9 +5,9 @@
# Written by Daniil Bratashov <dn2010@gmail.com>
PRGNAM=wxmacmolplt
-VERSION=${VERSION:-7.3}
+VERSION=${VERSION:-7.4}
ARCH=${ARCH:-i486}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
CWD=$(pwd)
@@ -35,9 +35,6 @@ rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
-# Fix for PCGAMESS new raman activities format
-patch -p1 -E < $CWD/wxmacmolplt-7.2.1-raman.patch
-
chown -R root:root .
find . \
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
@@ -45,6 +42,11 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
+# Fix for PCGAMESS new raman activities format
+patch -p1 < $CWD/wxmacmolplt-7.2.1-raman.patch
+# Fix for Firefly format autodetection
+patch -p1 < $CWD/wxmacmolplt-7.4-firefly.patch
+
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
@@ -65,23 +67,21 @@ make install DESTDIR=$PKG
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \
xargs strip --strip-unneeded 2> /dev/null || true
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \
- xargs strip --strip-unneeded 2> /dev/null
+ xargs strip --strip-unneeded 2> /dev/null || true
)
-mkdir -p $PKG/usr/share/icons/hicolor/128x128/apps
-cp resources/wxmacmolplt.png $PKG/usr/share/icons/hicolor/128x128/apps
-mkdir -p $PKG/usr/share/applications
-cp resources/wxmacmolplt.desktop $PKG/usr/share/applications
-
( cd $PKG/usr/man
find . -type f -exec gzip -9 {} \;
for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
)
+mkdir -p $PKG/usr/share/icons/hicolor/128x128/apps
+cp resources/wxmacmolplt.png $PKG/usr/share/icons/hicolor/128x128/apps
+mkdir -p $PKG/usr/share/applications
+cp resources/wxmacmolplt.desktop $PKG/usr/share/applications
+
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a \
- AUTHORS LICENSE NEWS README \
- $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a AUTHORS LICENSE NEWS README $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mv $PKG/usr/share/$PRGNAM/MacMolPlt_Manual.html $PKG/usr/doc/$PRGNAM-$VERSION
mv $PKG/usr/share/$PRGNAM/Manual_pages $PKG/usr/doc/$PRGNAM-$VERSION
@@ -90,4 +90,4 @@ mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}