summaryrefslogtreecommitdiff
path: root/libraries/cssutils
diff options
context:
space:
mode:
authorLarry Hajali <larryhaja[at]gmail[dot]com>2010-06-12 06:53:31 -0500
committerRobby Workman <rworkman@slackbuilds.org>2010-06-12 07:47:28 -0500
commit8164b9763fcfd5b4c7244ea1051928a03a1b2c5b (patch)
tree4d90be9ae458fa505aedf229ac5e27a46b9698f4 /libraries/cssutils
parent8920c3cbc3c85125309a617a08703efb1df47748 (diff)
downloadslackbuilds-8164b9763fcfd5b4c7244ea1051928a03a1b2c5b.tar.gz
libraries/cssutils: Updated for version 0.9.7b2.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'libraries/cssutils')
-rw-r--r--libraries/cssutils/README2
-rw-r--r--libraries/cssutils/cssutils.SlackBuild24
-rw-r--r--libraries/cssutils/cssutils.info8
-rw-r--r--libraries/cssutils/slack-desc6
4 files changed, 16 insertions, 24 deletions
diff --git a/libraries/cssutils/README b/libraries/cssutils/README
index 62ea934155..cef67b1371 100644
--- a/libraries/cssutils/README
+++ b/libraries/cssutils/README
@@ -1,3 +1,3 @@
A Python package to parse and build CSS Cascading Style Sheets.
-Requires pysetuptools.
+This requires pysetuptools.
diff --git a/libraries/cssutils/cssutils.SlackBuild b/libraries/cssutils/cssutils.SlackBuild
index 99c07970a2..6d9a28cf2a 100644
--- a/libraries/cssutils/cssutils.SlackBuild
+++ b/libraries/cssutils/cssutils.SlackBuild
@@ -3,10 +3,15 @@
# Written by Larry Hajali <larryhaja[at]gmail[dot]com>
PRGNAM=cssutils
-VERSION=${VERSION:-0.9.6}
+VERSION=0.9.7b2
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -17,11 +22,6 @@ if [ -z "$ARCH" ]; then
esac
fi
-CWD=$(pwd)
-TMP=${TMP:-/tmp/SBo}
-PKG=$TMP/package-$PRGNAM
-OUTPUT=${OUTPUT:-/tmp}
-
set -e
rm -rf $PKG
@@ -39,25 +39,17 @@ find . \
# Change files from DOS to unix.
for FILE in $(find . -type f -exec grep -Pl '\r\n' {} \;); do
- tr -d '\r' < $FILE > ${FILE}.tmp
- cat ${FILE}.tmp > $FILE
- rm -f ${FILE}.tmp
+ sed -i 's/\r//g' $FILE
done
-sed -i '/use_setuptools/d' setup.py
-
python setup.py install --root=$PKG
find $PKG | xargs 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 \
- *.txt COPYING* \
- $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a *.txt COPYING* $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
-# Remove unneeded tests directory.
-rm -rf $PKG/usr/lib*/python*/site-packages/tests
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
diff --git a/libraries/cssutils/cssutils.info b/libraries/cssutils/cssutils.info
index 687ef8854c..0d2af329af 100644
--- a/libraries/cssutils/cssutils.info
+++ b/libraries/cssutils/cssutils.info
@@ -1,10 +1,10 @@
PRGNAM="cssutils"
-VERSION="0.9.6"
+VERSION="0.9.7b2"
HOMEPAGE="http://code.google.com/p/cssutils/"
-DOWNLOAD="http://cssutils.googlecode.com/files/cssutils-0.9.6.zip"
-MD5SUM="93573ed91ae43c7c8620886111d65a2a"
+DOWNLOAD="http://cssutils.googlecode.com/files/cssutils-0.9.7b2.zip"
+MD5SUM="bc9ee9707a60ff65fee558955d9db09f"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
MAINTAINER="Larry Hajali"
EMAIL="larryhaja[at]gmail[dot]com"
-APPROVED="Erik Hanson"
+APPROVED="rworkman"
diff --git a/libraries/cssutils/slack-desc b/libraries/cssutils/slack-desc
index 0c54a40c6f..9222023cd6 100644
--- a/libraries/cssutils/slack-desc
+++ b/libraries/cssutils/slack-desc
@@ -6,10 +6,10 @@
# leave one space after the ':'.
|-----handy-ruler------------------------------------------------------|
-cssutils: cssutils
-cssutils:
+cssutils: cssutils (CSS parser and builder)
+cssutils:
cssutils: A Python package to parse and build CSS Cascading Style Sheets.
-cssutils:
+cssutils:
cssutils: Homepage: http://code.google.com/p/cssutils/
cssutils:
cssutils: