Subject: [alpine-devel] [PATCH] testing/urwid: new aport

From: Matt Smith <[email-masked]>
Date: Mon, 8 Nov 2010 21:03:42 -0600

---
 testing/urwid/APKBUILD                 |   52 ++++++++++++++++++++++++++++++++
 testing/urwid/tutorial_examples.tar.gz |  Bin 0 -> 1526 bytes
 2 files changed, 52 insertions(+), 0 deletions(-)
 create mode 100644 testing/urwid/APKBUILD
 create mode 100644 testing/urwid/tutorial_examples.tar.gz

diff --git a/testing/urwid/APKBUILD b/testing/urwid/APKBUILD
new file mode 100644
index 0000000..c078cf8
--- /dev/null
+++ b/testing/urwid/APKBUILD
@@ -0,0 +1,52 @@
+# Contributor: Matt Smith <[email-masked]>
+# Maintainer: Matt Smith <[email-masked]>
+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
new file mode 100644
index 0000000000000000000000000000000000000000..aa61029a09526b584c23e0106170bf3f831b42c5
GIT binary patch
literal 1526
zcmV<S1qu2eiwFQ*o7YSN1MOOEZ`(Ey&S(D$R{dZJ@f^RW2oMw<wqXO>qC*SxLuUxI
zMcZ5$QYEQ6{`Wglv|cPZ&DvCO3K4Pi!n@<~sORCGY@KK!DP|$L!?!Ub>f-Ft+W^|-
zbZU>#4v+SHIGoI;m&56FJUJT-$K&zf3{B4(Xo=ETB6KE&(D%uGt^bKOU0Hv3GVG80
z@$S*qe>RyMUH{9=*}?ix;q(j*+V%h8?fJ8dM9GT<<rnczZv^jj=xr>dMv2_gsMCot
zBU%%5jXre{G{3vRoD<pYq3(j=<&8OEbiL7NE%DA=K}2~Z65UI9L?ok}bc3E#R$3B#
zQ&Ntwyg`ygMb%tkv91a)SYk}hI~{$e!87Y>{{y+xe!)Et{Ye-T=%bJ<LSE2A82sed
z-6i1~B!bQ@j)$50E3M@l9Q$C>I%53{IxEUpCi4ee5a}B|t39e{8*$_B8dN(GSs`*q
zbtriF*{3{CbZ}+oMOVmP!he|KXEU?EyROePiK!ya^zUHd4W|6H5U~$d862~5vkv1;
z54qLqp@eTBl8i*59p^f8Be42?nQ*Xm5B|sfVMF*I&L&m-&t@(DPYwTmcSCTLLVvrV
zn&imL;3~-%f*D$gWumIUUG6YHfcd<$6aYt_<M=%_&);jR^heBY0B$MqlySE0p|^s=
zgI*pnfTKiP1FNEzr3UZAhAISq7-_gh0CCFKNN=z<cUPE7wnI$twdbajD*r~mP?)vv
z{ZhW48hyVp!2(z6I$v?2H$?s)dmoKEOOXI&EeOIZU@CBts+V=bA2tLL9`&JbJ_lq&
z%ogG<i=>I+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