mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-20 19:41:34 +01:00
libraries/simplejson: Updated for version 2.1.0.
This commit is contained in:
parent
63138397d0
commit
9d295ae5e2
3 changed files with 14 additions and 23 deletions
|
@ -1,5 +1,7 @@
|
|||
simplejson is a simple, fast, complete, correct and extensible JSON
|
||||
encoder and decoder for Python. It is pure Python code but includes
|
||||
an optional C extension for a serious speed boost.
|
||||
Simple, fast, extensible JSON encoder/decoder for Python.
|
||||
simplejson is a simple, fast, complete, correct and extensible
|
||||
JSON <http://json.org> encoder and decoder for Python 2.4+.
|
||||
It is pure Python code, but includes an optional C extension
|
||||
for a serious speed boost.
|
||||
|
||||
This requires pysetuptools.
|
||||
Requires pysetuptools.
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
PRGNAM="simplejson"
|
||||
VERSION="2.0.9"
|
||||
VERSION="2.1.0"
|
||||
HOMEPAGE="http://undefined.org/python/#simplejson"
|
||||
DOWNLOAD="http://pypi.python.org/packages/source/s/simplejson/simplejson-2.0.9.tar.gz"
|
||||
DOWNLOAD="http://pypi.python.org/packages/source/s/simplejson/simplejson-2.1.0.tar.gz"
|
||||
MD5SUM="3ea565fd1216462162c6929b264cf365"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM="af5e67a39ca3408563411d357e6d5e47"
|
||||
MD5SUM_x86_64=""
|
||||
MAINTAINER="Larry Hajali"
|
||||
EMAIL="larryhaja[at]gmail[dot]com"
|
||||
APPROVED="dsomero"
|
||||
APPROVED="Erik Hanson"
|
||||
|
|
Loading…
Reference in a new issue