mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-06 23:23:51 +02:00
python-pyscss: use alternatives
This commit is contained in:
parent
25bc421075
commit
77cc4435ac
1 changed files with 10 additions and 30 deletions
|
@ -1,12 +1,13 @@
|
||||||
# Template file for 'python-pyscss'
|
# Template file for 'python-pyscss'
|
||||||
pkgname=python-pyscss
|
pkgname=python-pyscss
|
||||||
version=1.3.4
|
version=1.3.4
|
||||||
revision=2
|
revision=3
|
||||||
wrksrc="pyScss-${version}"
|
wrksrc="pyScss-${version}"
|
||||||
|
build_style=python-module
|
||||||
python_versions="2.7 3.4"
|
python_versions="2.7 3.4"
|
||||||
hostmakedepends="python-setuptools python3.4-setuptools pcre-devel"
|
hostmakedepends="python-setuptools python3.4-setuptools pcre-devel"
|
||||||
makedepends="pcre-devel python-devel python3.4-devel"
|
makedepends="pcre-devel python-devel python3.4-devel"
|
||||||
depends="python-six python-enum34 python-pathlib"
|
depends="python-setuptools python-six python-enum34 python-pathlib"
|
||||||
pycompile_module="scss"
|
pycompile_module="scss"
|
||||||
short_desc="Scss compiler for Python2"
|
short_desc="Scss compiler for Python2"
|
||||||
maintainer="Steven R <dev@styez.com>"
|
maintainer="Steven R <dev@styez.com>"
|
||||||
|
@ -14,42 +15,21 @@ homepage="http://github.com/Kronuz/pyScss"
|
||||||
license="MIT"
|
license="MIT"
|
||||||
distfiles="${PYPI_SITE}/p/pyScss/pyScss-${version}.tar.gz"
|
distfiles="${PYPI_SITE}/p/pyScss/pyScss-${version}.tar.gz"
|
||||||
checksum=d0323110ecc7d3ead6b99cfec31301306928130e4d0a9eb13226bf390aba8c0e
|
checksum=d0323110ecc7d3ead6b99cfec31301306928130e4d0a9eb13226bf390aba8c0e
|
||||||
|
alternatives="pyscss:pyscss:/usr/bin/pyscss2.7"
|
||||||
|
|
||||||
post_extract() {
|
post_install() {
|
||||||
sed -i '/^#!\//,1d' scss/tool.py
|
vlicense LICENSE
|
||||||
cp -a ${wrksrc} /tmp/python2.7-build
|
|
||||||
cp -a ${wrksrc} /tmp/python3.4-build
|
|
||||||
mv /tmp/python{2.7,3.4}-build ${wrksrc}
|
|
||||||
}
|
|
||||||
|
|
||||||
pre_build() {
|
|
||||||
cd ${wrksrc}/python3.4-build
|
|
||||||
sed -i 's,pyscss =,pyscss3 =,' setup.py
|
|
||||||
}
|
|
||||||
|
|
||||||
do_build() {
|
|
||||||
cd ${wrksrc}/python2.7-build
|
|
||||||
python setup.py build
|
|
||||||
|
|
||||||
cd ${wrksrc}/python3.4-build
|
|
||||||
python3.4 setup.py build
|
|
||||||
}
|
|
||||||
|
|
||||||
do_install() {
|
|
||||||
cd ${wrksrc}/python2.7-build
|
|
||||||
python setup.py install --root=${DESTDIR}
|
|
||||||
|
|
||||||
cd ${wrksrc}/python3.4-build
|
|
||||||
python3.4 setup.py install --root=${DESTDIR}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
python3.4-pyscss_package() {
|
python3.4-pyscss_package() {
|
||||||
depends="python3.4-six"
|
depends="python-setuptools python3.4-six"
|
||||||
pycompile_version="3.4"
|
pycompile_version="3.4"
|
||||||
pycompile_module="scss"
|
pycompile_module="scss"
|
||||||
short_desc="${short_desc/Python2/Python3.4}"
|
short_desc="${short_desc/Python2/Python3.4}"
|
||||||
|
alternatives="pyscss:pyscss:/usr/bin/pyscss3.4"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove usr/bin/pyscss3
|
vmove usr/bin/pyscss3.4
|
||||||
vmove usr/lib/python3.4
|
vmove usr/lib/python3.4
|
||||||
|
vlicense LICENSE
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue