Browse Source

xap/pymol: Upgraded to pynol-2.3.0.

current-20191101
Damien Goutte-Gattat 2 years ago
parent
commit
3ec32a5dc1
  1. 1
      xap/pymol/pymol-open-source-2.3.0.tar.gz.sha256
  2. 1
      xap/pymol/pymol-v1.8.2.1.tar.bz2.sha1
  3. 33
      xap/pymol/pymol.SlackBuild

1
xap/pymol/pymol-open-source-2.3.0.tar.gz.sha256

@ -0,0 +1 @@
62aa21fafd1db805c876f89466e47513809f8198395e1f00a5f5cc40d6f40ed0 pymol-open-source-2.3.0.tar.gz

1
xap/pymol/pymol-v1.8.2.1.tar.bz2.sha1

@ -1 +0,0 @@
6eb748fb71e261286b22b4d5665b540753451644 pymol-v1.8.2.1.tar.bz2

33
xap/pymol/pymol.SlackBuild

@ -1,6 +1,6 @@
#!/bin/bash
# Build script for Slackware
# Copyright (C) 2008,2009,2011,2012,2013,2014,2016 Damien Goutte-Gattat
# Copyright (C) 2008-2014,2016,2019 Damien Goutte-Gattat
#
# Redistribution and use of this script, with or without modifications,
# is permitted provided that the following conditions are met:
@ -23,15 +23,16 @@
# Contact: Damien Goutte-Gattat <dgouttegattat@incenp.org>
#
# Latest PyMOL sourcecode is available at:
# <http://pymol.sourceforge.net/>.
# <https://github.com/schrodinger/pymol-open-source>.
#
# Depends: l/pmw
# Depends: l/glm
# Optional: l/pmw
# Source package infos
NAMESRC=${NAMESRC:-pymol}
VERSION=${VERSION:-1.8.2.1}
ARCHIVE=${ARCHIVE:-$NAMESRC-v$VERSION.tar.bz2}
WGET=${WGET:-https://downloads.sourceforge.net/pymol/$ARCHIVE}
VERSION=${VERSION:-2.3.0}
ARCHIVE=${ARCHIVE:-$NAMESRC-open-source-$VERSION.tar.gz}
WGET=${WGET:-https://github.com/schrodinger/pymol-open-source/archive/v$VERSION.tar.gz}
# Built package infos
NAMEPKG=${NAMEPKG:-pymol}
@ -45,13 +46,14 @@ OUT=${OUT:-$TMP/build}
PKG=${PKG:-$OUT/$NAMEPKG}
CWD=$(pwd)
# Get the 'site-packages' directory in the Python installation
SITEPKG=`python <<EOF | tail -n 1
#!/usr/bin/python
SITEPKG=$(python3 <<EOF | tail -n 1
#!/usr/bin/python3
import sys
for p in sys.path:
if p[-13:] == 'site-packages':
print p
EOF`
print(p)
EOF
)
set -e # Quit if a command returns non-zero
@ -70,7 +72,7 @@ if [ ! -f $ARCHIVE ]; then
wget -c -O $ARCHIVE.part "$WGET"
mv $ARCHIVE.part $ARCHIVE
fi
sha1sum -c $ARCHIVE.sha1
sha256sum -c $ARCHIVE.sha256
NAME=$(tar ft $ARCHIVE | head -n 1 | cut -d / -f 1)
# Compile
@ -78,7 +80,7 @@ cd $TMP
echo "Building $NAMEPKG-$VERSION..."
tar xf $CWD/$ARCHIVE
cd $NAME
python setup.py build install --root=$PKG
python3 setup.py build install --use-msgpackc=no --root=$PKG
# Install desktop file
mkdir -p $PKG/usr/share/applications
@ -87,6 +89,8 @@ install -m 0644 $CWD/pymol.desktop $PKG/usr/share/applications
# Install data to /usr/share/pymol
# (as suggested in upstream's PACKAGING notes)
mv $PKG/$SITEPKG/pymol/pymol_path $PKG/usr/share/pymol
rm $PKG/usr/share/pymol/LICENSE
rm -rf $PKG/usr/share/pymol/test
# Install the launching script (replace the script installed by
# setup.py, to add the PYMOL_DATA and PYMOL_SCRIPTS variables)
@ -95,14 +99,15 @@ cat > $PKG/usr/bin/pymol <<EOF
export PYMOL_PATH=/usr/share/pymol
export PYMOL_DATA=/usr/share/pymol/data
export PYMOL_SCRIPTS=/usr/share/pymol/scripts
python $SITEPKG/pymol/__init__.py \$*
python3 $SITEPKG/pymol/__init__.py \$*
EOF
chmod 755 $PKG/usr/bin/pymol
# Install the documentation
mkdir -p $PKG/usr/doc/$NAMEPKG-$VERSION
install -m 644 AUTHORS COPYING ChangeLog DEVELOPERS LICENSE NEWS README \
install -m 644 AUTHORS ChangeLog LICENSE README \
$PKG/usr/doc/$NAMEPKG-$VERSION
mv $PKG/usr/share/pymol/examples $PKG/usr/doc/$NAMEPKG-$VERSION/examples
# Copy slack-desc and doinst.sh files
install -D -m 0644 $CWD/slack-desc $PKG/install/slack-desc

Loading…
Cancel
Save