diff options
author | Lionel Young <redtricycle@gmail.com> | 2010-12-19 00:59:30 -0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-12-20 22:44:03 -0600 |
commit | 3564bd44f41820a5ed600fedf2cb273547bfd050 (patch) | |
tree | c97fabf6e95249042661487b467d678757e660a0 /network | |
parent | a68aa4a82cdfd9cebceeefe9ccacd0ffc3ac7378 (diff) |
network/PyRSS2Gen: Added (python RSS feed generator)
Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
Diffstat (limited to 'network')
-rw-r--r-- | network/PyRSS2Gen/PyRSS2Gen.SlackBuild | 54 | ||||
-rw-r--r-- | network/PyRSS2Gen/PyRSS2Gen.info | 10 | ||||
-rw-r--r-- | network/PyRSS2Gen/README | 6 | ||||
-rw-r--r-- | network/PyRSS2Gen/slack-desc | 19 |
4 files changed, 89 insertions, 0 deletions
diff --git a/network/PyRSS2Gen/PyRSS2Gen.SlackBuild b/network/PyRSS2Gen/PyRSS2Gen.SlackBuild new file mode 100644 index 000000000000..09ddbe52593e --- /dev/null +++ b/network/PyRSS2Gen/PyRSS2Gen.SlackBuild @@ -0,0 +1,54 @@ +#!/bin/sh +# Generated by Alien's SlackBuild Toolkit: http://slackware.com/~alien/AST +# Copyright 2009-2010 Eric Hameleers, Eindhoven, Netherlands +# Slackware build script for PyRSS2Gen +# Written by Lionel Young <redtricycle@gmail.com> +# Based on http://slackbuilds.org/template.SlackBuild + +PRGNAM=PyRSS2Gen +VERSION=${VERSION:-1.0.0} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) export ARCH=i486 ;; + arm*) export ARCH=arm ;; + *) export ARCH=$( uname -m ) ;; + esac +fi + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz +cd $PRGNAM-$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 {} \; + +python setup.py build || exit 1 +python setup.py install --root=$PKG || exit 1 + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a \ + README LICENSE PKG-INFO \ + $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} diff --git a/network/PyRSS2Gen/PyRSS2Gen.info b/network/PyRSS2Gen/PyRSS2Gen.info new file mode 100644 index 000000000000..876a5f9c65d5 --- /dev/null +++ b/network/PyRSS2Gen/PyRSS2Gen.info @@ -0,0 +1,10 @@ +PRGNAM="PyRSS2Gen" +VERSION="1.0.0" +HOMEPAGE="http://www.dalkescientific.com/Python/PyRSS2Gen.html" +DOWNLOAD="http://www.dalkescientific.com/Python/PyRSS2Gen-1.0.0.tar.gz" +MD5SUM="b37ed0c9cfa4438a73dbbb0207f3aff6" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +MAINTAINER="Lionel Young" +EMAIL="redtricycle@gmail.com" +APPROVED="Niels Horn" diff --git a/network/PyRSS2Gen/README b/network/PyRSS2Gen/README new file mode 100644 index 000000000000..f5b22bb47d39 --- /dev/null +++ b/network/PyRSS2Gen/README @@ -0,0 +1,6 @@ +PyRSS2Gen is a Python module that makes it easy to generate valid RSS +feeds. You can use it to generate RSS feeds for web pages that don't +have them. + +There is also RSSLib which looks like it does the same thing in a slightly +different way. diff --git a/network/PyRSS2Gen/slack-desc b/network/PyRSS2Gen/slack-desc new file mode 100644 index 000000000000..cc4e270ba734 --- /dev/null +++ b/network/PyRSS2Gen/slack-desc @@ -0,0 +1,19 @@ +# 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------------------------------------------------------| +PyRSS2Gen: PyRSS2Gen (python RSS feed generator) +PyRSS2Gen: +PyRSS2Gen: PyRSS2Gen is a Python module that makes it easy to generate valid +PyRSS2Gen: RSS feeds. You can use it to generate RSS feeds for web pages that +PyRSS2Gen: don't have them. +PyRSS2Gen: +PyRSS2Gen: Home: http://www.dalkescientific.com/Python/PyRSS2Gen.html +PyRSS2Gen: +PyRSS2Gen: +PyRSS2Gen: +PyRSS2Gen: |