diff options
author | Roberto Oliveira <robertoguimaraes8@gmail.com> | 2017-11-28 21:23:57 +0000 |
---|---|---|
committer | Roberto Oliveira <robertoguimaraes8@gmail.com> | 2017-11-28 21:29:05 +0000 |
commit | b7341dd6fb1e89d6c64d44422f084e1279b30f42 (patch) | |
tree | cab53c0d31945000ada64add2f94f6eff4c980bb | |
parent | f7aa39b9c8d611286b8282ce4c375bd094515dcb (diff) | |
download | aports-b7341dd6fb1e89d6c64d44422f084e1279b30f42.tar.bz2 aports-b7341dd6fb1e89d6c64d44422f084e1279b30f42.tar.xz |
community/py-graphviz: upgrade to 1.3 and modernize
-rw-r--r-- | community/py-graphviz/APKBUILD | 32 |
1 files changed, 9 insertions, 23 deletions
diff --git a/community/py-graphviz/APKBUILD b/community/py-graphviz/APKBUILD index 14a299b1da..88593e9186 100644 --- a/community/py-graphviz/APKBUILD +++ b/community/py-graphviz/APKBUILD @@ -1,8 +1,7 @@ # Contributor: Stuart Cardall <developer@it-offshore.co.uk> # Maintainer: Stuart Cardall <developer@it-offshore.co.uk> pkgname=py-graphviz -pkgver=1.3_rc2 -_ver=${pkgver/_/} +pkgver=1.3 pkgrel=0 pkgdesc="Python interface to Graphviz" url="https://pygraphviz.github.io/" @@ -10,33 +9,20 @@ arch="all" license="BSD" depends="python2" depends_dev="" -makedepends="python2-dev graphviz-dev" -install="" +makedepends="python2-dev graphviz-dev py-setuptools" subpackages="$pkgname-doc" -source="https://github.com/pygraphviz/pygraphviz/archive/pygraphviz-$_ver.tar.gz" +source="https://github.com/pygraphviz/pygraphviz/archive/pygraphviz-$pkgver.tar.gz" -_builddir="$srcdir"/pygraphviz-pygraphviz-$_ver -prepare() { - local i - cd "$_builddir" - for i in $source; do - case $i in - *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; - esac - done -} +builddir="$srcdir/pygraphviz-pygraphviz-$pkgver" build() { - cd "$_builddir" - export PYTHON=python2.7 - python2 setup.py build || return 1 + cd "$builddir" + python2 setup.py build } package() { - cd "$_builddir" - python2 setup.py install --prefix=/usr --root="$pkgdir" || return 1 + cd "$builddir" + python2 setup.py install --prefix=/usr --root="$pkgdir" } -md5sums="91f6d57dfc63cefa12c38eba3f09db09 pygraphviz-1.3rc2.tar.gz" -sha256sums="46737437bd872788b376aeddef9176def9f87339deed739f6769ee8dbe68121f pygraphviz-1.3rc2.tar.gz" -sha512sums="f1ed6e52a07320701e788696b8dc46d0903bdbd740645f07658265bb9dea411b43d90d97ecb2ed658fec4c53fa966d89f5feef0aa62acb4157f6ba662475d876 pygraphviz-1.3rc2.tar.gz" +sha512sums="889574a735e8a9ff696dc38d59baebe44ad2b8b9ce7012e961e48a6f2974d4dfaf54a4dbf28f6c79b9bfcf71499aceec0ea618bf508399efda6583bde3b55107 pygraphviz-1.3.tar.gz" |