python-cssutils: update to 1.0.1; misc fixes

This commit is contained in:
Alessio Sergi 2016-02-10 01:01:14 +01:00
parent fc394eed9d
commit 70292ab80e

View file

@ -1,27 +1,39 @@
# Template file for 'python-cssutils'
pkgname="python-cssutils"
version=1.0
pkgname=python-cssutils
version=1.0.1
revision=1
wrksrc="cssutils-${version}"
noarch=yes
wrksrc="cssutils-${version}"
build_style=python-module
python_versions="2.7 3.4"
hostmakedepends="python-setuptools python3.4-setuptools unzip"
hostmakedepends="python-setuptools python3.4-setuptools"
depends="python"
pycompile_module="cssutils"
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}.zip"
checksum=4504762f5d8800b98fa713749c00acfef8419826568f9363c490e45146a891af
distfiles="${PYPI_SITE}/c/cssutils/cssutils-${version}.tar.gz"
checksum=d8a18b2848ea1011750231f1dd64fe9053dbec1be0b37563c582561e7a529063
pre_build() {
find src/cssutils -type f -name '*.py' -exec sed -i '/^#!/d' {} +
}
post_install() {
for f in ${DESTDIR}/usr/bin/*; do
cp -f ${f}{,3.4}
replace_interpreter python ${f}
done
}
python3.4-cssutils_package() {
pycompile_version="3.4"
pycompile_module="cssutils"
noarch=yes
depends="python3.4"
pycompile_version="3.4"
pycompile_module="cssutils encutils"
short_desc="${short_desc/Python2/Python3.4}"
pkg_install() {
vmove usr/bin/*3.4
vmove usr/lib/python3.4
}
}