diff options
author | Matt Smith <mcs@darkregion.net> | 2010-12-14 23:26:56 -0600 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2010-12-16 10:30:30 +0000 |
commit | 3cf6576605e60c17e0a03ac031d89ca2115922ee (patch) | |
tree | 772e161929f3a5c869416eda4d8fec9d3f87cf5c | |
parent | 439d075504ad53357d637e3c9d1811865e003bf5 (diff) | |
download | alpine_aports-3cf6576605e60c17e0a03ac031d89ca2115922ee.tar.bz2 alpine_aports-3cf6576605e60c17e0a03ac031d89ca2115922ee.tar.xz alpine_aports-3cf6576605e60c17e0a03ac031d89ca2115922ee.zip |
testing/py-docutils: new aport
-rw-r--r-- | testing/py-docutils/APKBUILD | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/testing/py-docutils/APKBUILD b/testing/py-docutils/APKBUILD new file mode 100644 index 0000000000..c9fcc9b777 --- /dev/null +++ b/testing/py-docutils/APKBUILD | |||
@@ -0,0 +1,51 @@ | |||
1 | # Contributor: Matt Smith <mcs@darkregion.net> | ||
2 | # Maintainer: Matt Smith <mcs@darkregion.net> | ||
3 | pkgname=py-docutils | ||
4 | _pkgname=docutils | ||
5 | pkgver=0.7 | ||
6 | pkgrel=0 | ||
7 | pkgdesc="Documentation Utilities for Python" | ||
8 | url="http://docutils.sourceforge.net/" | ||
9 | arch="x86 x86_64" | ||
10 | license="PublicDomain" | ||
11 | depends="python py-imaging py-roman" | ||
12 | makedepends="python-dev" | ||
13 | install= | ||
14 | subpackages="$pkgname-doc" | ||
15 | source="http://downloads.sourceforge.net/$_pkgname/$_pkgname-$pkgver.tar.gz" | ||
16 | |||
17 | _builddir="$srcdir"/$_pkgname-$pkgver | ||
18 | |||
19 | prepare() { | ||
20 | cd "$_builddir" | ||
21 | # apply patches here | ||
22 | } | ||
23 | |||
24 | build() { | ||
25 | cd "$_builddir" | ||
26 | python setup.py build || return 1 | ||
27 | } | ||
28 | |||
29 | package() { | ||
30 | cd "$_builddir" | ||
31 | python setup.py install --root "$pkgdir" | ||
32 | } | ||
33 | |||
34 | doc() { | ||
35 | cd "$_builddir" | ||
36 | |||
37 | for docdir in docs licenses; do | ||
38 | mkdir -p "$subpkgdir"/usr/share/doc/$pkgname/$docdir | ||
39 | cp -R ./$docdir/* "$subpkgdir"/usr/share/doc/$pkgname/$docdir/ | ||
40 | chmod -R 644 "$subpkgdir"/usr/share/doc/$pkgname/$docdir/ | ||
41 | done | ||
42 | |||
43 | for doc in BUGS.txt COPYING.txt FAQ.txt HISTORY.txt README.txt RELEASE-NOTES.txt THANKS.txt; do | ||
44 | install -m644 -D $doc "$subpkgdir"/usr/share/doc/$pkgname/ | ||
45 | done | ||
46 | |||
47 | # Fix subdir perms | ||
48 | find "$subpkgdir"/usr/share/doc/$pkgname/ -type d -exec chmod 755 '{}' \; | ||
49 | } | ||
50 | |||
51 | md5sums="9aec716baf15d06b5aa57cf8d5591c15 docutils-0.7.tar.gz" | ||