python-docutils: added 3.4 subpkg with pycompile support.

This commit is contained in:
Juan RP 2014-06-18 12:38:28 +02:00
parent 572f68a1bb
commit 267f29c742
2 changed files with 11 additions and 8 deletions

View File

@ -1,13 +1,14 @@
# Template file for 'python-docutils'
pkgname=python-docutils
version=0.11
revision=1
revision=2
wrksrc="docutils-${version}"
build_style=python-module
makedepends="python python3"
hostmakedepends="python python3.4"
makedepends="python python3.4"
depends="python>=2.7"
noarch="yes"
python_versions="2.7 3.3"
python_versions="2.7 3.4"
pycompile_module="docutils"
short_desc="Text processing system to convert to various formats (Python2)"
maintainer="Alessio Sergi <al3hex@gmail.com>"
@ -20,7 +21,7 @@ pre_install() {
# fix name conflict and remove .py suffix
for file in 2html 2latex 2man 2odt 2odt_prepstyles 2pseudoxml 2s5 2xetex 2xml pep2html; do
mv build-2.7/scripts-2.7/rst${file}{.py,}
mv build-3.3/scripts-3.3/rst${file}{.py,3}
mv build-3.4/scripts-3.4/rst${file}{.py,3}
done
}
@ -35,13 +36,15 @@ post_install() {
vinstall licenses/python-2-1-1.txt 644 usr/share/licenses/${pkgname}
}
python3-docutils_package() {
python3.4-docutils_package() {
noarch="yes"
depends="python3"
short_desc="${short_desc//Python2/Python3}"
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.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}