diff options
author | Matt Smith <mcs@darkregion.net> | 2010-11-08 21:03:42 -0600 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2010-11-11 12:11:18 +0000 |
commit | c3322e6fb2fefb93fe560cb0409b9faa09d4b781 (patch) | |
tree | 49602ff3f84b3f55ef174432da8d23df46e78db3 /testing | |
parent | fa8452a1ae9c321963bd1ad2cef4f856fa3a625e (diff) | |
download | aports-c3322e6fb2fefb93fe560cb0409b9faa09d4b781.tar.bz2 aports-c3322e6fb2fefb93fe560cb0409b9faa09d4b781.tar.xz |
testing/urwid: new aport
Diffstat (limited to 'testing')
-rw-r--r-- | testing/urwid/APKBUILD | 52 | ||||
-rw-r--r-- | testing/urwid/tutorial_examples.tar.gz | bin | 0 -> 1526 bytes |
2 files changed, 52 insertions, 0 deletions
diff --git a/testing/urwid/APKBUILD b/testing/urwid/APKBUILD new file mode 100644 index 0000000000..c078cf8218 --- /dev/null +++ b/testing/urwid/APKBUILD @@ -0,0 +1,52 @@ +# Contributor: Matt Smith <mcs@darkregion.net> +# Maintainer: Matt Smith <mcs@darkregion.net> +pkgname=urwid +pkgver=0.9.9.1 +pkgrel=0 +pkgdesc="Urwid is a console user interface library for Python" +url="http://excess.org/urwid/" +license="LGPL" +depends="python" +makedepends="python-dev" +install= +subpackages="$pkgname-doc" +source="http://excess.org/$pkgname/$pkgname-$pkgver.tar.gz + tutorial_examples.tar.gz + " + +_builddir="$srcdir"/$pkgname-$pkgver + +prepare() { + cd "$_builddir" + # apply patches here +} + +build() { + return 0 +} + +package() { + cd "$_builddir" + python setup.py install --root "$pkgdir" +} + +doc() { + mkdir -p "$subpkgdir"/usr/share/doc/$pkgname + cd "$_builddir" + + # generate tutorial examples, and tar it up + # requires templayer to generate (how should subpackage deps be handled?) + # for now, just including the generated tutorial_examples.tar.gz + #python docgen_tutorial.py -s + #mkdir tutorial_examples + #mv example*.py tutorial_examples/ + #tar -czf tutorial_examples.tar.gz tutorial_examples/ + + # copy documentation and example tarball + install -Dm644 reference.html "$subpkgdir"/usr/share/doc/$pkgname/reference.html + install -Dm644 tutorial.html "$subpkgdir"/usr/share/doc/$pkgname/tutorial.html + install -Dm644 "$srcdir"/tutorial_examples.tar.gz "$subpkgdir"/usr/share/doc/$pkgname/tutorial_examples.tar.gz +} + +md5sums="4722cdf898f711dcae1121aa80920152 urwid-0.9.9.1.tar.gz +6bd01421e332cd40b53d81911d02bc5b tutorial_examples.tar.gz" diff --git a/testing/urwid/tutorial_examples.tar.gz b/testing/urwid/tutorial_examples.tar.gz Binary files differnew file mode 100644 index 0000000000..aa61029a09 --- /dev/null +++ b/testing/urwid/tutorial_examples.tar.gz |