2016-07-17 07:04:10 +02:00
|
|
|
# Template file for 'python-psycopg2'
|
|
|
|
pkgname=python-psycopg2
|
|
|
|
version=2.6.2
|
2016-12-01 09:07:45 +01:00
|
|
|
revision=3
|
2016-07-17 07:04:10 +02:00
|
|
|
_series="${version%.*}"
|
2016-10-17 10:40:07 +02:00
|
|
|
wrksrc="psycopg2-${version}"
|
2016-07-17 07:04:10 +02:00
|
|
|
build_style=python-module
|
2016-10-17 10:40:07 +02:00
|
|
|
pycompile_module="psycopg2"
|
2016-07-17 07:04:10 +02:00
|
|
|
# Require postgresql-libs-devel to find executable: pg_config
|
2016-10-17 10:40:07 +02:00
|
|
|
hostmakedepends="python-devel python3-devel postgresql-libs-devel"
|
2016-07-17 07:04:10 +02:00
|
|
|
# Require postgresql-libs-devel for libpq-fe.h
|
2016-10-17 10:40:07 +02:00
|
|
|
makedepends="python-devel python3-devel postgresql-libs-devel"
|
2016-07-17 07:04:10 +02:00
|
|
|
short_desc="PostgreSQL adapter for Python designed to be thread safe"
|
|
|
|
maintainer="Toyam Cox <Vaelatern@gmail.com>"
|
|
|
|
license="LGPL-3"
|
|
|
|
homepage="http://initd.org/psycopg"
|
|
|
|
distfiles="${homepage}/tarballs/PSYCOPG-${_series/./-}/psycopg2-${version}.tar.gz"
|
|
|
|
checksum=70490e12ed9c5c818ecd85d185d363335cc8a8cbf7212e3c185431c79ff8c05c
|
|
|
|
|
2016-10-17 10:40:07 +02:00
|
|
|
python3-psycopg2_package() {
|
|
|
|
pycompile_module="psycopg2"
|
2016-12-01 09:07:45 +01:00
|
|
|
replaces="python3.4-psycopg2>=0"
|
2016-10-17 10:40:07 +02:00
|
|
|
short_desc="${short_desc/Python/Python3}"
|
2016-07-17 07:04:10 +02:00
|
|
|
pkg_install() {
|
2016-10-17 10:40:07 +02:00
|
|
|
vmove usr/lib/python3*
|
2016-07-17 07:04:10 +02:00
|
|
|
}
|
|
|
|
}
|
2016-10-17 10:40:07 +02:00
|
|
|
python3.4-psycopg2_package() {
|
|
|
|
build_style=meta
|
|
|
|
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
|
|
|
|
depends="python3-psycopg2>=${version}_${revision}"
|
|
|
|
}
|