libraries/pyquery: Added (A jquery-like library for python)

This commit is contained in:
Šime Ramov 2010-04-19 18:51:14 -04:00 committed by David Somero
parent 8c1b1e7146
commit 50cf5d8ac6
4 changed files with 84 additions and 0 deletions

12
libraries/pyquery/README Normal file
View file

@ -0,0 +1,12 @@
pyquery (A jquery-like library for python)
pyquery allows you to make jquery queries on xml documents. The API
is as much as possible the similar to jquery. pyquery uses lxml for
fast xml and html manipulation.
It can be used for many purposes, one idea that I might try in the
future is to use it for templating with pure http templates that you
modify using pyquery. I can also be used for web scrapping or for
theming applications.
This requires lxml.

View file

@ -0,0 +1,43 @@
#!/bin/sh
# Slackware build script for pyquery
# Written by Šime Ramov <s@ramov.com>
PRGNAM=pyquery
VERSION=${VERSION:-0.5}
ARCH=${ARCH:-i486}
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
tar xzf $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
python setup.py install --root=$PKG
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a pyquery/README.txt $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}

View file

@ -0,0 +1,10 @@
PRGNAM="pyquery"
VERSION="0.5"
HOMEPAGE="http://www.bitbucket.org/olauzanne/pyquery/"
DOWNLOAD="http://pypi.python.org/packages/source/p/pyquery/pyquery-0.5.tar.gz"
MD5SUM="9f3c6145fd4ebf4a74d328804142dc5e"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
MAINTAINER="Šime Ramov"
EMAIL="s@ramov.com"
APPROVED="dsomero"

View 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------------------------------------------------------|
pyquery: pyquery (A jquery-like library for python)
pyquery:
pyquery: pyquery allows you to make jquery queries on xml documents. The API
pyquery: is as much as possible the similar to jquery. pyquery uses lxml for
pyquery: fast xml and html manipulation.
pyquery:
pyquery: It can be used for many purposes, one idea that I might try in the
pyquery: future is to use it for templating with pure http templates that you
pyquery: modify using pyquery. I can also be used for web scrapping or for
pyquery: theming applications.
pyquery: