From ffdc85a1287f34ac32f62072e40d63b876da41a2 Mon Sep 17 00:00:00 2001 From: Alessio Sergi Date: Fri, 4 Jul 2014 10:10:09 +0200 Subject: [PATCH] New package: python-cssselect-0.9.1 with 3.4 subpkg CSS selectors for Python. --- srcpkgs/python-cssselect/template | 33 +++++++++++++++++++++++++++++++ srcpkgs/python3.4-cssselect | 1 + 2 files changed, 34 insertions(+) create mode 100644 srcpkgs/python-cssselect/template create mode 120000 srcpkgs/python3.4-cssselect diff --git a/srcpkgs/python-cssselect/template b/srcpkgs/python-cssselect/template new file mode 100644 index 0000000000..5e9ec63b4b --- /dev/null +++ b/srcpkgs/python-cssselect/template @@ -0,0 +1,33 @@ +# Template file for 'python-cssselect' +pkgname=python-cssselect +version=0.9.1 +revision=1 +noarch=yes +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" +depends="python" +pycompile_module="cssselect" +short_desc="CSS selectors for Python2" +maintainer="Alessio Sergi " +homepage="https://pypi.python.org/pypi/cssselect" +license="BSD" +distfiles="https://pypi.python.org/packages/source/c/${pkgname#*-}/${pkgname#*-}-${version}.tar.gz" +checksum=0535a7e27014874b27ae3a4d33e8749e345bdfa62766195208b7996bf1100682 + +pre_install() { + sed -i 's,#!/usr/bin/env python,&3.4,' build-3.4/lib/cssselect/tests.py +} + +python3.4-cssselect_package() { + noarch=yes + depends="python3.4" + pycompile_version="3.4" + pycompile_module="cssselect" + short_desc="${short_desc/Python2/Python3.4}" + pkg_install() { + vmove usr/lib/python3.4 + } +} diff --git a/srcpkgs/python3.4-cssselect b/srcpkgs/python3.4-cssselect new file mode 120000 index 0000000000..5e6b659b03 --- /dev/null +++ b/srcpkgs/python3.4-cssselect @@ -0,0 +1 @@ +python-cssselect \ No newline at end of file