From fe61e961005c8f7596705b4653d8e9366101692f Mon Sep 17 00:00:00 2001 From: Toyam Cox Date: Sun, 17 Jul 2016 01:04:10 -0400 Subject: [PATCH] New package: python-psycopg2-2.6.2 --- srcpkgs/python-psycopg2/template | 30 ++++++++++++++++++++++++++++++ srcpkgs/python3.4-psycopg2 | 1 + 2 files changed, 31 insertions(+) create mode 100644 srcpkgs/python-psycopg2/template create mode 120000 srcpkgs/python3.4-psycopg2 diff --git a/srcpkgs/python-psycopg2/template b/srcpkgs/python-psycopg2/template new file mode 100644 index 00000000000..ac18c321885 --- /dev/null +++ b/srcpkgs/python-psycopg2/template @@ -0,0 +1,30 @@ +# Template file for 'python-psycopg2' +pkgname=python-psycopg2 +version=2.6.2 +revision=1 +_series="${version%.*}" +_module="${pkgname#python-}" +wrksrc="${_module}-${version}" +build_style=python-module +python_versions='2.7 3.4' +pycompile_version="2.7" +pycompile_module="${_module}" +# Require postgresql-libs-devel to find executable: pg_config +hostmakedepends="python-devel python3.4-devel postgresql-libs-devel" +# Require postgresql-libs-devel for libpq-fe.h +makedepends="python-devel python3.4-devel postgresql-libs-devel" +short_desc="PostgreSQL adapter for Python designed to be thread safe" +maintainer="Toyam Cox " +license="LGPL-3" +homepage="http://initd.org/psycopg" +distfiles="${homepage}/tarballs/PSYCOPG-${_series/./-}/psycopg2-${version}.tar.gz" +checksum=70490e12ed9c5c818ecd85d185d363335cc8a8cbf7212e3c185431c79ff8c05c + +python3.4-psycopg2_package() { + pycompile_version="3.4" + pycompile_module="${_module}" + short_desc="${short_desc/Python/Python3.4}" + pkg_install() { + vmove usr/lib/python3.4 + } +} diff --git a/srcpkgs/python3.4-psycopg2 b/srcpkgs/python3.4-psycopg2 new file mode 120000 index 00000000000..229ccfbf905 --- /dev/null +++ b/srcpkgs/python3.4-psycopg2 @@ -0,0 +1 @@ +python-psycopg2 \ No newline at end of file