Permalink
Browse files

genshi: imported from SBo

  • Loading branch information...
1 parent 46f81f4 commit 6f425143abd8da3bd08c3964cb4acd372f516212 @jgeboski committed Oct 7, 2012
Showing with 107 additions and 0 deletions.
  1. +3 −0 libraries/genshi/README
  2. +74 −0 libraries/genshi/genshi.SlackBuild
  3. +10 −0 libraries/genshi/genshi.info
  4. +20 −0 libraries/genshi/slack-desc
View
3 libraries/genshi/README
@@ -0,0 +1,3 @@
+Genshi is a Python library that provides an integrated set of
+components for parsing, generating, and processing HTML, XML
+or other textual content for output generation on the web
View
74 libraries/genshi/genshi.SlackBuild
@@ -0,0 +1,74 @@
+#!/bin/sh
+
+# Slackware build script for
+
+# Written by Eugene Suter <easuter at gmail.com>
+
+PRGNAM="genshi"
+SRCNAM="Genshi"
+VERSION=${VERSION:-0.6}
+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
+
+CWD=$(pwd)
+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"
+else
+ SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
+fi
+
+set -e # Exit on most errors
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$SRCNAM-$VERSION.tar.gz
+cd $SRCNAM-$VERSION
+chown -R root:root .
+find . \
+ \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
+ -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
+ -exec chmod 644 {} \;
+
+# Using the "install" option of the python setup script will build and
+# install the files directly into $PKG
+python setup.py install --root=$PKG
+
+# Documentation
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+mv doc/* $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a COPYING ChangeLog $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
+# Copy the slack-desc
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+
+# Make the package
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
+
View
10 libraries/genshi/genshi.info
@@ -0,0 +1,10 @@
+PRGNAM="genshi"
+VERSION="0.6"
+HOMEPAGE="http://genshi.edgewall.org/"
+DOWNLOAD="http://ftp.edgewall.com/pub/genshi/Genshi-0.6.tar.gz"
+MD5SUM="604e8b23b4697655d36a69c2d8ef7187"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+REQUIRES="pysetuptools"
+MAINTAINER="Eugene Suter"
+EMAIL="easuter@gmail.com"
View
20 libraries/genshi/slack-desc
@@ -0,0 +1,20 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description. Line
+# 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 ':'.
+
+ |-----handy-ruler------------------------------------------------------|
+genshi: Genshi (Python toolkit for generation of output for the web)
+genshi:
+genshi: Genshi is a Python library that provides an integrated set of
+genshi: components for parsing, generating, and processing HTML, XML
+genshi: or other textual content for output generation on the web
+genshi:
+genshi: Homepage: http://genshi.edgewall.org/
+genshi:
+genshi:
+genshi:
+genshi:
+

0 comments on commit 6f42514

Please sign in to comment.