python-docutils: update to 0.12

This commit is contained in:
Alessio Sergi 2014-11-13 12:17:55 +01:00
parent 5131dc4432
commit e50dbcdaad

View file

@ -1,14 +1,13 @@
# Template file for 'python-docutils'
pkgname=python-docutils
version=0.11
revision=2
version=0.12
revision=1
noarch=yes
wrksrc="docutils-${version}"
build_style=python-module
hostmakedepends="python python3.4"
makedepends="python python3.4"
depends="python>=2.7"
noarch="yes"
python_versions="2.7 3.4"
hostmakedepends="python-setuptools python3.4-setuptools"
depends="python"
pycompile_module="docutils"
short_desc="Text processing system to convert to various formats (Python2)"
maintainer="Alessio Sergi <al3hex@gmail.com>"
@ -16,7 +15,7 @@ homepage="http://docutils.sourceforge.net"
license="BSD-2-Clause, GPL-3, PSF, Public Domain"
update_pkgname="docutils"
distfiles="${SOURCEFORGE_SITE}/docutils/docutils-${version}.tar.gz"
checksum=9af4166adf364447289c5c697bb83c52f1d6f57e77849abcccd6a4a18a5e7ec9
checksum=c7db717810ab6965f66c8cf0398a98c9d8df982da39b4cd7f162911eb89596fa
pre_install() {
# fix name conflict and remove .py suffix
@ -33,21 +32,20 @@ post_install() {
done
# install licenses
vinstall licenses/BSD-2-Clause.txt 644 usr/share/licenses/${pkgname}
vinstall licenses/python-2-1-1.txt 644 usr/share/licenses/${pkgname}
vlicense licenses/BSD-2-Clause.txt
vlicense licenses/python-2-1-1.txt
}
python3.4-docutils_package() {
noarch="yes"
noarch=yes
depends="python3.4"
pycompile_version="3.4"
pycompile_module="docutils"
short_desc="${short_desc/Python2/Python3.4}"
pkg_install() {
vmove /usr/bin/*3
vmove /usr/lib/python3.4
# install licenses
vinstall ${wrksrc}/licenses/BSD-2-Clause.txt 644 usr/share/licenses/${pkgname}
vinstall ${wrksrc}/licenses/python-2-1-1.txt 644 usr/share/licenses/${pkgname}
vmove usr/bin/*3
vmove usr/lib/python3.4
vlicense ${wrksrc}/licenses/BSD-2-Clause.txt
vlicense ${wrksrc}/licenses/python-2-1-1.txt
}
}