diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2016-08-24 12:06:15 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2016-08-24 12:27:34 +0000 |
commit | 5abb363541d4e0d9e57af29f220cb5ac4a62b5b2 (patch) | |
tree | 6ba32b1853a218de08eb1385c376ffe6dafa432f | |
parent | aaa3ef00220e8daaf6f3a6db5ba03a51d8896491 (diff) | |
download | aports-5abb363541d4e0d9e57af29f220cb5ac4a62b5b2.tar.bz2 aports-5abb363541d4e0d9e57af29f220cb5ac4a62b5b2.tar.xz |
community/py-sqlalchemy-migrate: upgrade to 0.10.0, created py2 subpackage
-rw-r--r-- | community/py-sqlalchemy-migrate/APKBUILD | 43 | ||||
-rw-r--r-- | testing/py-sqlalchemy-migrate/APKBUILD | 40 |
2 files changed, 43 insertions, 40 deletions
diff --git a/community/py-sqlalchemy-migrate/APKBUILD b/community/py-sqlalchemy-migrate/APKBUILD new file mode 100644 index 0000000000..7da32873bb --- /dev/null +++ b/community/py-sqlalchemy-migrate/APKBUILD @@ -0,0 +1,43 @@ +# Contributor: Carlo Landmeter <clandmeter@gmail.com> +# Maintainer: Francesco Colista <fcolista@alpinelinux.org> +pkgname=py-sqlalchemy-migrate +pkgver=0.10.0 +pkgrel=0 +pkgdesc="SQLAlchemy Schema Migration Tools" +url="https://code.google.com/p/sqlalchemy-migrate/" +arch="noarch" +license="MIT" +depends="" +makedepends="python2-dev py-setuptools" +install="" +subpackages="py2-${pkgname/py-/}:_py2" +source="$pkgname-$pkgver.tar.gz::https://github.com/openstack/sqlalchemy-migrate/archive/$pkgver.tar.gz" + +builddir="$srcdir"/sqlalchemy-migrate-$pkgver + +build() { + cd "$builddir" + python2 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 + depends="py2-sqlalchemy py2-tempita py2-decorator" + replaces="$pkgname" +} + +md5sums="415698033227a88ce7575b8d0b7334a3 py-sqlalchemy-migrate-0.10.0.tar.gz" +sha256sums="a3b78ae5e9c8021617c75033181f2921629c25f8d1a65cb21ee9fe9a6a97df37 py-sqlalchemy-migrate-0.10.0.tar.gz" +sha512sums="7b94782eb1caa309180e9aff31a1599869d938828796e187e7204719c0e7488eb5ae25ba8ff50d976280f472582e97765cb46796b4223b347350109697a01503 py-sqlalchemy-migrate-0.10.0.tar.gz" diff --git a/testing/py-sqlalchemy-migrate/APKBUILD b/testing/py-sqlalchemy-migrate/APKBUILD deleted file mode 100644 index bc19c11ac2..0000000000 --- a/testing/py-sqlalchemy-migrate/APKBUILD +++ /dev/null @@ -1,40 +0,0 @@ -# Contributor: Carlo Landmeter <clandmeter@gmail.com> -# Maintainer: -pkgname=py-sqlalchemy-migrate -pkgver=0.7.2 -pkgrel=0 -pkgdesc="SQLAlchemy Schema Migration Tools" -url="https://code.google.com/p/sqlalchemy-migrate/" -arch="noarch" -license="MIT" -depends="python py-sqlalchemy7 py-tempita py-decorator" -depends_dev="" -makedepends="python-dev py-setuptools" -install="" -subpackages="" -source="https://sqlalchemy-migrate.googlecode.com/files/sqlalchemy-migrate-$pkgver.tar.gz" - -_builddir="$srcdir"/sqlalchemy-migrate-$pkgver -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 -} - -build() { - cd "$_builddir" - python setup.py build || return 1 -} - -package() { - cd "$_builddir" - python setup.py install --prefix=/usr --root="$pkgdir" || return 1 -} - -md5sums="10382fda16f056491e671b5307dd6713 sqlalchemy-migrate-0.7.2.tar.gz" -sha256sums="7f55c768ee26f143fedb11b365a4c57c3bbdb5211e049c7f04b8ae8107c28333 sqlalchemy-migrate-0.7.2.tar.gz" -sha512sums="31c56da755ccccdc0aa5eacddcb097a4bd6431ab72a5b964689b0943b50ae4b23e034ae84d8dad4707d4cf9bea5b538e015ff755318685cc17dd82497a4cb4a9 sqlalchemy-migrate-0.7.2.tar.gz" |