python/foolscap: Updated for version 0.6.4, moved from libraries.

Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
This commit is contained in:
Markus Reichelt 2012-06-28 16:57:52 -04:00 committed by dsomero
parent 2c661fa148
commit 344022d9c3
4 changed files with 18 additions and 15 deletions

View file

@ -3,6 +3,7 @@
# Slackware build script for foolscap.
# Copyright 2010-2011 Marco Bonetti <sid77@slackware.it>
# Copyright 2012 Markus Reichelt, Aachen, DE
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@ -26,16 +27,14 @@
# Now maintained by Markus Reichelt <slackbuilds@mareichelt.de>, 0xCCEEF115
PRGNAM=foolscap
VERSION=${VERSION:-0.6.3}
VERSION=${VERSION:-0.6.4}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
arm*) ARCH=arm ;;
# Unless $ARCH is already set, use uname -m for all other archs:
*) ARCH=$( uname -m ) ;;
esac
fi
@ -45,14 +44,18 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
DOCS="LICENSE README"
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"
else
SLKCFLAGS="-O2"
LIBDIRSUFFIX=""
fi
set -e
@ -70,15 +73,15 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
python setup.py build || exit 1
python setup.py install --root=$PKG || exit 1
python setup.py install --root=$PKG
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/slack-desc > $PKG/usr/doc/$PRGNAM-$VERSION/slack-desc
cp -a \
ChangeLog NEWS LICENSE README doc/* \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install

View file

@ -1,8 +1,8 @@
PRGNAM="foolscap"
VERSION="0.6.3"
VERSION="0.6.4"
HOMEPAGE="http://foolscap.lothar.com/trac"
DOWNLOAD="http://foolscap.lothar.com/releases/foolscap-0.6.3.tar.gz"
MD5SUM="38782e3b64d3a0beea1ae03dd9ca137f"
DOWNLOAD="http://foolscap.lothar.com/releases/foolscap-0.6.4.tar.gz"
MD5SUM="0aedae62a0be50da4f89d80b5b30c8a2"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
MAINTAINER="Markus Reichelt"

View file

@ -3,9 +3,9 @@
# up the first '|' above the ':' following the base package name, and the '|'
# on the right side marks the last column you can put a character in. You must
# 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 ':' except on otherwise blank lines.
|-----handy-ruler----------------------------------------------------|
|-----handy-ruler------------------------------------------------------|
foolscap: foolscap (RPC protocol for Python+Twisted)
foolscap:
foolscap: Foolscap is an RPC protocol for Python+Twisted, providing a