aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py3-empy
diff options
context:
space:
mode:
authorRuss Webber <russ@rw.id.au>2019-05-07 12:38:35 +1000
committerTBK <tbk@jjtc.eu>2019-05-26 06:51:01 +0200
commitea92fe3d7c5eba5f66f6d63a85f7454a31c89c56 (patch)
tree756d42940fa1c510c739f65edb3cafff4ffcb31e /testing/py3-empy
parent1ec9ef991598dd19d52b0e96bf02fc26734db9c3 (diff)
downloadaports-ea92fe3d7c5eba5f66f6d63a85f7454a31c89c56.tar.bz2
aports-ea92fe3d7c5eba5f66f6d63a85f7454a31c89c56.tar.xz
testing/py3-empy: new aport
http://www.alcyone.com/software/empy/ A powerful and robust templating system for Python. Closes: GH-7635
Diffstat (limited to 'testing/py3-empy')
-rw-r--r--testing/py3-empy/10-fix-test-case.patch8
-rw-r--r--testing/py3-empy/20-fix-setuppy.patch11
-rw-r--r--testing/py3-empy/APKBUILD31
3 files changed, 50 insertions, 0 deletions
diff --git a/testing/py3-empy/10-fix-test-case.patch b/testing/py3-empy/10-fix-test-case.patch
new file mode 100644
index 0000000000..c4b503c0e0
--- /dev/null
+++ b/testing/py3-empy/10-fix-test-case.patch
@@ -0,0 +1,8 @@
+--- src/test.sh.orig
++++ src/test.sh
+@@ -26,4 +26,5 @@
+ echo "EmPy checks out." 1>&2
+ else
+ echo "EmPy does not check out! Please mail output to author." 1>&2
++ exit 1
+ fi
diff --git a/testing/py3-empy/20-fix-setuppy.patch b/testing/py3-empy/20-fix-setuppy.patch
new file mode 100644
index 0000000000..76883bd763
--- /dev/null
+++ b/testing/py3-empy/20-fix-setuppy.patch
@@ -0,0 +1,11 @@
+--- src/setup.py.orig 2019-02-27 08:48:47.000000000 +1100
++++ src/setup.py 2019-05-26 14:15:57.444497428 +1000
+@@ -28,7 +28,7 @@ setup(
+ author_email="software@alcyone.com",
+ url="http://www.alcyone.com/software/empy",
+ license="%LICENSE",
+- py_modules=["em", "emlib"],
++ py_modules=["em"],
+ platforms=["unix", "linux", "win32"],
+ description=DESCRIPTION,
+ long_description=LONG_DESCRIPTION,
diff --git a/testing/py3-empy/APKBUILD b/testing/py3-empy/APKBUILD
new file mode 100644
index 0000000000..cb411b1ac6
--- /dev/null
+++ b/testing/py3-empy/APKBUILD
@@ -0,0 +1,31 @@
+# Contributor: Russ Webber <russ@rw.id.au>
+# Maintainer: Russ Webber <russ@rw.id.au>
+pkgname=py3-empy
+_pkgname=empy
+pkgver=3.3.4
+pkgrel=0
+pkgdesc="A powerful and robust templating system for Python."
+url="http://www.alcyone.com/software/empy/"
+arch="noarch"
+license="LGPL-2.1-or-later"
+depends="python3"
+source="http://www.alcyone.com/software/empy/empy-$pkgver.tar.gz
+ 10-fix-test-case.patch
+ 20-fix-setuppy.patch"
+builddir="$srcdir/$_pkgname-$pkgver"
+
+build() {
+ python3 setup.py build
+}
+
+check() {
+ sh test.sh python3
+}
+
+package() {
+ python3 setup.py install --prefix=/usr --root="$pkgdir"
+}
+
+sha512sums="5de8de26484468d180a2575bfc8302cb3d32004ed4d70768310b7564a9ed1bb880b8c1d862f419588b2b5baa8c3da8bc707eac41f3921e6136cc5bc3f47f1a3d empy-3.3.4.tar.gz
+f48040e697de119dcb811a85aed485446464c68b89552b5499e3df7b865b30fe6b33123d9918340e3fa8adcb722694e232ba5d62be6201f896018c65d50cfabe 10-fix-test-case.patch
+e30eae88792dd6e32406b0f1719319b186966d82c846685fc6cdd2fa7f54b31c1aa30e212c9793a7f6b21960c635c1ff673fd2b6734eec500712ec58f667b05a 20-fix-setuppy.patch"