void-packages/srcpkgs/python-munkres/template

34 lines
919 B
Text
Raw Normal View History

2013-08-03 22:06:30 +00:00
# Template file for 'python-munkres'
pkgname=python-munkres
2013-11-10 09:14:14 +00:00
version=1.0.6
revision=3
noarch=yes
wrksrc="munkres-${version}"
2014-02-22 22:50:28 +00:00
build_style="python-module"
python_versions="2.7 3.4"
hostmakedepends="python-devel python3.4-devel"
2014-02-22 22:50:28 +00:00
makedepends="${hostmakedepends}"
depends="python"
pycompile_module="munkres"
short_desc="Algorithm for the Assignment Problem (Python2)"
2014-02-22 22:50:28 +00:00
maintainer="Steven R <dev@styez.com>"
homepage="http://software.clapper.org/munkres/"
2013-08-03 22:06:30 +00:00
license="BSD"
distfiles="https://pypi.python.org/packages/source/m/munkres/munkres-${version}.tar.gz"
checksum=c78f803b9b776bfb20a25c9c7bb44adbf0f9202c2024d51aa5969d21e560208d
2014-02-22 22:50:28 +00:00
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
}
}