python-docutils: use $PYPI_SITE
Misc tweaks.
This commit is contained in:
parent
bdb83d7471
commit
49600c1639
2 changed files with 16 additions and 17 deletions
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'python-docutils'
|
# Template file for 'python-docutils'
|
||||||
pkgname=python-docutils
|
pkgname=python-docutils
|
||||||
version=0.12
|
version=0.12
|
||||||
revision=1
|
revision=2
|
||||||
noarch=yes
|
noarch=yes
|
||||||
wrksrc="docutils-${version}"
|
wrksrc="docutils-${version}"
|
||||||
build_style=python-module
|
build_style=python-module
|
||||||
|
@ -9,28 +9,27 @@ python_versions="2.7 3.4"
|
||||||
hostmakedepends="python-setuptools python3.4-setuptools"
|
hostmakedepends="python-setuptools python3.4-setuptools"
|
||||||
depends="python"
|
depends="python"
|
||||||
pycompile_module="docutils"
|
pycompile_module="docutils"
|
||||||
short_desc="Text processing system to convert to various formats (Python2)"
|
short_desc="Python2 documentation utilities"
|
||||||
maintainer="Alessio Sergi <al3hex@gmail.com>"
|
maintainer="Alessio Sergi <al3hex@gmail.com>"
|
||||||
homepage="http://docutils.sourceforge.net"
|
homepage="http://docutils.sourceforge.net"
|
||||||
license="BSD-2-Clause, GPL-3, PSF, Public Domain"
|
license="Public Domain, 2-clause-BSD, GPL-3, PSF"
|
||||||
distfiles="${SOURCEFORGE_SITE}/docutils/docutils-${version}.tar.gz"
|
distfiles="${PYPI_SITE}/d/docutils/docutils-${version}.tar.gz"
|
||||||
checksum=c7db717810ab6965f66c8cf0398a98c9d8df982da39b4cd7f162911eb89596fa
|
checksum=c7db717810ab6965f66c8cf0398a98c9d8df982da39b4cd7f162911eb89596fa
|
||||||
|
|
||||||
pre_install() {
|
pre_build() {
|
||||||
# fix name conflict and remove .py suffix
|
# remove shebang from library files
|
||||||
for file in 2html 2latex 2man 2odt 2odt_prepstyles 2pseudoxml 2s5 2xetex 2xml pep2html; do
|
find docutils/{utils,writers} -type f -name '*.py' -exec sed -i '/^#!/d' {} +
|
||||||
mv build-2.7/scripts-2.7/rst${file}{.py,}
|
|
||||||
mv build-3.4/scripts-3.4/rst${file}{.py,3}
|
|
||||||
done
|
|
||||||
}
|
}
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
# remove old files
|
# fix name conflict and remove .py suffix
|
||||||
for file in 2html 2latex 2man 2odt 2odt_prepstyles 2pseudoxml 2s5 2xetex 2xml pep2html; do
|
for f in 2html 2latex 2man 2odt 2odt_prepstyles 2pseudoxml 2s5 2xetex 2xml pep2html; do
|
||||||
rm -f ${DESTDIR}/usr/bin/rst${file}.py
|
rm -f ${DESTDIR}/usr/bin/rst${f}.py
|
||||||
|
vbin build-2.7/scripts-2.7/rst${f}{.py,}
|
||||||
|
vbin build-3.4/scripts-3.4/rst${f}{.py,3}
|
||||||
done
|
done
|
||||||
|
|
||||||
# install licenses
|
# install licenses
|
||||||
|
vlicense COPYING.txt
|
||||||
vlicense licenses/BSD-2-Clause.txt
|
vlicense licenses/BSD-2-Clause.txt
|
||||||
vlicense licenses/python-2-1-1.txt
|
vlicense licenses/python-2-1-1.txt
|
||||||
}
|
}
|
||||||
|
@ -44,7 +43,8 @@ python3.4-docutils_package() {
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove usr/bin/*3
|
vmove usr/bin/*3
|
||||||
vmove usr/lib/python3.4
|
vmove usr/lib/python3.4
|
||||||
vlicense ${wrksrc}/licenses/BSD-2-Clause.txt
|
vlicense COPYING.txt
|
||||||
vlicense ${wrksrc}/licenses/python-2-1-1.txt
|
vlicense licenses/BSD-2-Clause.txt
|
||||||
|
vlicense licenses/python-2-1-1.txt
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
pkgname="docutils"
|
|
Loading…
Reference in a new issue