void-packages/srcpkgs/python-sphinxcontrib/template

33 lines
861 B
Bash

# Template file for 'python-sphinxcontrib'
pkgname=python-sphinxcontrib
version=1.0
revision=1
noarch=yes
create_wrksrc=yes
pycompile_module="sphinxcontrib"
hostmakedepends="python-setuptools python3-setuptools"
depends="python-setuptools"
short_desc="Namespace package declaration for sphinxcontrib (Python2)"
maintainer="Alessio Sergi <al3hex@gmail.com>"
homepage="https://www.voidlinux.eu/"
license="Public Domain"
do_install() {
for py_sitelib in $py2_sitelib $py3_sitelib; do
vmkdir ${py_sitelib}/sphinxcontrib
cat > ${DESTDIR}/${py_sitelib}/sphinxcontrib/__init__.py <<-EOF
__import__('pkg_resources').declare_namespace(__name__)
EOF
done
}
python3-sphinxcontrib_package() {
noarch=yes
depends="python3-setuptools"
pycompile_module="sphinxcontrib"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
}
}