summaryrefslogtreecommitdiff
path: root/libraries/reportlab/reportlab.SlackBuild
diff options
context:
space:
mode:
authorLukenShiro <lukenshiro@ngi.it>2010-05-13 00:33:28 +0200
committerDavid Somero <xgizzmo@slackbuilds.org>2010-05-13 00:33:28 +0200
commit9cea69d85545cf8a7e9d7ab559daf8bf1e1ef6f6 (patch)
treeb9b2ee285ca3731533dd6ebb15d2ebe604cd3b41 /libraries/reportlab/reportlab.SlackBuild
parenta1836e17f688ddeaea1cb17df1141435468a36af (diff)
downloadslackbuilds-9cea69d85545cf8a7e9d7ab559daf8bf1e1ef6f6.tar.gz
libraries/reportlab: Updated for version 2.3
Diffstat (limited to 'libraries/reportlab/reportlab.SlackBuild')
-rw-r--r--libraries/reportlab/reportlab.SlackBuild32
1 files changed, 21 insertions, 11 deletions
diff --git a/libraries/reportlab/reportlab.SlackBuild b/libraries/reportlab/reportlab.SlackBuild
index 0f1eef1c32..589b0788a4 100644
--- a/libraries/reportlab/reportlab.SlackBuild
+++ b/libraries/reportlab/reportlab.SlackBuild
@@ -22,6 +22,8 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# Modified by SlackBuilds.org
+
PRGNAM=reportlab
VERSION=${VERSION:-2.3}
ARCH=${ARCH:-i486}
@@ -36,10 +38,19 @@ OUTPUT=${OUTPUT:-/tmp}
SRC_PRGNAM=ReportLab
SRC_VERSION=$(echo $VERSION | tr . _)
+if [ "$ARCH" = "i486" ]; then
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "i686" ]; then
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "x86_64" ]; then
+ LIBDIRSUFFIX="64"
+fi
+
# directory for python packages
-PYTHONDIR=$(python -c 'import sys, os; print os.path.join("/usr/lib", "python%s" % sys.version[:3], "site-packages")')
+PYTHONDIR=$(python -c "import sys, os; print os.path.join('/usr/lib${LIBDIRSUFFIX}', 'python%s' % sys.version[:3], 'site-packages')")
+
DOCFILES="CHANGES.txt LICENSE.txt README.txt docs/*.pdf"
-OTHERPYFILES="demos tools tests" # tests restored
+OTHERPYFILES="demos tools tests"
set -e
@@ -57,12 +68,6 @@ chmod -R u+w,go+r-w,a-s .
# workaround due to dependency loop if reportlab isn't previously installed
PYTHONPATH=$PYTHONPATH:$TMP/${SRC_PRGNAM}_${SRC_VERSION}/src/ python genAll.py
)
-
-# Move documentation .pdf files and text files to avoid file duplication in
-# python directory
-mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-mv $DOCFILES $PKG/usr/doc/$PRGNAM-$VERSION/
-cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
# Move demos, tests and tools directories into python package's home
# and remove duplicated file
@@ -71,14 +76,19 @@ mv $OTHERPYFILES $PKG/$PYTHONDIR/$PRGNAM
rm -f $PKG/$PYTHONDIR/$PRGNAM/tools/docco/*.pdf
cd $TMP/${SRC_PRGNAM}_${SRC_VERSION}
-python setup.py build || exit 1
python setup.py install --root=$PKG || exit 1
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
-
+
+# Move documentation .pdf files and text files to avoid file duplication in
+# python directory
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+mv $DOCFILES $PKG/usr/doc/$PRGNAM-$VERSION/
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
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}