void-packages/srcpkgs/python-cssutils/template

39 lines
1.1 KiB
Bash

# Template file for 'python-cssutils'
pkgname=python-cssutils
version=1.0.1
revision=2
noarch=yes
wrksrc="cssutils-${version}"
build_style=python-module
python_versions="2.7 3.4"
hostmakedepends="python-setuptools python3.4-setuptools"
depends="python-setuptools"
pycompile_module="cssutils encutils"
short_desc="A CSS Cascading Style Sheets library for Python2"
maintainer="Farhad Shahbazi <grauwolf@geekosphere.org>"
license="LGPL-3"
homepage="http://pypi.python.org/pypi/cssutils"
distfiles="${PYPI_SITE}/c/cssutils/cssutils-${version}.tar.gz"
checksum=d8a18b2848ea1011750231f1dd64fe9053dbec1be0b37563c582561e7a529063
alternatives="
cssutils:csscapture:/usr/bin/csscapture2.7
cssutils:csscombine:/usr/bin/csscombine2.7
cssutils:cssparse:/usr/bin/cssparse2.7"
python3.4-cssutils_package() {
alternatives="
cssutils:csscapture:/usr/bin/csscapture3.4
cssutils:csscombine:/usr/bin/csscombine3.4
cssutils:cssparse:/usr/bin/cssparse3.4"
noarch=yes
pycompile_version="3.4"
pycompile_module="cssutils encutils"
depends="python3.4-setuptools"
short_desc="${short_desc/Python2/Python3.4}"
pkg_install() {
vmove usr/bin/*3.4
vmove usr/lib/python3.4
}
}