summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorA. Wilcox <awilcox@wilcox-tech.com>2018-04-17 03:14:51 +0000
committerA. Wilcox <awilcox@wilcox-tech.com>2018-04-17 03:14:51 +0000
commit58df66140118743fa73b00a0861268771454a52d (patch)
tree8eab53269041756630a60e5b5eabc5a852eb3de8
parent5217ef782dbc8fed1658ce8eaa0020067ef164ce (diff)
parenteed15ce883433b15cd0254898275ea7dceea0bad (diff)
downloadpackages-58df66140118743fa73b00a0861268771454a52d.tar.gz
packages-58df66140118743fa73b00a0861268771454a52d.tar.bz2
packages-58df66140118743fa73b00a0861268771454a52d.tar.xz
packages-58df66140118743fa73b00a0861268771454a52d.zip
Merge branch 'meta/docutils' into 'master'
docutils and friends ``` Includes: * user/py3-docutils * user/py3-roman * user/py3-pillow * user/py3-olefile ``` See merge request !17
-rw-r--r--user/py3-docutils/APKBUILD51
-rw-r--r--user/py3-olefile/APKBUILD36
-rw-r--r--user/py3-pillow/APKBUILD54
-rw-r--r--user/py3-roman/APKBUILD35
-rw-r--r--user/py3-roman/py36.patch10
5 files changed, 186 insertions, 0 deletions
diff --git a/user/py3-docutils/APKBUILD b/user/py3-docutils/APKBUILD
new file mode 100644
index 000000000..e227ada63
--- /dev/null
+++ b/user/py3-docutils/APKBUILD
@@ -0,0 +1,51 @@
+# Contributor: Max Rees <maxcrees@me.com>
+# Maintainer: Max Rees <maxcrees@me.com>
+pkgname=py3-docutils
+_pkgname=docutils
+pkgver=0.14
+pkgrel=0
+pkgdesc="Documentation utilities for Python"
+url="https://pypi.python.org/pypi/docutils"
+arch="noarch"
+license="Custom"
+depends="python3 py3-pillow py3-roman"
+makedepends="python3-dev py3-setuptools"
+subpackages="$pkgname-doc"
+source="$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
+builddir="$srcdir/$_pkgname-$pkgver"
+
+build() {
+ cd "$builddir"
+ python3 setup.py build
+}
+
+check() {
+ cd "$builddir/test3"
+ python3 alltests.py
+}
+
+package() {
+ cd "$builddir"
+ python3 setup.py install --prefix=/usr --root="$pkgdir"
+
+ # Remove .py extension from executable files.
+ local path; for path in "$pkgdir"/usr/bin/*.py; do
+ mv "$path" "${path%.py}"
+ done
+}
+
+doc() {
+ cd "$builddir"
+
+ local docdir="$subpkgdir/usr/share/doc/$pkgname"
+ mkdir -p "$docdir"
+ cp -R docs/* "$docdir"
+ cp *.txt "$docdir"
+
+ local licdir="$subpkgdir/usr/share/licenses/$pkgname"
+ mkdir -p "$licdir"
+ rm -f licenses/docutils.conf
+ cp licenses/* "$licdir"
+}
+
+sha512sums="1ed72c2ef7d2ca38d1c6f3154b7986ea46f599d9bd826405a5257fdd7740c8626957d6298aa95fb0edea8a24515de22f1ad9b2ecbd59341a1ab7a2bab30f500c py3-docutils-0.14.tar.gz"
diff --git a/user/py3-olefile/APKBUILD b/user/py3-olefile/APKBUILD
new file mode 100644
index 000000000..4709626ae
--- /dev/null
+++ b/user/py3-olefile/APKBUILD
@@ -0,0 +1,36 @@
+# Contributor: Max Rees <maxcrees@me.com>
+# Maintainer: Max Rees <maxcrees@me.com>
+pkgname=py3-olefile
+_pkgname=olefile
+pkgver=0.44
+pkgrel=0
+pkgdesc="A Python module to read/write MS OLE2 files"
+url="https://pypi.python.org/pypi/olefile"
+arch="noarch"
+license="Custom"
+depends="python3"
+makedepends="py3-setuptools python3-dev"
+install=""
+giturl="https://github.com/decalage2/olefile"
+verbase="$pkgver"
+reporev="v$pkgver"
+# The downloads from GitHub are missing the test files
+source="https://dev.sick.bike/$pkgname-$pkgver.tar.gz"
+builddir="$srcdir/$_pkgname-$pkgver"
+
+build() {
+ cd "$builddir"
+ python3 setup.py build
+}
+
+check() {
+ cd "$builddir"
+ PYTHONPATH="build/lib" python3 tests/test_olefile.py
+}
+
+package() {
+ cd "$builddir"
+ python3 setup.py install --prefix=/usr --root="$pkgdir"
+}
+
+sha512sums="bece8b040cb3572c1fa2536a21c1de4c05e560b641e1c6e4bf66772135c43d29e06c7fc47d6c07d3c351b1f741f49c63201657634c33e9124de892e9a0cc053f py3-olefile-0.44.tar.gz"
diff --git a/user/py3-pillow/APKBUILD b/user/py3-pillow/APKBUILD
new file mode 100644
index 000000000..c995de7f5
--- /dev/null
+++ b/user/py3-pillow/APKBUILD
@@ -0,0 +1,54 @@
+# Contributor: Max Rees <maxcrees@me.com>
+# Maintainer: Max Rees <maxcrees@me.com>
+pkgname=py3-pillow
+_pkgname=Pillow
+pkgver=5.0.0
+pkgrel=0
+pkgdesc="A Python Imaging Library"
+url="https://pypi.python.org/pypi/Pillow/$pkgver"
+arch="all"
+license="Custom"
+depends="py3-olefile python3"
+makedepends="python3-dev py3-setuptools freetype-dev jpeg-dev libwebp-dev
+ tiff-dev libpng-dev lcms2-dev openjpeg-dev zlib-dev"
+subpackages="$pkgname-doc"
+_scripts_rev="f578e2c"
+source="$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz
+ $pkgname-scripts-$_scripts_rev.tar.gz::https://github.com/python-pillow/pillow-scripts/archive/$_scripts_rev.tar.gz"
+builddir="$srcdir/$_pkgname-$pkgver"
+
+unpack() {
+ default_unpack
+ mv pillow-scripts-*/Scripts "$builddir/Scripts"
+}
+
+build() {
+ cd "$builddir"
+ # zlib resides in lib
+ export CFLAGS="$CFLAGS -L/lib"
+ python3 setup.py build
+}
+
+check() {
+ cd "$builddir"
+ PYTHONPATH="$(find 'build' -name 'lib.*')" python3 selftest.py
+}
+
+package() {
+ cd "$builddir"
+ python3 setup.py install --prefix=/usr --root="$pkgdir"
+}
+
+doc() {
+ pkgdesc="Example scripts for $pkgname"
+ depends="$pkgname"
+
+ cd "$builddir"
+ local destdir="$subpkgdir/usr/share/doc/$pkgname"
+ install -d "$destdir"/Scripts
+ install -m 644 Scripts/* "$destdir"/Scripts/
+ install -Dm644 LICENSE "$subpkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+sha512sums="f6f1e138effe44a89897f48032a36406dab3c4ddff2a97b7d01e99c05865abad5cffa3ab0eefcacb243e422778063b49243b1a538012fe9c39a1e4329c0978f3 py3-pillow-5.0.0.tar.gz
+1a2e6dc45127b3f0b706d5be4fdc8ddeb09a9e046a182eb48239572e1bdc62d1b1f1a1f11ef1f1f23766aaac1b498556cc9a9cf11d3b943c9f2834c9b41612e0 py3-pillow-scripts-f578e2c.tar.gz"
diff --git a/user/py3-roman/APKBUILD b/user/py3-roman/APKBUILD
new file mode 100644
index 000000000..ce00a3785
--- /dev/null
+++ b/user/py3-roman/APKBUILD
@@ -0,0 +1,35 @@
+# Contributor: Max Rees <maxcrees@me.com>
+# Maintainer: Max Rees <maxcrees@me.com>
+pkgname=py3-roman
+_pkgname=roman
+pkgver=2.0.0
+pkgrel=2
+pkgdesc="Python library to convert integers to Roman numerals"
+url="http://pypi.python.org/pypi/roman"
+arch="noarch"
+license="Python-2.1.1" # not SPDX
+depends="python3"
+makedepends="python3-dev py3-setuptools unzip"
+checkdepends="py3-tox"
+source="$pkgname-$pkgver.zip::https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.zip
+ py36.patch"
+builddir="$srcdir/$_pkgname-$pkgver"
+
+build() {
+ cd "$builddir"
+ # Do not bootstrap - tries to access web
+ python3 setup.py build
+}
+
+check() {
+ cd "$builddir"
+ tox -e py36
+}
+
+package() {
+ cd "$builddir"
+ python3 setup.py install --prefix=/usr --root="$pkgdir"
+}
+
+sha512sums="d62a95e835232821dbf7a81d0c6b7df63f18c4116cfc7eee0c691a0b31d3d7b69d2dc2e4ea26e0a169a8e24bf080e8bb1e195b853be4adf1491335a5b4d5702c py3-roman-2.0.0.zip
+8f6bfe0f7259db6091b71c8744592de34ca305a30b5ac44cb366fd3e71ebbead21b892939a15b19cd0e344445f981f16ae493bb70ade171b2ba1d92daa431931 py36.patch"
diff --git a/user/py3-roman/py36.patch b/user/py3-roman/py36.patch
new file mode 100644
index 000000000..fc74674a7
--- /dev/null
+++ b/user/py3-roman/py36.patch
@@ -0,0 +1,10 @@
+--- roman-2.0.0/tox.ini 2013-02-25 10:15:52.000000000 +0000
++++ roman-2.0.0/tox.ini 2018-01-11 02:04:11.950000000 +0000
+@@ -1,6 +1,6 @@
+ [tox]
+ envlist =
+- py26,py27,py33,pypy
++ py26,py27,py33,pypy,py36
+
+ [testenv]
+ commands =