python-psycopg2: rebuild for Python 3.5
Switch to python3-* pkgs. Convert python3.4-* pkg into dummy pkg. Clean up while I'm here.
This commit is contained in:
parent
b672da3218
commit
537bd95b3d
2 changed files with 16 additions and 13 deletions
|
@ -1,18 +1,15 @@
|
||||||
# Template file for 'python-psycopg2'
|
# Template file for 'python-psycopg2'
|
||||||
pkgname=python-psycopg2
|
pkgname=python-psycopg2
|
||||||
version=2.6.2
|
version=2.6.2
|
||||||
revision=1
|
revision=2
|
||||||
_series="${version%.*}"
|
_series="${version%.*}"
|
||||||
_module="${pkgname#python-}"
|
wrksrc="psycopg2-${version}"
|
||||||
wrksrc="${_module}-${version}"
|
|
||||||
build_style=python-module
|
build_style=python-module
|
||||||
python_versions='2.7 3.4'
|
pycompile_module="psycopg2"
|
||||||
pycompile_version="2.7"
|
|
||||||
pycompile_module="${_module}"
|
|
||||||
# Require postgresql-libs-devel to find executable: pg_config
|
# Require postgresql-libs-devel to find executable: pg_config
|
||||||
hostmakedepends="python-devel python3.4-devel postgresql-libs-devel"
|
hostmakedepends="python-devel python3-devel postgresql-libs-devel"
|
||||||
# Require postgresql-libs-devel for libpq-fe.h
|
# Require postgresql-libs-devel for libpq-fe.h
|
||||||
makedepends="python-devel python3.4-devel postgresql-libs-devel"
|
makedepends="python-devel python3-devel postgresql-libs-devel"
|
||||||
short_desc="PostgreSQL adapter for Python designed to be thread safe"
|
short_desc="PostgreSQL adapter for Python designed to be thread safe"
|
||||||
maintainer="Toyam Cox <Vaelatern@gmail.com>"
|
maintainer="Toyam Cox <Vaelatern@gmail.com>"
|
||||||
license="LGPL-3"
|
license="LGPL-3"
|
||||||
|
@ -20,11 +17,16 @@ homepage="http://initd.org/psycopg"
|
||||||
distfiles="${homepage}/tarballs/PSYCOPG-${_series/./-}/psycopg2-${version}.tar.gz"
|
distfiles="${homepage}/tarballs/PSYCOPG-${_series/./-}/psycopg2-${version}.tar.gz"
|
||||||
checksum=70490e12ed9c5c818ecd85d185d363335cc8a8cbf7212e3c185431c79ff8c05c
|
checksum=70490e12ed9c5c818ecd85d185d363335cc8a8cbf7212e3c185431c79ff8c05c
|
||||||
|
|
||||||
python3.4-psycopg2_package() {
|
python3-psycopg2_package() {
|
||||||
pycompile_version="3.4"
|
pycompile_module="psycopg2"
|
||||||
pycompile_module="${_module}"
|
replaces="pythom3.4-psycopg2>=0"
|
||||||
short_desc="${short_desc/Python/Python3.4}"
|
short_desc="${short_desc/Python/Python3}"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove usr/lib/python3.4
|
vmove usr/lib/python3*
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
python3.4-psycopg2_package() {
|
||||||
|
build_style=meta
|
||||||
|
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
|
||||||
|
depends="python3-psycopg2>=${version}_${revision}"
|
||||||
|
}
|
||||||
|
|
1
srcpkgs/python3-psycopg2
Symbolic link
1
srcpkgs/python3-psycopg2
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
python-psycopg2
|
Loading…
Add table
Add a link
Reference in a new issue