libraries/reportlab: Updated for version 2.3

This commit is contained in:
LukenShiro 2010-05-13 00:33:28 +02:00 committed by David Somero
parent a1836e17f6
commit 9cea69d855
4 changed files with 25 additions and 16 deletions

View File

@ -21,6 +21,3 @@ It has the following features:
- strong community support - strong community support
- platform-independent - platform-independent
- includes PythonPoint - PDF Presentation Tool - includes PythonPoint - PDF Presentation Tool
If pil (Python Imaging library) is installed (it is also available from
Slackbuilds.org), reportlab can use it for working with bitmap images.

View File

@ -22,6 +22,8 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# Modified by SlackBuilds.org
PRGNAM=reportlab PRGNAM=reportlab
VERSION=${VERSION:-2.3} VERSION=${VERSION:-2.3}
ARCH=${ARCH:-i486} ARCH=${ARCH:-i486}
@ -36,10 +38,19 @@ OUTPUT=${OUTPUT:-/tmp}
SRC_PRGNAM=ReportLab SRC_PRGNAM=ReportLab
SRC_VERSION=$(echo $VERSION | tr . _) 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 # 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" DOCFILES="CHANGES.txt LICENSE.txt README.txt docs/*.pdf"
OTHERPYFILES="demos tools tests" # tests restored OTHERPYFILES="demos tools tests"
set -e set -e
@ -58,12 +69,6 @@ chmod -R u+w,go+r-w,a-s .
PYTHONPATH=$PYTHONPATH:$TMP/${SRC_PRGNAM}_${SRC_VERSION}/src/ python genAll.py 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 # Move demos, tests and tools directories into python package's home
# and remove duplicated file # and remove duplicated file
mkdir -p $PKG/$PYTHONDIR/$PRGNAM/ mkdir -p $PKG/$PYTHONDIR/$PRGNAM/
@ -71,14 +76,19 @@ mv $OTHERPYFILES $PKG/$PYTHONDIR/$PRGNAM
rm -f $PKG/$PYTHONDIR/$PRGNAM/tools/docco/*.pdf rm -f $PKG/$PYTHONDIR/$PRGNAM/tools/docco/*.pdf
cd $TMP/${SRC_PRGNAM}_${SRC_VERSION} cd $TMP/${SRC_PRGNAM}_${SRC_VERSION}
python setup.py build || exit 1
python setup.py install --root=$PKG || exit 1 python setup.py install --root=$PKG || exit 1
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true | 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 mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG 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}

View File

@ -2,7 +2,9 @@ PRGNAM="reportlab"
VERSION="2.3" VERSION="2.3"
HOMEPAGE="http://www.reportlab.org/" HOMEPAGE="http://www.reportlab.org/"
DOWNLOAD="http://www.reportlab.org/ftp/ReportLab_2_3.tar.gz" DOWNLOAD="http://www.reportlab.org/ftp/ReportLab_2_3.tar.gz"
DOWNLOAD_x86_64=""
MD5SUM="057b846bd3b7b2c3498bf14f6a523632" MD5SUM="057b846bd3b7b2c3498bf14f6a523632"
MD5SUM_x86_64=""
MAINTAINER="LukenShiro" MAINTAINER="LukenShiro"
EMAIL="lukenshiro@ngi.it" EMAIL="lukenshiro@ngi.it"
APPROVED="dsomero" APPROVED="dsomero,pprkut"

View File

@ -5,7 +5,7 @@
# make exactly 11 lines for the formatting to be correct. It's also # make exactly 11 lines for the formatting to be correct. It's also
# customary to leave one space after the ':'. # customary to leave one space after the ':'.
|-----handy-ruler------------------------------------------------------| |-----handy-ruler------------------------------------------------------|
reportlab: reportlab (PDF generation toolkit using python) reportlab: reportlab (PDF generation toolkit using python)
reportlab: reportlab:
reportlab: The ReportLab Open Source PDF library is a proven industry-strength reportlab: The ReportLab Open Source PDF library is a proven industry-strength