From a717321a0622ef28c929197c1258436b72c71b83 Mon Sep 17 00:00:00 2001 From: Alessio Sergi Date: Fri, 1 Aug 2014 20:01:01 +0200 Subject: [PATCH] python-urwid: update to 1.2.1; add python3.4 subpkg --- srcpkgs/python-urwid/template | 36 +++++++++++++++++++++++++---------- srcpkgs/python3.4-urwid | 1 + 2 files changed, 27 insertions(+), 10 deletions(-) create mode 120000 srcpkgs/python3.4-urwid diff --git a/srcpkgs/python-urwid/template b/srcpkgs/python-urwid/template index ce14ea4e060..e398c1adf57 100644 --- a/srcpkgs/python-urwid/template +++ b/srcpkgs/python-urwid/template @@ -1,15 +1,31 @@ # Template file for 'python-urwid' pkgname=python-urwid -version=1.1.1 -revision=2 -wrksrc="urwid-${version}" -build_style=python-module -hostmakedepends="python-devel" -makedepends="python-devel" +version=1.2.1 +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" +depends="python" pycompile_module="urwid" -short_desc="Console user interface library for Python" +short_desc="Console user interface library for Python2" maintainer="Juan RP " -homepage="http://excess.org/urwid/" +homepage="http://urwid.org/" license="LGPL-2.1" -distfiles="http://excess.org/urwid/urwid-$version.tar.gz" -checksum=b301b4e0c2cd1634390cda80149d8aa2a07365af81a281ecf258770e47d30e99 +distfiles="https://pypi.python.org/packages/source/u/urwid/urwid-${version}.tar.gz" +checksum=9b9b5dabb7df6c0f12e84feed488f9a9ddd5c2d66d1b7c7c087055720b87c68c + +pre_build() { + sed -i '/^#!\//, 1d' urwid/*.py +} + +python3.4-urwid_package() { + depends="python3.4" + pycompile_version="3.4" + pycompile_module="urwid" + short_desc="${short_desc/Python2/Python3.4}" + pkg_install() { + vmove usr/lib/python3.4 + } +} diff --git a/srcpkgs/python3.4-urwid b/srcpkgs/python3.4-urwid new file mode 120000 index 00000000000..35d328e4a81 --- /dev/null +++ b/srcpkgs/python3.4-urwid @@ -0,0 +1 @@ +python-urwid \ No newline at end of file