From fb291acb6c533870f8236666c617c3d14423687f Mon Sep 17 00:00:00 2001 From: Alessio Sergi Date: Tue, 5 Aug 2014 02:32:32 +0200 Subject: [PATCH] New package: python-SQLAlchemy-0.9.7 with python3.4 subpkg; replaces python-sqlalchemy --- srcpkgs/python-SQLAlchemy/template | 31 ++++++++++++++++++++++++++++++ srcpkgs/python-sqlalchemy/template | 15 --------------- srcpkgs/python3.4-SQLAlchemy | 1 + 3 files changed, 32 insertions(+), 15 deletions(-) create mode 100644 srcpkgs/python-SQLAlchemy/template delete mode 100644 srcpkgs/python-sqlalchemy/template create mode 120000 srcpkgs/python3.4-SQLAlchemy diff --git a/srcpkgs/python-SQLAlchemy/template b/srcpkgs/python-SQLAlchemy/template new file mode 100644 index 00000000000..e496d970708 --- /dev/null +++ b/srcpkgs/python-SQLAlchemy/template @@ -0,0 +1,31 @@ +# Template file for 'python-SQLAlchemy' +pkgname=python-SQLAlchemy +version=0.9.7 +revision=1 +wrksrc="${pkgname#*-}-${version}" +build_style=python-module +python_versions="2.7 3.4" +hostmakedepends="python-setuptools python3.4-setuptools" +makedepends="python-devel python3.4-devel" +replaces="python-sqlalchemy>=0" +pycompile_module="sqlalchemy" +short_desc="SQL Toolkit and Object Relational Mapper for Python2" +maintainer="Alessio Sergi " +homepage="http://www.sqlalchemy.org/" +license="MIT" +distfiles="https://pypi.python.org/packages/source/S/SQLAlchemy/SQLAlchemy-${version}.tar.gz" +checksum=5fff261d0cff21c39913f9d30682659a52bfa2875699b2b7d908d0225df42a15 + +post_install() { + vlicense LICENSE +} + +python3.4-SQLAlchemy_package() { + pycompile_version="3.4" + pycompile_module="sqlalchemy" + short_desc="${short_desc/Python2/Python3.4}" + pkg_install() { + vmove usr/lib/python3.4 + vlicense ${wrksrc}/LICENSE + } +} diff --git a/srcpkgs/python-sqlalchemy/template b/srcpkgs/python-sqlalchemy/template deleted file mode 100644 index f9d73877e2b..00000000000 --- a/srcpkgs/python-sqlalchemy/template +++ /dev/null @@ -1,15 +0,0 @@ -# Template file for 'python-sqlalchemy" -pkgname=python-sqlalchemy -version=0.7.8 -revision=3 -wrksrc="SQLAlchemy-${version}" -build_style=python-module -hostmakedepends="python-devel" -makedepends="python-devel" -pycompile_module="sqlalchemy" -short_desc="The Python SQL Toolkit and Object Relational Mapper" -maintainer="Juan RP " -homepage="http://www.sqlalchemy.org/" -license="MIT" -distfiles="$SOURCEFORGE_SITE/sqlalchemy/SQLAlchemy-${version}.tar.gz" -checksum=e0d8b81cbb3bbb19a9e6ed0d31ecc525ed20c0590e595801d2c531052b92618f diff --git a/srcpkgs/python3.4-SQLAlchemy b/srcpkgs/python3.4-SQLAlchemy new file mode 120000 index 00000000000..7236787d196 --- /dev/null +++ b/srcpkgs/python3.4-SQLAlchemy @@ -0,0 +1 @@ +python-SQLAlchemy \ No newline at end of file