Portage is a package management system used by Gentoo Linux
# ChangeLog for dev-python/docutils
# Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/docutils/ChangeLog,v 1.80 2008/06/29 10:36:49 tove Exp $
29 Jun 2008; Torsten Veller
docutils-0.4-r2.ebuild, docutils-0.4-r3.ebuild:
Add missing die: || "..." -> || die "..."
04 Feb 2008; Ali Polatel
-files/docutils-0.3.5-extramodules.patch, -docutils-0.3.5.ebuild,
docutils-0.3.7.ebuild, -docutils-0.3.9.ebuild, -docutils-0.4.ebuild,
-docutils-0.4-r1.ebuild, docutils-0.4-r2.ebuild, docutils-0.4-r3.ebuild:
Drop old. Quoting.
02 Jan 2008; Jeroen Roovers
Stable for HPPA (bug #203582).
29 Dec 2007; Raúl Porcel
alpha/ia64/sparc stable wrt #203582
29 Dec 2007; Brent Baude
Marking docutils-0.4-r3 ppc64 for bug 203582
28 Dec 2007; Doug Klima
amd64 stable wrt bug #203582
28 Dec 2007; Markus Meier
x86 stable wrt bug #203582 and quotes
28 Dec 2007; nixnut
Stable on ppc wrt bug 203582
*docutils-0.4-r3 (31 Jul 2007)
31 Jul 2007; Tiziano Müller
+docutils-0.4-r3.ebuild:
Egg'ified docutils
05 Jul 2007; Roy Marples
~sparc-fbsd keyword should not have been dropped.
05 Jul 2007; Markus Rothe
Stable on ppc64; bug #183735
04 Jul 2007; Ali Polatel
docutils-0.3.7.ebuild, docutils-0.3.9.ebuild, docutils-0.4.ebuild,
docutils-0.4-r1.ebuild, docutils-0.4-r2.ebuild:
use DOCS, mydoc is deprecated, removed unneeded empty lines
02 Jul 2007; Gustavo Zacarias
docutils-0.4-r2.ebuild:
Stable on sparc wrt #183735
01 Jul 2007; Lars Weiler
Stable on ppc; bug #183735.
01 Jul 2007; Peter Weller
Stable on amd64 wrt bug 182394
01 Jul 2007; Jeroen Roovers
Stable for HPPA (bug #183735).
30 Jun 2007; Raúl Porcel
alpha/ia64/x86 stable wrt #183735
*docutils-0.4-r2 (30 Jun 2007)
30 Jun 2007; Ulrich Mueller
Emacs support files split off and moved to app-emacs/rst. This fixes the
circular emacs / eselect / docutils dependency, bug #183242. Dropped
arm/s390/sh/~sparc-fbsd; to be re-added following rst keywording.
16 Apr 2007; Markus Rothe
Stable on ppc64
04 Apr 2007; Rob Cakebread
+files/docutils-0.4-python-2.5-fix.patch, docutils-0.4.ebuild,
docutils-0.4-r1.ebuild:
Python 2.5 test fix bug 172557. Thanks Ali Polatel
removed non-existent spec dir from dodoc
30 Mar 2007; Fabian Groffen
docutils-0.3.7.ebuild, docutils-0.3.9.ebuild, docutils-0.4.ebuild,
docutils-0.4-r1.ebuild:
Dropped ppc-macos keyword, see you in prefix
28 Mar 2007; Jeroen Roovers
Stable for HPPA too.
*docutils-0.4-r1 (26 Mar 2007)
26 Mar 2007; Alec Warner
bump docutils with fixed glep tarball for bug 152313
17 Mar 2007; Steve Dibb
amd64 stable
22 Feb 2007; Piotr Jaroszyński
Transition to Manifest2.
12 Jan 2007; nixnut
Stable on ppc wrt bug 159855
10 Jan 2007; Gustavo Zacarias
Stable on sparc
09 Jan 2007; Andrej Kacian
Stable on x86, bug #159855.
03 Dec 2006; Markus Rothe
Stable on ppc64
01 Dec 2006; Gustavo Zacarias
Stable on hppa
01 Dec 2006; Marius Mauch
docutils-0.3.7.ebuild, docutils-0.3.9.ebuild, docutils-0.4.ebuild:
use get_libdir for glep modules
13 Nov 2006; Tobias Scherbaum
docutils-0.3.9.ebuild:
ppc stable, bug #154574
13 Nov 2006; Gustavo Zacarias
Stable on sparc
11 Nov 2006; Andrej Kacian
Stable on x86, bug #154574.
18 Oct 2006; Roy Marples
Added ~sparc-fbsd keyword.
26 Aug 2006; Alastair Tse
docutils-0.3.9.ebuild, docutils-0.4.ebuild:
add distutils_pkg_post_{inst,rm} (#145151)
27 Apr 2006; Marien Zwart
files/digest-docutils-0.3.5, files/digest-docutils-0.3.7,
files/digest-docutils-0.3.9, Manifest:
Fixing SHA256 digest, pass four
04 Apr 2006; Diego Pettenò
Add ~x86-fbsd keyword.
16 Feb 2006; Marien Zwart
-files/glep-0.3-r1/glep_htmlwrite.py,
-files/docutils-0.3.3-extramodules.patch,
-files/glep-0.3.3/glep_htmlwrite.py,
-files/docutils-0.3-extramodules.patch, -files/glep-0.3-r1/glepread.py,
-files/glep-0.3.3/glepread.py, -files/glep-0.3-r1/glepstrans.py,
-files/glep-0.3.3/glep.py, -files/glep-0.3.3/glepstrans.py,
-files/glep.py, -files/glep_htmlwrite.py, -files/glepread.py,
-files/glepstrans.py, -docutils-0.3_pre20030530-r3.ebuild,
-docutils-0.3-r1.ebuild, -docutils-0.3.3-r1.ebuild:
Remove old versions.
14 Feb 2006; Marien Zwart
Fix bug breaking src_compile if docutils is not installed already. Thanks to
rl03@gentoo.org for reporting.
*docutils-0.4 (13 Feb 2006)
13 Feb 2006; Marien Zwart
+files/50docutils-0.4-gentoo.el, +docutils-0.4.ebuild:
Version bump to 0.4 (closes bug #118470, thanks to Jeff Kowalczyk
recommends and updates to the glep code.
28 Jan 2006; Olivier Crête
Stable on amd64
25 Nov 2005; Tom Gall
stable on ppc64
19 Nov 2005; Markus Rothe
docutils-0.3.9.ebuild:
Added ~ppc64; bug #102649
14 Oct 2005; Aaron Walker
Stable on mips.
12 Oct 2005; Michael Hanselmann
Stable on hppa, ppc.
10 Oct 2005; Gustavo Zacarias
Stable on sparc
09 Oct 2005; Bryan Østergaard
docutils-0.3.9.ebuild:
Fix tests + stable 0.3.7 now that python-2.4 is in stable.
11 Sep 2005; Aaron Walker
Added ~mips to 0.3.5 so we have something we can mark stable eventually.
10 Sep 2005; Aron Griffis
Mark 0.3.5 stable on alpha
*docutils-0.3.9 (03 Sep 2005)
03 Sep 2005; Grant Goodyear
Version bump (bug # 95875), with new glep tarball. Dropped "docutils-" prefix
for tools other than "docutils-glep.py", following the guidelines in the
docutils "distributing.html" file (bug #96856). Thanks to Felix Wiemann,
Fabian Neumann, and liquidx for contributions. This latest ebuild lacks
proper PIL handling at the moment; if you're a distutils person please fix.
11 Jul 2005; Matthew Kennedy
+files/50docutils-gentoo.el, docutils-0.3.7.ebuild:
Support emacs USE flag.
04 Jun 2005; Stephen Bennett
~mips keywords
15 May 2005; Guy Martin
Added ~hppa to KEYWORDS.
24 Apr 2005; Simon Stelling
docutils-0.3.7.ebuild:
marked 0.3.3-r1 stable and 0.3.7 testing on amd64
19 Apr 2005; Michael Hanselmann
Stable on ppc.
*docutils-0.3.7 (14 Mar 2005)
14 Mar 2005; Rob Cakebread
+files/docutils-0.3.7-extramodules.patch, docutils-0.3-r1.ebuild,
docutils-0.3.3-r1.ebuild, docutils-0.3.5.ebuild, +docutils-0.3.7.ebuild,
docutils-0.3_pre20030530-r3.ebuild:
Fixed python 2.4 DEPENDs. Added src_test to 0.3.7. Marked 0.3.5 x86 bug# 79635
19 Feb 2005;
Stable on ppc-macos.
19 Jan 2005;
Keyworded ~ppc-macos.
09 Jan 2005; Jason Wever
Added ~sparc keyword as it went missing in the version bump.
30 Dec 2004; Ciaran McCreesh
Change encoding to UTF-8 for GLEP 31 compliance
12 Nov 2004; Grant Goodyear
Fixing my glep booboo (bug # 69882).
01 Nov 2004; Jason Wever
Added ~sparc keyword.
01 Nov 2004; Dylan Carlson
Keywords ~amd64.
31 Oct 2004; Grant Goodyear
+files/docutils-0.3.5-extramodules.patch, docutils-0.3.3-r1.ebuild,
+docutils-0.3.5.ebuild:
0.3.3-r1 is now stable on x86.
Added 0.3.5, thanks to Stephen Boulet (bug #59140).
*docutils-0.3.3-r1 (20 Jul 2004)
20 Jul 2004; Grant Goodyear
+files/glep-0.3.3/glep_htmlwrite.py, +files/glep-0.3.3/glepread.py,
+files/glep-0.3.3/glepstrans.py, +docutils-0.3.3-r1.ebuild,
-docutils-0.3.3.ebuild:
kloeri broke GLEP stuff w/ 0.3.3; bad boy!
*docutils-0.3.3 (12 Jun 2004)
12 Jun 2004; Bryan Østergaard
+files/docutils-0.3.3-extramodules.patch, +docutils-0.3.3.ebuild:
Version bump, bug #51422.
27 Mar 2004; David Holm
Added to ~ppc.
20 Sep 2003; Alastair Tse
docutils-0.3.ebuild, docutils-0.3_pre20030530.ebuild:
bumped to stable x86 and cleanups
*docutils-0.3-r1 (08 Jul 2003)
08 Jul 2003; Alastair Tse
files/docutils-0.3-extramodules.patch, files/glep-0.3-r1/glep.py,
files/glep-0.3-r1/glep_htmlwrite.py, files/glep-0.3-r1/glepread.py,
files/glep-0.3-r1/glepstrans.py:
fixed glep scripts for docutils 0.3, changed install script for optparse.py
and textwrap.py.
*docutils-0.3 (01 Jul 2003)
01 Jul 2003; Alastair Tse
version bump
*docutils-0.3_pre20030530-r3 (04 Jun 2003)
04 Jun 2003; Grant Goodyear
docutils-0.3_pre20030530-r2.ebuild, docutils-0.3_pre20030530-r3.ebuild,
files/glep_htmlwrite.py, files/glepstrans.py:
Numerous cleanings of the ebuild, entirely due to Ben Cornett
(whose bug I failed to look at before writing my ebuild). I also updated
the Gentoo GLEP tools slightly so that they point to the new home
of GLEP: www.gentoo.org/proj/en/glep.
*docutils-0.3_pre20030530-r2 (04 Jun 2003)
04 Jun 2003; Alastair Tse
docutils-0.3_pre20030530-r2.ebuild, docutils-0.3_pre20030530.ebuild:
fix src_uri
01 Jun 2003; Grant Goodyear
docutils-0.3_pre20030530-r1.ebuild, files/glep_htmlwrite.py:
More GLEP fixes.
*docutils-0.3_pre20030530-r1 (31 May 2003)
31 May 2003; Grant Goodyear
docutils-0.3_pre20030530-r1.ebuild:
New version that adds some GLEP files.
(Well, same version, just some new Gentoo functionality.)
*docutils-0.3_pre20030530 (30 May 2003)
30 May 2003; Grant Goodyear
docutils-0.3_pre20030530.ebuild:
New package. Marking stable on x86 because (a) there are no other
versions in the tree, and (b) if this package is broken it won't break
anything else.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
AUX 50docutils-0.4-gentoo.el 275 RMD160 d017df7483e086d71f18800002f285b1a90be08c SHA1 5f02490db2dfc432c90bf5b0b8c9898ef2707ac5 SHA256 cbfccc2cf7f9b9dc00a0007fac424a5c634e083cfd29c0441becea75a9d92c8e
AUX 50docutils-gentoo.el 280 RMD160 d7a7c56fc93d93e2c0ca725c13a539b2d42489bf SHA1 872989d6c309a75a1612d217d3981555727f552c SHA256 18ead83f20f4de845dbd027b9d6845b3bb7d98933791b8c12b46528625d841cd
AUX docutils-0.3.7-extramodules.patch 1163 RMD160 4d7c0f935816f631b87cf58dbf228de931102e4f SHA1 2886d52101f12a6b6b04e75b2a4223b68c953af0 SHA256 c375dc4d7228c051a6dc6dd586fea7789703fb4d3b7c8c5bad4375f0a9e74aaa
AUX docutils-0.4-python-2.5-fix.patch 4672 RMD160 19c140fcdd530cdf78116cd781e6a626101ea027 SHA1 295091e82a2a28017f5ecdc07cbb02e2d35a3004 SHA256 f77c60951e3af465fa2f328dfc1a6a64c4715730a871fd7b7bf836973b65bed4
DIST docutils-0.3.7.tar.gz 625719 RMD160 34e1b8e6a19cfefe1e097108bcedaff11f9fdb80 SHA1 49e67c5448a4dcb544dc2128b0b6f93808813190 SHA256 a7a81c71caa36b4576f33f8ab2acb62e9fdf868345e8215f1d1b19d83fd7beb4
DIST docutils-0.4.tar.gz 1237801 RMD160 f6a3c5bfb79ed08ce282bcaf3ded05bd2e3f95b5 SHA1 25498713e3757f5050763303fc901dc120357fb5 SHA256 b81f29e4f39540d06c7d8c0dc1a2c209816c47ce33a66ac50ee28ae38d242c0e
DIST glep-0.3.7.tbz2 5055 RMD160 25bad2505ca571c6823ee6da3516c65ee3de9d6a SHA1 8bfd6789ccbf994d1c6b100bce8e7826c44b3fab SHA256 f1bd110a4360d95867d4e31c5e1e64704f0f0b700bcd5c9ba1999006b0251004
DIST glep-0.4-r1.tbz2 4667 RMD160 bea44f2fe567422fd42bedebdf04cb6d984478ae SHA1 123516118f8bb2c75296a125702f4bf8f3ff1959 SHA256 d0b421869fb3437e96484687fd57f34d4f5cdd5a1fbdb2314f1474b1f9afa058
EBUILD docutils-0.3.7.ebuild 2550 RMD160 d3dbe7aa8ba2cdbd6f503c9df94bc7f4aafe677a SHA1 5d65761de4e447bf03c9aeda6f8508e2ab7656eb SHA256 ae9e3b047a135248a4705278fe5b768c1ba4ed33674944b2091d83ae0f8e8b48
EBUILD docutils-0.4-r2.ebuild 2793 RMD160 a81cb7e890e8c643f965c78a55b1b022f58553b9 SHA1 f96f4fa75477b7dd566901a802d32ea86e69fc69 SHA256 4ee9ca90a8a618d9e1c8b1da321a9ace9fb8600d710d80afba414a71ed9b2853
EBUILD docutils-0.4-r3.ebuild 2877 RMD160 e9785695023eeda3385936c023afaa8b1270b6ed SHA1 a1f570043f9167aa60b32867ca36fd213e2b5026 SHA256 6c2cddfcea67e86923ae27118817839797ce5fabdb0537bbb833cf7b151e7356
MISC ChangeLog 12277 RMD160 de1682519143a8f7fa3516c749ff097f5ca1b46c SHA1 19fb2be8c29f0be3baf58aaf05cf5d0f6bf16805 SHA256 aca6bceb75ff1a9b1b8237acb48090c47345a616bc8fa3cbba34140567d5d608
MISC metadata.xml 159 RMD160 900a8c55d7a7d2f6312594769aaf941bf9e99c7f SHA1 c8e604d56dae898258b5254d78cfeac0b981e288 SHA256 9f01104d3484792496faff4805eed0ecea2352a897151f3397d49a13800037b4
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
iEYEARECAAYFAkhnZckACgkQV3J2n04EauxwqwCfXTqCzGun8ww/EspjRHTUQFw4
OlEAoJ+Niq2n3Hjq3AScVS/QHI2hRnvo
=cuKu
-----END PGP SIGNATURE-----
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/docutils/docutils-0.3.7.ebuild,v 1.20 2008/06/29 10:36:49 tove Exp $
inherit distutils eutils elisp-common multilib
DESCRIPTION="Set of python tools for processing plaintext docs into HTML, XML, etc."
HOMEPAGE="http://docutils.sourceforge.net/"
SRC_URI="mirror://sourceforge/docutils/${P}.tar.gz
glep? ( mirror://gentoo/glep-${PV}.tbz2 )"
LICENSE="public-domain PYTHON BSD"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 m68k mips ppc ppc64 s390 sh sparc x86"
IUSE="glep emacs"
DEPEND=">=dev-lang/python-2.2
emacs? ( virtual/emacs )"
SITEFILE=50docutils-gentoo.el
GLEP_SRC=${WORKDIR}/glep-${PV}
src_unpack() {
unpack ${A}
# simplified algorithm to select installing optparse and textwrap
epatch "${FILESDIR}"/${P}-extramodules.patch
}
src_compile() {
distutils_src_compile
# Generate html docs from reStructured text sources
PYTHONPATH=${S}/build/lib ${python} \
tools/buildhtml.py --config=tools/docutils.conf
if use emacs; then
pushd tools/editors/emacs; elisp-compile *.el; popd
fi
}
install_txt_doc() {
local doc=${1}
local dir="txt/$(dirname ${doc})"
docinto ${dir}
dodoc ${doc}
}
src_test() {
cd "${S}"/test
PYTHONPATH="${S}" ./alltests.py || die "alltests.py failed"
}
src_install() {
DOCS="*.txt"
distutils_src_install
# Tools
cd "${S}"/tools
for tool in *.py
do
newbin ${tool} docutils-${tool}
done
# Docs
cd "${S}"
dohtml -r docs spec tools
for doc in $(find docs spec tools -name '*.txt')
do
install_txt_doc $doc
done
# installing Gentoo GLEP tools. Uses versioned GLEP distribution
if use glep
then
distutils_python_version
newbin ${GLEP_SRC}/glep.py docutils-glep.py || die "newbin failed"
insinto /usr/$(get_libdir)/python${PYVER}/site-packages/docutils/readers
newins ${GLEP_SRC}/glepread.py glep.py || die "newins reader failed"
insinto /usr/$(get_libdir)/python${PYVER}/site-packages/docutils/transforms
newins ${GLEP_SRC}/glepstrans.py gleps.py || die "newins transform failed"
insinto /usr/$(get_libdir)/python${PYVER}/site-packages/docutils/writers
newins ${GLEP_SRC}/glep_htmlwrite.py glep_html.py || die "newins writer failed"
fi
if use emacs; then
elisp-install ${PN} tools/editors/emacs/*.{elc,el}
elisp-site-file-install "${FILESDIR}"/${SITEFILE}
fi
}
pkg_postinst() {
use emacs && elisp-site-regen
distutils_pkg_postinst
}
pkg_postrm() {
use emacs && elisp-site-regen
distutils_pkg_postrm
}
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/docutils/docutils-0.4-r2.ebuild,v 1.13 2008/06/29 10:36:49 tove Exp $
inherit distutils eutils multilib
DESCRIPTION="Set of python tools for processing plaintext docs into HTML, XML, etc..."
HOMEPAGE="http://docutils.sourceforge.net/"
SRC_URI="mirror://sourceforge/docutils/${P}.tar.gz
glep? ( mirror://gentoo/glep-${PV}-r1.tbz2 )"
LICENSE="public-domain PYTHON BSD"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc ~sparc-fbsd x86 ~x86-fbsd"
IUSE="glep emacs"
DEPEND=">=dev-lang/python-2.3"
# Emacs support is in PDEPEND to avoid a dependency cycle (bug #183242)
PDEPEND="emacs? ( >=app-emacs/rst-0.4 )"
EMP=${PN}-0.3.7
GLEP_SRC=${WORKDIR}/glep-${PV}-r1
src_unpack() {
unpack ${A}
# simplified algorithm to select installing optparse and textwrap
cd "${S}"
epatch "${FILESDIR}"/${EMP}-extramodules.patch
# Fix for Python 2.5 test (bug# 172557)
epatch "${FILESDIR}"/${P}-python-2.5-fix.patch
}
src_compile() {
distutils_src_compile
# Generate html docs from reStructured text sources.
# make roman.py available for the doc building process
ln -s extras/roman.py
pushd tools
# Place html4css1.css in base directory. This makes sure the
# generated reference to it is correct.
cp ../docutils/writers/html4css1/html4css1.css ..
PYTHONPATH=.. ${python} ./buildhtml.py --stylesheet-path=../html4css1.css --traceback .. \
|| die "buildhtml"
popd
# clean up after the doc building
rm roman.py html4css1.css
}
install_txt_doc() {
local doc=${1}
local dir="txt/$(dirname ${doc})"
docinto ${dir}
dodoc ${doc}
}
src_test() {
cd "${S}"/test
PYTHONPATH="${S}" ./alltests.py || die "alltests.py failed"
}
src_install() {
DOCS="*.txt"
distutils_src_install
# Tools
cd "${S}"/tools
for tool in *.py
do
dobin ${tool}
done
# Docs
cd "${S}"
dohtml -r docs tools
# manually install the stylesheet file
insinto /usr/share/doc/${PF}/html
doins docutils/writers/html4css1/html4css1.css
for doc in $(find docs tools -name '*.txt')
do
install_txt_doc $doc
done
# installing Gentoo GLEP tools. Uses versioned GLEP distribution
if use glep
then
distutils_python_version
dobin ${GLEP_SRC}/glep.py || die "newbin failed"
insinto /usr/$(get_libdir)/python${PYVER}/site-packages/docutils/readers
newins ${GLEP_SRC}/glepread.py glep.py || die "newins reader failed"
insinto /usr/$(get_libdir)/python${PYVER}/site-packages/docutils/transforms
newins ${GLEP_SRC}/glepstrans.py gleps.py || die "newins transform failed"
insinto /usr/$(get_libdir)/python${PYVER}/site-packages/docutils/writers
doins -r ${GLEP_SRC}/glep_html || die "doins writer failed"
fi
}
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/docutils/docutils-0.4-r3.ebuild,v 1.11 2008/06/29 10:36:49 tove Exp $
NEED_PYTHON=2.4
inherit distutils eutils multilib
DESCRIPTION="Set of python tools for processing plaintext docs into HTML, XML, etc..."
HOMEPAGE="http://docutils.sourceforge.net/"
SRC_URI="mirror://sourceforge/docutils/${P}.tar.gz
glep? ( mirror://gentoo/glep-${PV}-r1.tbz2 )"
LICENSE="public-domain PYTHON BSD"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 s390 sh sparc x86 ~x86-fbsd"
IUSE="glep emacs"
DEPEND="dev-python/setuptools"
# Emacs support is in PDEPEND to avoid a dependency cycle (bug #183242)
PDEPEND="emacs? ( >=app-emacs/rst-0.4 )"
EMP=${PN}-0.3.7
GLEP_SRC=${WORKDIR}/glep-${PV}-r1
src_unpack() {
unpack ${A}
# simplified algorithm to select installing optparse and textwrap
cd "${S}"
epatch "${FILESDIR}"/${EMP}-extramodules.patch
# Fix for Python 2.5 test (bug# 172557)
epatch "${FILESDIR}"/${P}-python-2.5-fix.patch
sed -i \
-e 's/from distutils.core/from setuptools/' \
setup.py || die "sed failed"
}
src_compile() {
distutils_src_compile
# Generate html docs from reStructured text sources.
# make roman.py available for the doc building process
ln -s extras/roman.py
pushd tools
# Place html4css1.css in base directory. This makes sure the
# generated reference to it is correct.
cp ../docutils/writers/html4css1/html4css1.css ..
PYTHONPATH=.. ${python} ./buildhtml.py --stylesheet-path=../html4css1.css --traceback .. \
|| die "buildhtml"
popd
# clean up after the doc building
rm roman.py html4css1.css
}
install_txt_doc() {
local doc=${1}
local dir="txt/$(dirname ${doc})"
docinto ${dir}
dodoc ${doc}
}
src_test() {
cd "${S}"/test
PYTHONPATH="${S}" ./alltests.py || die "alltests.py failed"
}
src_install() {
DOCS="*.txt"
distutils_src_install
# Tools
cd "${S}"/tools
for tool in *.py
do
dobin ${tool}
done
# Docs
cd "${S}"
dohtml -r docs tools
# manually install the stylesheet file
insinto /usr/share/doc/${PF}/html
doins docutils/writers/html4css1/html4css1.css
for doc in $(find docs tools -name '*.txt')
do
install_txt_doc $doc
done
# installing Gentoo GLEP tools. Uses versioned GLEP distribution
if use glep
then
distutils_python_version
dobin ${GLEP_SRC}/glep.py || die "newbin failed"
insinto /usr/$(get_libdir)/python${PYVER}/site-packages/docutils/readers
newins ${GLEP_SRC}/glepread.py glep.py || die "newins reader failed"
insinto /usr/$(get_libdir)/python${PYVER}/site-packages/docutils/transforms
newins ${GLEP_SRC}/glepstrans.py gleps.py || die "newins transform failed"
insinto /usr/$(get_libdir)/python${PYVER}/site-packages/docutils/writers
doins -r ${GLEP_SRC}/glep_html || die "doins writer failed"
fi
}