Browse Source

l/reportlab: Upgraded to reportlab-2.4.

slackware-14.2
Damien Goutte-Gattat 12 years ago
parent
commit
59811dea7a
  1. 1
      l/reportlab/ReportLab_2_3.tar.gz.sha1
  2. 1
      l/reportlab/ReportLab_2_4.tar.gz.sha1
  3. 18
      l/reportlab/reportlab.SlackBuild

1
l/reportlab/ReportLab_2_3.tar.gz.sha1

@ -1 +0,0 @@
cb5e27fef02eceaab79236d5a074cdfb92bff179 ReportLab_2_3.tar.gz

1
l/reportlab/ReportLab_2_4.tar.gz.sha1

@ -0,0 +1 @@
31ecc9ff0f55ce3c5fddaa909dd48b6e9e9a20ce ReportLab_2_4.tar.gz

18
l/reportlab/reportlab.SlackBuild

@ -1,6 +1,6 @@
#!/bin/bash
# Build script for Slackware
# Copyright (C) 2008,2009 Damien Goutte-Gattat
# Copyright (C) 2008,2009,2010 Damien Goutte-Gattat
#
# Redistribution and use of this script, with or without modifications,
# is permitted provided that the following conditions are met:
@ -27,14 +27,14 @@
# Source package infos
NAMESRC=${NAMESRC:-ReportLab}
VERSION=${VERSION:-2.3}
VERSION=${VERSION:-2.4}
ARCHIVE=${ARCHIVE:-${NAMESRC}_${VERSION//./_}.tar.gz}
WGET=${WGET:-http://www.reportlab.org/ftp/$ARCHIVE}
# Build infos
NAMEPKG=${NAMEPKG:-reportlab}
BUILD=${BUILD:-1GGD}
ARCH=${ARCH:-i486}
ARCH=${ARCH:-$(uname -m | sed 's/^i?86$/i486/;s/^arm.*/arm/')}
EXT=${EXT:-txz}
# Directories
@ -56,12 +56,14 @@ if [ ! -d $TMP ]; then
fi
# Compilation flags
LIBDIRSUFFIX=""
case "$ARCH" in
i?86)
CPUOPT="-O2 -march=$ARCH -mtune=i686"
;;
x86_64)
CPUOPT="-O2 -fPIC"
LIBDIRSUFFIX="64"
;;
*)
CPUOPT="-O2"
@ -90,11 +92,15 @@ python setup.py install --root=$PKG
find $PKG | xargs file | grep "ELF \(32\|64\)-bit LSB" | cut -d : -f 1 | \
xargs strip --strip-unneeded 2> /dev/null
# Install the documentation
# Build and install the documentation
mkdir -p $PKG/usr/doc/$NAMEPKG-$VERSION
install -m 644 CHANGES.txt LICENSE.txt README.txt \
(
cd docs
PYTHONPATH=$PKG/usr/lib$LIBDIRSUFFIX/python2.6/site-packages:$PYTHONPATH \
python genAll.py
)
install -m 644 CHANGES.txt LICENSE.txt README.txt docs/*.pdf \
$PKG/usr/doc/$NAMEPKG-$VERSION
cp -r docs/* $PKG/usr/doc/$NAMEPKG-$VERSION
# Copy slack-desc file
install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc

Loading…
Cancel
Save