From f38f423afd009a166e1e8b06ea4a5523c1aeeb0f Mon Sep 17 00:00:00 2001 From: Alessio Sergi Date: Wed, 2 Jul 2014 15:15:15 +0200 Subject: [PATCH] python-munkres: add python3.4 subpkg with pycompile support --- srcpkgs/python-munkres/template | 33 ++++++++++++++++++++++++--------- srcpkgs/python3.4-munkres | 1 + 2 files changed, 25 insertions(+), 9 deletions(-) create mode 120000 srcpkgs/python3.4-munkres diff --git a/srcpkgs/python-munkres/template b/srcpkgs/python-munkres/template index b45dfd4dc45..974b233e854 100644 --- a/srcpkgs/python-munkres/template +++ b/srcpkgs/python-munkres/template @@ -1,18 +1,33 @@ # Template file for 'python-munkres' pkgname=python-munkres version=1.0.6 -revision=2 -distfiles="https://pypi.python.org/packages/source/m/munkres/munkres-${version}.tar.gz" -checksum="c78f803b9b776bfb20a25c9c7bb44adbf0f9202c2024d51aa5969d21e560208d" +revision=3 +noarch=yes +wrksrc="munkres-${version}" build_style="python-module" -pycompile_module="munkres" -hostmakedepends="python-devel python-distribute" +python_versions="2.7 3.4" +hostmakedepends="python-devel python3.4-devel" makedepends="${hostmakedepends}" depends="python" +pycompile_module="munkres" +short_desc="Algorithm for the Assignment Problem (Python2)" maintainer="Steven R " -homepage="http://bmc.github.com/munkres/" +homepage="http://software.clapper.org/munkres/" license="BSD" -short_desc="Algorithm for the Assignment Problem" +distfiles="https://pypi.python.org/packages/source/m/munkres/munkres-${version}.tar.gz" +checksum=c78f803b9b776bfb20a25c9c7bb44adbf0f9202c2024d51aa5969d21e560208d -noarch="yes" -wrksrc="munkres-${version}" +pre_install() { + sed -i 's,#!/usr/bin/env python,&3.4,' build-3.4/lib/munkres.py +} + +python3.4-munkres_package() { + noarch=yes + depends="python3.4" + pycompile_version="3.4" + pycompile_module="munkres" + short_desc="${short_desc/Python2/Python3.4}" + pkg_install() { + vmove usr/lib/python3.4 + } +} diff --git a/srcpkgs/python3.4-munkres b/srcpkgs/python3.4-munkres new file mode 120000 index 00000000000..a8a6e0a8b19 --- /dev/null +++ b/srcpkgs/python3.4-munkres @@ -0,0 +1 @@ +python-munkres \ No newline at end of file