From c9927938dbda99330af23322733536debbe51990 Mon Sep 17 00:00:00 2001 From: Francesco Colista Date: Mon, 22 Aug 2016 12:40:01 +0000 Subject: community/py-xlswriter: upgraded to 0.9.3, moved from testing, added python3 support and py2/py3 subpackage --- community/py-xlsxwriter/APKBUILD | 49 ++++++++++++++++++++++++++++++++++++++++ testing/py-xlsxwriter/APKBUILD | 31 ------------------------- 2 files changed, 49 insertions(+), 31 deletions(-) create mode 100644 community/py-xlsxwriter/APKBUILD delete mode 100644 testing/py-xlsxwriter/APKBUILD diff --git a/community/py-xlsxwriter/APKBUILD b/community/py-xlsxwriter/APKBUILD new file mode 100644 index 0000000000..4b4f8ee89a --- /dev/null +++ b/community/py-xlsxwriter/APKBUILD @@ -0,0 +1,49 @@ +# Contributor: Francesco Colista +# Maintainer: Francesco Colista +pkgname=py-xlsxwriter +_pkgname="XlsxWriter" +pkgver=0.9.3 +pkgrel=0 +pkgdesc="A Python module for creating Excel XLSX files" +url="https://github.com/jmcnamara/XlsxWriter" +arch="noarch" +license="BSD" +depends="" +makedepends="python2-dev py-setuptools python3-dev" +install="" +subpackages="py3-${pkgname/py-/}:_py3 py2-${pkgname/py-/}:_py2" +source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" + +builddir="$srcdir"/$_pkgname-$pkgver + +build() { + cd "$builddir" + python2 setup.py build || return 1 + python3 setup.py build || return 1 +} + +package() { + mkdir -p "$pkgdir" +} + +_py() { + local python=$1 + pkgdesc="$pkgdesc - $python" + install_if="$pkgname=$pkgver-r$pkgrel $python" + cd "$builddir" + $python setup.py install --prefix=/usr --root="$subpkgdir" +} + +_py2() { + _py python2 + replaces="$pkgname" +} + +_py3() { + _py python3 +} + + +md5sums="9035b1e37a579c554e703404ffcebdd4 XlsxWriter-0.9.3.tar.gz" +sha256sums="19d2b5c0dd4d5fc00e8d7f164795f50e885b20d1cc27a3d04d5c7fec3c4d57f6 XlsxWriter-0.9.3.tar.gz" +sha512sums="44e84d3fa6e3d499a31c2f7e06941246423de99d5bb5fd543bb67763cd65d282c7e615beb3ffed2faa4bab1c54cc5be28c52f6471ba073d719b30c31c1e1767f XlsxWriter-0.9.3.tar.gz" diff --git a/testing/py-xlsxwriter/APKBUILD b/testing/py-xlsxwriter/APKBUILD deleted file mode 100644 index f2ed2729df..0000000000 --- a/testing/py-xlsxwriter/APKBUILD +++ /dev/null @@ -1,31 +0,0 @@ -# Contributor: Francesco Colista -# Maintainer: Francesco Colista -pkgname=py-xlsxwriter -_pkgname="XlsxWriter" -pkgver=0.8.7 -pkgrel=0 -pkgdesc="A Python module for creating Excel XLSX files" -url="https://github.com/jmcnamara/XlsxWriter" -arch="noarch" -license="BSD" -depends="" -depends_dev="" -makedepends="$depends_dev python-dev py-setuptools" -install="" -subpackages="" -source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" - -builddir="$srcdir"/$_pkgname-$pkgver -build() { - cd "$builddir" - python setup.py build || return 1 -} - -package() { - cd "$builddir" - python setup.py install --prefix=/usr --root="$pkgdir" || return 1 -} - -md5sums="7fdb824bc81a4853f3d6ca4503802bd7 XlsxWriter-0.8.7.tar.gz" -sha256sums="47557c7e7e5eb36afb6fcbf0ca45f4b375462b29137d3055043bb3b42089c779 XlsxWriter-0.8.7.tar.gz" -sha512sums="c5a51ebe603bbfff08e37f46ce5e76b87f5c05133dfd58c78254dac172462263b5bd5814e32d9dd7667f4e200a4dbdafaa87886ef8db251094db9c0ecef08a39 XlsxWriter-0.8.7.tar.gz" -- cgit v1.2.3