aboutsummaryrefslogtreecommitdiffstats
path: root/main/py-docutils/APKBUILD
diff options
context:
space:
mode:
authorMatt Smith <msmith@alpinelinux.org>2011-03-23 15:49:48 -0500
committerMatt Smith <msmith@alpinelinux.org>2011-03-23 15:49:48 -0500
commit628d8b09e0cb616c53caa046ad45b240ece5d575 (patch)
treebcf83ea19ae86fc14c12b36d6f54991a74811cad /main/py-docutils/APKBUILD
parent4717c94779efd903166d59a1bfb1b37ec395d794 (diff)
downloadaports-628d8b09e0cb616c53caa046ad45b240ece5d575.tar.bz2
aports-628d8b09e0cb616c53caa046ad45b240ece5d575.tar.xz
main/py-docutils: moved from testing
Diffstat (limited to 'main/py-docutils/APKBUILD')
-rw-r--r--main/py-docutils/APKBUILD55
1 files changed, 55 insertions, 0 deletions
diff --git a/main/py-docutils/APKBUILD b/main/py-docutils/APKBUILD
new file mode 100644
index 0000000000..a04a62aff3
--- /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"