mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-07 15:43:49 +02:00
python-cssutils: use alternatives
This commit is contained in:
parent
e11f2bf9b9
commit
a6e7ded845
1 changed files with 11 additions and 12 deletions
|
@ -1,13 +1,13 @@
|
||||||
# Template file for 'python-cssutils'
|
# Template file for 'python-cssutils'
|
||||||
pkgname=python-cssutils
|
pkgname=python-cssutils
|
||||||
version=1.0.1
|
version=1.0.1
|
||||||
revision=1
|
revision=2
|
||||||
noarch=yes
|
noarch=yes
|
||||||
wrksrc="cssutils-${version}"
|
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"
|
hostmakedepends="python-setuptools python3.4-setuptools"
|
||||||
depends="python"
|
depends="python-setuptools"
|
||||||
pycompile_module="cssutils encutils"
|
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>"
|
||||||
|
@ -16,21 +16,20 @@ homepage="http://pypi.python.org/pypi/cssutils"
|
||||||
distfiles="${PYPI_SITE}/c/cssutils/cssutils-${version}.tar.gz"
|
distfiles="${PYPI_SITE}/c/cssutils/cssutils-${version}.tar.gz"
|
||||||
checksum=d8a18b2848ea1011750231f1dd64fe9053dbec1be0b37563c582561e7a529063
|
checksum=d8a18b2848ea1011750231f1dd64fe9053dbec1be0b37563c582561e7a529063
|
||||||
|
|
||||||
pre_build() {
|
alternatives="
|
||||||
find src/cssutils -type f -name '*.py' -exec sed -i '/^#!/d' {} +
|
cssutils:csscapture:/usr/bin/csscapture2.7
|
||||||
}
|
cssutils:csscombine:/usr/bin/csscombine2.7
|
||||||
post_install() {
|
cssutils:cssparse:/usr/bin/cssparse2.7"
|
||||||
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() {
|
||||||
|
alternatives="
|
||||||
|
cssutils:csscapture:/usr/bin/csscapture3.4
|
||||||
|
cssutils:csscombine:/usr/bin/csscombine3.4
|
||||||
|
cssutils:cssparse:/usr/bin/cssparse3.4"
|
||||||
noarch=yes
|
noarch=yes
|
||||||
depends="python3.4"
|
|
||||||
pycompile_version="3.4"
|
pycompile_version="3.4"
|
||||||
pycompile_module="cssutils encutils"
|
pycompile_module="cssutils encutils"
|
||||||
|
depends="python3.4-setuptools"
|
||||||
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/bin/*3.4
|
||||||
|
|
Loading…
Add table
Reference in a new issue