summaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorWilliam Pitcock <nenolod@dereferenced.org>2011-03-23 19:55:25 -0500
committerWilliam Pitcock <nenolod@dereferenced.org>2011-03-23 19:55:25 -0500
commit3cdc1241a4baf9638ac9eb92d1f709e3884e4cbb (patch)
treee17ecb230fe3434db8d4b8a40ab7891fe3118720 /main
parent105fe18e10640fecc8385711273fcc18a06dd726 (diff)
parente629cd6b6d86064ce39bcc8f04964bd83c39e6ac (diff)
downloadaports-3cdc1241a4baf9638ac9eb92d1f709e3884e4cbb.tar.bz2
aports-3cdc1241a4baf9638ac9eb92d1f709e3884e4cbb.tar.xz
Merge git://git.alpinelinux.org/msmith/aports
Diffstat (limited to 'main')
-rw-r--r--main/py-docutils/APKBUILD55
-rw-r--r--main/py-jinja2/APKBUILD66
-rw-r--r--main/py-pygments/APKBUILD60
-rw-r--r--main/py-roman/APKBUILD34
-rw-r--r--main/py-sphinx/APKBUILD56
-rw-r--r--main/py-templayer/APKBUILD44
6 files changed, 315 insertions, 0 deletions
diff --git a/main/py-docutils/APKBUILD b/main/py-docutils/APKBUILD
new file mode 100644
index 000000000..a04a62aff
--- /dev/null
+++ b/main/py-docutils/APKBUILD
@@ -0,0 +1,55 @@
+# Contributor: Matt Smith <mcs@darkregion.net>
+# Maintainer: Matt Smith <mcs@darkregion.net>
+pkgname=py-docutils
+_pkgname=docutils
+pkgver=0.7
+pkgrel=3
+pkgdesc="Documentation Utilities for Python"
+url="http://docutils.sourceforge.net/"
+arch="noarch"
+license="PublicDomain"
+depends="python py-imaging py-roman"
+makedepends="python-dev py-setuptools"
+install=
+subpackages="$pkgname-doc"
+source="http://downloads.sourceforge.net/$_pkgname/$_pkgname-$pkgver.tar.gz"
+
+_builddir="$srcdir"/$_pkgname-$pkgver
+
+prepare() {
+ cd "$_builddir"
+ # apply patches here
+}
+
+build() {
+ cd "$_builddir"
+ python setup.py build || return 1
+}
+
+package() {
+ cd "$_builddir"
+ python setup.py install --root "$pkgdir" || return 1
+}
+
+doc() {
+ cd "$_builddir"
+
+ for _docdir in docs licenses; do
+ mkdir -p "$subpkgdir"/usr/share/doc/$pkgname/$_docdir \
+ || return 1
+ cp -R ./$_docdir/* "$subpkgdir"/usr/share/doc/$pkgname/$_docdir/ \
+ || return 1
+ chmod -R 644 "$subpkgdir"/usr/share/doc/$pkgname/$_docdir/ \
+ || return 1
+ done
+
+ for _doc in BUGS.txt COPYING.txt FAQ.txt HISTORY.txt README.txt RELEASE-NOTES.txt THANKS.txt; do
+ install -m644 -D $_doc "$subpkgdir"/usr/share/doc/$pkgname/ \
+ || return 1
+ done
+
+ # Fix subdir perms
+ find "$subpkgdir"/usr/share/doc/$pkgname/ -type d -exec chmod 755 '{}' \;
+}
+
+md5sums="9aec716baf15d06b5aa57cf8d5591c15 docutils-0.7.tar.gz"
diff --git a/main/py-jinja2/APKBUILD b/main/py-jinja2/APKBUILD
new file mode 100644
index 000000000..5eaf70cf0
--- /dev/null
+++ b/main/py-jinja2/APKBUILD
@@ -0,0 +1,66 @@
+# Contributor: Matt Smith <mcs@darkregion.net>
+# Maintainer: Matt Smith <mcs@darkregion.net>
+pkgname=py-jinja2
+_pkgname=Jinja2
+pkgver=2.5.5
+pkgrel=2
+pkgdesc="A small but fast and easy to use stand-alone template engine written in pure python."
+url="http://jinja.pocoo.org/"
+arch="noarch"
+license="BSD"
+depends="python"
+makedepends="python-dev py-setuptools"
+install=
+subpackages="$pkgname-doc"
+source="http://pypi.python.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
+
+_builddir="$srcdir"/$_pkgname-$pkgver
+
+prepare() {
+ cd "$_builddir"
+ # apply patches here
+}
+
+build() {
+ cd "$_builddir"
+ python setup.py build || return 1
+}
+
+package() {
+ cd "$_builddir"
+ python setup.py install --root "$pkgdir" || return 1
+}
+
+doc() {
+ cd "$_builddir"
+
+ mkdir -p "$subpkgdir"/usr/share/doc/$pkgname || return 1
+ for _doc in AUTHORS CHANGES LICENSE; do
+ install -Dm644 $_doc "$subpkgdir"/usr/share/doc/$pkgname/$_doc \
+ || return 1
+ done
+
+ # Note: The documentation in the docs directory needs to be generated
+ # by py-sphinx, however, this package (py-jinja2) is a dependency of
+ # Sphinx itself!
+ mkdir -p "$subpkgdir"/usr/share/doc/$pkgname/docs || return 1
+ cp -R ./docs/* "$subpkgdir"/usr/share/doc/$pkgname/docs/ || return 1
+ chmod -R 644 "$subpkgdir"/usr/share/doc/$pkgname/docs/ || return 1
+
+ mkdir -p "$subpkgdir"/usr/share/$pkgname || return 1
+ for _dir in artwork examples ext; do
+ mkdir -p "$subpkgdir"/usr/share/$pkgname/$_dir/ || return 1
+ cp -R ./$_dir/* "$subpkgdir"/usr/share/$pkgname/$_dir/ \
+ || return 1
+ chmod -R 644 "$subpkgdir"/usr/share/$pkgname/$_dir/ \
+ || return 1
+ done
+
+ # Fix subdir perms
+ find "$subpkgdir"/usr/share/doc/$pkgname/ -type d \
+ -exec chmod 755 '{}' \; || return 1
+ find "$subpkgdir"/usr/share/$pkgname/ -type d \
+ -exec chmod 755 '{}' \; || return 1
+}
+
+md5sums="83b20c1eeb31f49d8e6392efae91b7d5 Jinja2-2.5.5.tar.gz"
diff --git a/main/py-pygments/APKBUILD b/main/py-pygments/APKBUILD
new file mode 100644
index 000000000..00d586735
--- /dev/null
+++ b/main/py-pygments/APKBUILD
@@ -0,0 +1,60 @@
+# Contributor: Matt Smith <mcs@darkregion.net>
+# Maintainer: Matt Smith <mcs@darkregion.net>
+pkgname=py-pygments
+_pkgname=Pygments
+pkgver=1.4
+pkgrel=1
+pkgdesc="Pygments is a syntax highlighting package written in Python."
+url="http://pygments.org/"
+arch="noarch"
+license="BSD"
+depends="python"
+makedepends="python-dev py-setuptools"
+install=
+subpackages="$pkgname-doc"
+source="http://pypi.python.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
+
+_builddir="$srcdir"/$_pkgname-$pkgver
+
+prepare() {
+ cd "$_builddir"
+ # apply patches here
+}
+
+build() {
+ cd "$_builddir"
+ python setup.py build || return 1
+}
+
+package() {
+ cd "$_builddir"
+ python setup.py install --root "$pkgdir" || return 1
+}
+
+doc() {
+ cd "$_builddir"
+
+ mkdir -p "$subpkgdir"/usr/share/doc/$pkgname || return 1
+ for _doc in AUTHORS CHANGES LICENSE TODO; do
+ install -Dm644 $_doc "$subpkgdir"/usr/share/doc/$pkgname/$_doc \
+ || return 1
+ done
+
+ install -Dm644 docs/pygmentize.1 \
+ "$subpkgdir"/usr/share/man/man1/pygmentize.1 || return 1
+ install -Dm644 docs/generate.py \
+ "$subpkgdir"/usr/share/doc/$pkgname/generate.py || return 1
+ for _dir in build src; do
+ mkdir -p "$subpkgdir"/usr/share/doc/$pkgname/$_dir || return 1
+ cp -R ./docs/$_dir/* \
+ "$subpkgdir"/usr/share/doc/$pkgname/$_dir/ || return 1
+ chmod -R 644 "$subpkgdir"/usr/share/doc/$pkgname/$_dir/ \
+ || return 1
+ done
+
+ # Fix subdir perms
+ find "$subpkgdir"/usr/share/doc/$pkgname/ -type d \
+ -exec chmod 755 '{}' \; || return 1
+}
+
+md5sums="d77ac8c93a7fb27545f2522abe9cc462 Pygments-1.4.tar.gz"
diff --git a/main/py-roman/APKBUILD b/main/py-roman/APKBUILD
new file mode 100644
index 000000000..2e1cb18bb
--- /dev/null
+++ b/main/py-roman/APKBUILD
@@ -0,0 +1,34 @@
+# Contributor: Matt Smith <mcs@darkregion.net>
+# Maintainer: Matt Smith <mcs@darkregion.net>
+pkgname=py-roman
+_pkgname=roman
+pkgver=1.4.0
+pkgrel=2
+pkgdesc="Integer to Roman numerals converter"
+url="http://pypi.python.org/pypi/roman"
+arch="noarch"
+license="Python2.1.1"
+depends="python"
+makedepends="python-dev py-setuptools"
+install=
+subpackages=
+source="http://pypi.python.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
+
+_builddir="$srcdir"/$_pkgname-$pkgver
+
+prepare() {
+ cd "$_builddir"
+ # apply patches here
+}
+
+build() {
+ cd "$_builddir"
+ python setup.py build || return 1
+}
+
+package() {
+ cd "$_builddir"
+ python setup.py install --root "$pkgdir" || return 1
+}
+
+md5sums="4f8832ed4108174b159c2afb4bd1d1dd roman-1.4.0.tar.gz"
diff --git a/main/py-sphinx/APKBUILD b/main/py-sphinx/APKBUILD
new file mode 100644
index 000000000..c8c1bb534
--- /dev/null
+++ b/main/py-sphinx/APKBUILD
@@ -0,0 +1,56 @@
+# Contributor: Matt Smith <mcs@darkregion.net>
+# Maintainer: Matt Smith <mcs@darkregion.net>
+pkgname=py-sphinx
+_pkgname=Sphinx
+pkgver=1.0.7
+pkgrel=0
+pkgdesc="Python Documentation Generator"
+url="http://sphinx.pocoo.org/"
+arch="noarch"
+license="BSD"
+depends="python py-docutils py-jinja2 py-pygments"
+makedepends="python-dev py-setuptools"
+install=
+subpackages="$pkgname-doc"
+source="http://pypi.python.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
+
+_builddir="$srcdir"/$_pkgname-$pkgver
+
+prepare() {
+ cd "$_builddir"
+ # apply patches here
+}
+
+build() {
+ cd "$_builddir"
+ python setup.py build || return 1
+}
+
+package() {
+ cd "$_builddir"
+ python setup.py install --root "$pkgdir" || return 1
+}
+
+doc() {
+ cd "$_builddir"
+
+ mkdir -p "$subpkgdir"/usr/share/doc/$pkgname || return 1
+ for _doc in AUTHORS CHANGES EXAMPLES LICENSE README TODO; do
+ install -Dm644 $_doc "$subpkgdir"/usr/share/doc/$pkgname/ \
+ || return 1
+ done
+
+ # Note: Documentation in the 'doc' directory (below), needs to be built
+ # with sphinx-build once sphinx is installed (see README for details).
+ #
+ # Leaving as-is; will be up to the individual user that's interested.
+ mkdir -p "$subpkgdir"/usr/share/doc/$pkgname/doc/ || return 1
+ cp -R ./doc/* "$subpkgdir"/usr/share/doc/$pkgname/doc/ || return 1
+ chmod -R 644 "$subpkgdir"/usr/share/doc/$pkgname/doc/ || return 1
+
+ # Fix subdir perms
+ find "$subpkgdir"/usr/share/doc/$pkgname/ -type d \
+ -exec chmod 755 '{}' \; || return 1
+}
+
+md5sums="42c722d48e52d4888193965dd473adb5 Sphinx-1.0.7.tar.gz"
diff --git a/main/py-templayer/APKBUILD b/main/py-templayer/APKBUILD
new file mode 100644
index 000000000..e12d05c47
--- /dev/null
+++ b/main/py-templayer/APKBUILD
@@ -0,0 +1,44 @@
+# Contributor: Matt Smith <mcs@darkregion.net>
+# Maintainer: Matt Smith <mcs@darkregion.net>
+pkgname=py-templayer
+_pkgname=templayer
+pkgver=1.5.1
+pkgrel=2
+pkgdesc="Templayer is a layered template library for Python and Django"
+url="http://excess.org/templayer/"
+arch="noarch"
+license="LGPL"
+depends="python"
+makedepends="python-dev py-setuptools"
+install=
+subpackages="$pkgname-doc"
+source="http://excess.org/$_pkgname/$_pkgname-$pkgver.tar.gz"
+
+_builddir="$srcdir"/$_pkgname-$pkgver
+
+prepare() {
+ cd "$_builddir"
+ # apply patches here
+}
+
+build() {
+ cd "$_builddir"
+ python setup.py build || return 1
+}
+
+package() {
+ cd "$_builddir"
+ python setup.py install --root "$pkgdir" || return 1
+}
+
+doc() {
+ cd "$_builddir"
+
+ mkdir -p "$subpkgdir"/usr/share/doc/$pkgname || return 1
+ for _doc in reference.html tutorial.html tutorial_examples.tar.gz; do
+ install -Dm644 ./docs/$_doc \
+ "$subpkgdir"/usr/share/doc/$pkgname/$_doc || return 1
+ done
+}
+
+md5sums="9d1a3aa0cece34a2492792278aad406d templayer-1.5.1.tar.gz"