2013-02-11 14:16:10 +00:00
|
|
|
# Template file for 'python-docutils'
|
|
|
|
pkgname=python-docutils
|
2014-06-10 08:24:42 +00:00
|
|
|
version=0.11
|
2014-06-18 10:38:28 +00:00
|
|
|
revision=2
|
2013-02-11 14:16:10 +00:00
|
|
|
wrksrc="docutils-${version}"
|
|
|
|
build_style=python-module
|
2014-06-18 10:38:28 +00:00
|
|
|
hostmakedepends="python python3.4"
|
|
|
|
makedepends="python python3.4"
|
2014-06-10 08:24:42 +00:00
|
|
|
depends="python>=2.7"
|
2014-01-01 15:10:11 +00:00
|
|
|
noarch="yes"
|
2014-06-18 10:38:28 +00:00
|
|
|
python_versions="2.7 3.4"
|
2014-01-01 15:10:11 +00:00
|
|
|
pycompile_module="docutils"
|
2014-06-10 08:24:42 +00:00
|
|
|
short_desc="Text processing system to convert to various formats (Python2)"
|
|
|
|
maintainer="Alessio Sergi <al3hex@gmail.com>"
|
2013-02-11 14:16:10 +00:00
|
|
|
homepage="http://docutils.sourceforge.net"
|
2014-06-10 08:24:42 +00:00
|
|
|
license="BSD-2-Clause, GPL-3, PSF, Public Domain"
|
2013-02-11 14:16:10 +00:00
|
|
|
distfiles="${SOURCEFORGE_SITE}/docutils/docutils-${version}.tar.gz"
|
2014-06-10 08:24:42 +00:00
|
|
|
checksum=9af4166adf364447289c5c697bb83c52f1d6f57e77849abcccd6a4a18a5e7ec9
|
|
|
|
|
|
|
|
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,}
|
2014-06-18 10:38:28 +00:00
|
|
|
mv build-3.4/scripts-3.4/rst${file}{.py,3}
|
2014-06-10 08:24:42 +00:00
|
|
|
done
|
|
|
|
}
|
|
|
|
|
|
|
|
post_install() {
|
|
|
|
# remove old files
|
|
|
|
for file in 2html 2latex 2man 2odt 2odt_prepstyles 2pseudoxml 2s5 2xetex 2xml pep2html; do
|
|
|
|
rm -f ${DESTDIR}/usr/bin/rst${file}.py
|
|
|
|
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}
|
|
|
|
}
|
|
|
|
|
2014-06-18 10:38:28 +00:00
|
|
|
python3.4-docutils_package() {
|
2014-06-10 08:24:42 +00:00
|
|
|
noarch="yes"
|
2014-06-18 10:38:28 +00:00
|
|
|
depends="python3.4"
|
|
|
|
pycompile_version="3.4"
|
|
|
|
pycompile_module="docutils"
|
|
|
|
short_desc="${short_desc/Python2/Python3.4}"
|
2014-06-10 08:24:42 +00:00
|
|
|
pkg_install() {
|
|
|
|
vmove /usr/bin/*3
|
2014-06-18 10:38:28 +00:00
|
|
|
vmove /usr/lib/python3.4
|
2014-06-10 08:24:42 +00:00
|
|
|
# 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}
|
|
|
|
}
|
|
|
|
}
|