Browse Source

d/pysetuptools: Upgraded to pysetuptools-2.0.1.

slackware-14.2
Damien Goutte-Gattat 8 years ago
parent
commit
49ed2f1384
  1. 24
      d/pysetuptools/pysetuptools.SlackBuild
  2. 1
      d/pysetuptools/setuptools-0.6c11.tar.gz.sha1
  3. 1
      d/pysetuptools/setuptools-2.0.1.tar.gz.sha1

24
d/pysetuptools/pysetuptools.SlackBuild

@ -1,6 +1,6 @@
#!/bin/bash
# Build script for Slackware
# Copyright (C) 2009,2011 Damien Goutte-Gattat
# Copyright (C) 2009,2011,2013 Damien Goutte-Gattat
#
# Redistribution and use of this script, with or without modifications,
# is permitted provided that the following conditions are met:
@ -27,7 +27,7 @@
# Source package infos
NAMESRC=${NAMESRC:-setuptools}
VERSION=${VERSION:-0.6c11}
VERSION=${VERSION:-2.0.1}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz}
WGET=${WGET:-http://pypi.python.org/packages/source/s/setuptools/$ARCHIVE}
@ -55,19 +55,6 @@ if [ ! -d $TMP ]; then
exit 1
fi
# Compilation flags
case "$ARCH" in
i?86)
CPUOPT="-O2 -march=$ARCH -mtune=i686"
;;
x86_64)
CPUOPT="-O2 -fPIC"
;;
*)
CPUOPT="-O2"
;;
esac
# Get and verify the source archive
if [ ! -r $ARCHIVE ]; then
wget -c -O $ARCHIVE.part "$WGET"
@ -82,11 +69,14 @@ echo "Building $ARCHIVE..."
tar xf $CWD/$ARCHIVE
cd $NAME
find . -type f -exec chmod 644 {} \;
CFLAGS=$CPUOPT \
CXXFLAGS=$CPUOPT \
python setup.py build
python setup.py install --root=$PKG
# Install documentation
mkdir -p $PKG/usr/doc/$NAMEPKG-$VERSION
install -m 644 CHANGES.txt CONTRIBUTORS.txt DEVGUIDE.txt README.txt \
$PKG/usr/doc/$NAMEPKG-$VERSION
# Copy slack-desc file
install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc

1
d/pysetuptools/setuptools-0.6c11.tar.gz.sha1

@ -1 +0,0 @@
8d1ad6384d358c547c50c60f1bfdb3362c6c4a7d setuptools-0.6c11.tar.gz

1
d/pysetuptools/setuptools-2.0.1.tar.gz.sha1

@ -0,0 +1 @@
5283b4dca46d45efd1156713ab51836509646c03 setuptools-2.0.1.tar.gz
Loading…
Cancel
Save