python-cssutils: update to 1.0.1; misc fixes
This commit is contained in:
parent
fc394eed9d
commit
70292ab80e
|
@ -1,27 +1,39 @@
|
||||||
# Template file for 'python-cssutils'
|
# Template file for 'python-cssutils'
|
||||||
pkgname="python-cssutils"
|
pkgname=python-cssutils
|
||||||
version=1.0
|
version=1.0.1
|
||||||
revision=1
|
revision=1
|
||||||
wrksrc="cssutils-${version}"
|
|
||||||
noarch=yes
|
noarch=yes
|
||||||
|
wrksrc="cssutils-${version}"
|
||||||
build_style=python-module
|
build_style=python-module
|
||||||
python_versions="2.7 3.4"
|
python_versions="2.7 3.4"
|
||||||
hostmakedepends="python-setuptools python3.4-setuptools unzip"
|
hostmakedepends="python-setuptools python3.4-setuptools"
|
||||||
depends="python"
|
depends="python"
|
||||||
pycompile_module="cssutils"
|
pycompile_module="cssutils encutils"
|
||||||
short_desc="A CSS Cascading Style Sheets library for Python2"
|
short_desc="A CSS Cascading Style Sheets library for Python2"
|
||||||
maintainer="Farhad Shahbazi <grauwolf@geekosphere.org>"
|
maintainer="Farhad Shahbazi <grauwolf@geekosphere.org>"
|
||||||
license="LGPL-3"
|
license="LGPL-3"
|
||||||
homepage="http://pypi.python.org/pypi/cssutils"
|
homepage="http://pypi.python.org/pypi/cssutils"
|
||||||
distfiles="${PYPI_SITE}/c/cssutils/cssutils-${version}.zip"
|
distfiles="${PYPI_SITE}/c/cssutils/cssutils-${version}.tar.gz"
|
||||||
checksum=4504762f5d8800b98fa713749c00acfef8419826568f9363c490e45146a891af
|
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() {
|
python3.4-cssutils_package() {
|
||||||
pycompile_version="3.4"
|
noarch=yes
|
||||||
pycompile_module="cssutils"
|
|
||||||
depends="python3.4"
|
depends="python3.4"
|
||||||
|
pycompile_version="3.4"
|
||||||
|
pycompile_module="cssutils encutils"
|
||||||
short_desc="${short_desc/Python2/Python3.4}"
|
short_desc="${short_desc/Python2/Python3.4}"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
|
vmove usr/bin/*3.4
|
||||||
vmove usr/lib/python3.4
|
vmove usr/lib/python3.4
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user