summaryrefslogtreecommitdiff
path: root/libraries/simplejson/simplejson.SlackBuild
diff options
context:
space:
mode:
authorLarry Hajali <larryhaja[at]gmail[dot]com>2010-03-22 02:38:35 -0500
committerErik Hanson <erik@slackbuilds.org>2010-05-13 14:27:17 +0200
commit9d295ae5e207d4a4acea7bbeafdba8353c793417 (patch)
treeb7229f9f0fe758f93e6a885f633e62cede881780 /libraries/simplejson/simplejson.SlackBuild
parent63138397d0d5327e8a7885e792c000fd099f8b53 (diff)
downloadslackbuilds-9d295ae5e207d4a4acea7bbeafdba8353c793417.tar.gz
libraries/simplejson: Updated for version 2.1.0.
Diffstat (limited to 'libraries/simplejson/simplejson.SlackBuild')
-rw-r--r--libraries/simplejson/simplejson.SlackBuild19
1 files changed, 4 insertions, 15 deletions
diff --git a/libraries/simplejson/simplejson.SlackBuild b/libraries/simplejson/simplejson.SlackBuild
index b1898373a0..f21b4324d7 100644
--- a/libraries/simplejson/simplejson.SlackBuild
+++ b/libraries/simplejson/simplejson.SlackBuild
@@ -3,7 +3,7 @@
# Written by Larry Hajali <larryhaja[at]gail[dot]com>
PRGNAM=simplejson
-VERSION=${VERSION:-2.0.9}
+VERSION=${VERSION:-2.1.0}
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -13,17 +13,6 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
- LIBDIRSUFFIX=""
-elif [ "$ARCH" = "i686" ]; then
- SLKCFLAGS="-O2 -march=i686 -mtune=i686"
- LIBDIRSUFFIX=""
-elif [ "$ARCH" = "x86_64" ]; then
- SLKCFLAGS="-O2 -fPIC"
- LIBDIRSUFFIX="64"
-fi
-
set -e
rm -rf $PKG
@@ -39,8 +28,8 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
-# Lets use the system setup tools rather then ez_setup.
-patch -p1 < $CWD/setup.py.patch
+# Lets use the system setuptools rather then ez_setup.
+rm -f ez_setup.py
python setup.py install --root=$PKG
@@ -53,7 +42,7 @@ python setup.py install --root=$PKG
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/html
cp -a LICENSE.txt $PKG/usr/doc/$PRGNAM-$VERSION
-cp -aR docs/* $PKG/usr/doc/$PRGNAM-$VERSION/html/
+cp -ar docs/* $PKG/usr/doc/$PRGNAM-$VERSION/html/
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install