mirror of
https://github.com/Ponce/slackbuilds
synced 2024-12-04 00:56:07 +01:00
libraries/decorator: Added to 12.1 repository
This commit is contained in:
parent
3ec5dbbd94
commit
ed6d73b04b
4 changed files with 81 additions and 0 deletions
9
libraries/decorator/README
Normal file
9
libraries/decorator/README
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
decorator (The decorator Python module)
|
||||||
|
|
||||||
|
The aim of the decorator module it to simplify the usage of decorators
|
||||||
|
for the average programmer, and to popularize decorators usage giving
|
||||||
|
examples of useful decorators, such as memoize, tracing,
|
||||||
|
redirecting_stdout, locked, etc.
|
||||||
|
|
||||||
|
NOTE: Building this packages requires setuptools to be installed (available
|
||||||
|
at SlackBuilds.org as pysetuptools).
|
45
libraries/decorator/decorator.SlackBuild
Normal file
45
libraries/decorator/decorator.SlackBuild
Normal file
|
@ -0,0 +1,45 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# Slackware build script for decorator
|
||||||
|
|
||||||
|
# Written by Mikko Varri (vmj@linuxbox.fi)
|
||||||
|
# Public domain
|
||||||
|
|
||||||
|
PRGNAM=decorator
|
||||||
|
VERSION=${VERSION:-2.3.1}
|
||||||
|
ARCH=noarch
|
||||||
|
BUILD=${BUILD:-1}
|
||||||
|
TAG=${TAG:-_SBo}
|
||||||
|
|
||||||
|
CWD=$(pwd)
|
||||||
|
TMP=${TMP:-/tmp/SBo}
|
||||||
|
PKG=$TMP/package-$PRGNAM
|
||||||
|
OUTPUT=${OUTPUT:-/tmp}
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
rm -rf $PKG
|
||||||
|
mkdir -p $TMP $PKG $OUTPUT
|
||||||
|
cd $TMP
|
||||||
|
rm -rf $PRGNAM-$VERSION
|
||||||
|
mkdir $PRGNAM-$VERSION
|
||||||
|
cd $PRGNAM-$VERSION
|
||||||
|
unzip $CWD/$PRGNAM-$VERSION.zip
|
||||||
|
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 install --root=$PKG
|
||||||
|
|
||||||
|
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||||
|
cp -a CHANGES.txt README.txt documentation.* $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.tgz
|
8
libraries/decorator/decorator.info
Normal file
8
libraries/decorator/decorator.info
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
PRGNAM="decorator"
|
||||||
|
VERSION="2.3.1"
|
||||||
|
HOMEPAGE="http://www.phyast.pitt.edu/~micheles/python/documentation.html"
|
||||||
|
DOWNLOAD="http://www.phyast.pitt.edu/~micheles/python/decorator-2.3.1.zip"
|
||||||
|
MD5SUM="40c2d7a566a5f5264ef8d2a88d9261e9"
|
||||||
|
MAINTAINER="Mikko Varri"
|
||||||
|
EMAIL="vmj@linuxbox.fi"
|
||||||
|
APPROVED="rworkman"
|
19
libraries/decorator/slack-desc
Normal file
19
libraries/decorator/slack-desc
Normal file
|
@ -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------------------------------------------------------|
|
||||||
|
decorator: decorator (The decorator Python module)
|
||||||
|
decorator:
|
||||||
|
decorator: The aim of the decorator module it to simplify the usage of
|
||||||
|
decorator: decorators for the average programmer, and to popularize decorators
|
||||||
|
decorator: usage giving examples of useful decorators, such as memoize, tracing,
|
||||||
|
decorator: redirecting_stdout, locked, etcetera.
|
||||||
|
decorator:
|
||||||
|
decorator: http://www.phyast.pitt.edu/~micheles/python/documentation.html
|
||||||
|
decorator:
|
||||||
|
decorator:
|
||||||
|
decorator:
|
Loading…
Reference in a new issue