diff options
author | Robby Workman <rworkman@slackbuilds.org> | 2011-03-16 01:13:49 -0500 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2011-03-20 12:33:01 -0500 |
commit | 7a1b4848a3d34a263544fadf08178c91c12fbad0 (patch) | |
tree | 8987d0fc908e371dfa87445425f59c7514075b37 /python/pynzb | |
parent | 987d45e99a299c3b24418b2976e8ec9d5f3bf404 (diff) |
python/*: Moved a lot of Python stuff here
The criteria for whether something "belongs" in Development or
Libraries or Python or ... is admittedly arbitrary. As a general
rule, if it could be either Libraries or Python, it's Python.
Otherwise, pick one and we'll go from there...
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'python/pynzb')
-rw-r--r-- | python/pynzb/README | 12 | ||||
-rw-r--r-- | python/pynzb/pynzb.SlackBuild | 54 | ||||
-rw-r--r-- | python/pynzb/pynzb.info | 10 | ||||
-rw-r--r-- | python/pynzb/slack-desc | 19 |
4 files changed, 95 insertions, 0 deletions
diff --git a/python/pynzb/README b/python/pynzb/README new file mode 100644 index 0000000000000..5dde33e53d7a5 --- /dev/null +++ b/python/pynzb/README @@ -0,0 +1,12 @@ +NZB is an XML-based file format for retrieving posts from NNTP (Usenet) +servers. Since NZB is XML-based, it's relatively easy to build one-off +parsers to parse NZB files. This project is an attempt to consolidate +those many one-off NZB parsers into one simple interface. + +This package includes three implementations: one based on expat, another +based on ElementTree, and a final implementation based on lxml. The order +in which they were listed is in order of compatibility. The expat version +should work on all versions of Python > 2.0, the lxml one will work on +all versions > 2.5, and lxml will only work if you have lxml installed. + +This requires pysetuptools. diff --git a/python/pynzb/pynzb.SlackBuild b/python/pynzb/pynzb.SlackBuild new file mode 100644 index 0000000000000..32038b44416e1 --- /dev/null +++ b/python/pynzb/pynzb.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 pynzb +# Written by Lionel Young <redtricycle@gmail.com> +# Based on http://slackbuilds.org/template.SlackBuild + +PRGNAM=pynzb +VERSION=${VERSION:-0.1.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 \ + 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/python/pynzb/pynzb.info b/python/pynzb/pynzb.info new file mode 100644 index 0000000000000..62ea9c83bcb47 --- /dev/null +++ b/python/pynzb/pynzb.info @@ -0,0 +1,10 @@ +PRGNAM="pynzb" +VERSION="0.1.0" +HOMEPAGE="https://github.com/ericflo/pynzb" +DOWNLOAD="http://pypi.python.org/packages/source/p/pynzb/pynzb-0.1.0.tar.gz" +MD5SUM="63c74a36348ac28aa99732dcb8be8c59" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +MAINTAINER="Lionel Young" +EMAIL="redtricycle@gmail.com" +APPROVED="Niels Horn" diff --git a/python/pynzb/slack-desc b/python/pynzb/slack-desc new file mode 100644 index 0000000000000..78873d62df040 --- /dev/null +++ b/python/pynzb/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------------------------------------------------------| +pynzb: pynzb (NZB file format parser) +pynzb: +pynzb: NZB is an XML-based file format for retrieving posts from NNTP +pynzb: (Usenet) servers. Since NZB is XML-based, it's relatively +pynzb: easy to build one-off parsers to parse NZB files. This project is +pynzb: an attempt to consolidate those many one-off NZB parsers into one +pynzb: simple interface. +pynzb: +pynzb: Home: https://github.com/ericflo/pynzb +pynzb: +pynzb: |