From dbe272a954c3707363c5bdf03d287ae40f1dcaf5 Mon Sep 17 00:00:00 2001 From: LukenShiro Date: Wed, 12 May 2010 17:38:51 +0200 Subject: development/python-pmw: Updated for version 1.3.2 --- development/python-pmw/python-pmw.SlackBuild | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'development/python-pmw/python-pmw.SlackBuild') 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 +# Copyright 2007-2009 LukenShiro # 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 -- cgit v1.2.3