diff options
Diffstat (limited to 'development/python-pmw')
-rw-r--r-- | development/python-pmw/python-pmw.SlackBuild | 24 | ||||
-rw-r--r-- | development/python-pmw/python-pmw.info | 2 |
2 files changed, 13 insertions, 13 deletions
diff --git a/development/python-pmw/python-pmw.SlackBuild b/development/python-pmw/python-pmw.SlackBuild index e492f7e93e..e1c2b398d8 100644 --- a/development/python-pmw/python-pmw.SlackBuild +++ b/development/python-pmw/python-pmw.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for python-pmw -# Copyright 2007 LukenShiro <lukenshiro@ngi.it> +# Copyright 2007-2009 LukenShiro <lukenshiro@ngi.it> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -26,25 +26,25 @@ set -e PRGNAM=python-pmw -VERSION=1.3.2 -SRC_PRGNAM=Pmw -SRC_SUBDIR=Pmw_1_3 +VERSION=${VERSION:-1.3.2} ARCH=${ARCH:-noarch} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} + CWD=$(pwd) TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -PYTHON_DIR="/usr/lib/python2.5/site-packages/" +SRC_PRGNAM=Pmw +SRC_SUBDIR=Pmw_1_3 +# Python site-packages directory +PYTHONDIR=$(python -c 'import sys, os; print os.path.join("/usr/lib", "python%s" % sys.version[:3], "site-packages")') rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $PRGNAM-$VERSION -mkdir -p $PRGNAM-$VERSION -cd $PRGNAM-$VERSION +rm -rf $SRC_PRGNAM.$VERSION tar xvf $CWD/$SRC_PRGNAM.$VERSION.tar.gz cd $SRC_PRGNAM.$VERSION/src/$SRC_PRGNAM chown -R root:root . || true @@ -57,10 +57,10 @@ mv $SRC_SUBDIR/doc $PKG/usr/doc/$PRGNAM-$VERSION/html cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild # Manual installation because python setup.py install seems to not be working -mkdir -p $PKG/$PYTHON_DIR/$SRC_PRGNAM/$SRC_SUBDIR +mkdir -p $PKG/$PYTHONDIR/$SRC_PRGNAM/$SRC_SUBDIR cp -a $SRC_SUBDIR/{bin,contrib,demos,lib,tests,__init__.py} \ - $PKG/$PYTHON_DIR/$SRC_PRGNAM/$SRC_SUBDIR -cp -a __init__.py Alpha_99_9_example $PKG/$PYTHON_DIR/$SRC_PRGNAM + $PKG/$PYTHONDIR/$SRC_PRGNAM/$SRC_SUBDIR +cp -a __init__.py Alpha_99_9_example $PKG/$PYTHONDIR/$SRC_PRGNAM mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc diff --git a/development/python-pmw/python-pmw.info b/development/python-pmw/python-pmw.info index 86a1c88ee6..eb2e40e75c 100644 --- a/development/python-pmw/python-pmw.info +++ b/development/python-pmw/python-pmw.info @@ -5,4 +5,4 @@ DOWNLOAD="http://downloads.sourceforge.net/pmw/Pmw.1.3.2.tar.gz" MD5SUM="7f30886fe9885ab3cf85dac6ce1fbda5" MAINTAINER="LukenShiro" EMAIL="lukenshiro@ngi.it" -APPROVED="Erik Hanson"
\ No newline at end of file +APPROVED="dsomero" |