diff options
Diffstat (limited to 'libraries/cssutils')
-rw-r--r-- | libraries/cssutils/README | 2 | ||||
-rw-r--r-- | libraries/cssutils/cssutils.SlackBuild | 24 | ||||
-rw-r--r-- | libraries/cssutils/cssutils.info | 8 | ||||
-rw-r--r-- | libraries/cssutils/slack-desc | 6 |
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: |