From 3564bd44f41820a5ed600fedf2cb273547bfd050 Mon Sep 17 00:00:00 2001 From: Lionel Young Date: Sun, 19 Dec 2010 00:59:30 -0200 Subject: network/PyRSS2Gen: Added (python RSS feed generator) Signed-off-by: Niels Horn --- network/PyRSS2Gen/PyRSS2Gen.SlackBuild | 54 ++++++++++++++++++++++++++++++++++ network/PyRSS2Gen/PyRSS2Gen.info | 10 +++++++ network/PyRSS2Gen/README | 6 ++++ network/PyRSS2Gen/slack-desc | 19 ++++++++++++ 4 files changed, 89 insertions(+) create mode 100644 network/PyRSS2Gen/PyRSS2Gen.SlackBuild create mode 100644 network/PyRSS2Gen/PyRSS2Gen.info create mode 100644 network/PyRSS2Gen/README create mode 100644 network/PyRSS2Gen/slack-desc diff --git a/network/PyRSS2Gen/PyRSS2Gen.SlackBuild b/network/PyRSS2Gen/PyRSS2Gen.SlackBuild new file mode 100644 index 0000000000..09ddbe5259 --- /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 +# 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 0000000000..876a5f9c65 --- /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 0000000000..f5b22bb47d --- /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 0000000000..cc4e270ba7 --- /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: -- cgit v1.2.3