Version bump (bug # 95875), with new glep tarball. Dropped "docutils-" prefix
authorGrant Goodyear <g2boojum@gentoo.org>
Sat, 3 Sep 2005 17:16:19 +0000 (17:16 +0000)
committerGrant Goodyear <g2boojum@gentoo.org>
Sat, 3 Sep 2005 17:16:19 +0000 (17:16 +0000)
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.
Package-Manager: portage-2.0.51.22-r2

dev-python/docutils/ChangeLog
dev-python/docutils/Manifest
dev-python/docutils/docutils-0.3.9.ebuild [new file with mode: 0644]
dev-python/docutils/files/digest-docutils-0.3.9 [new file with mode: 0644]

index c119683ea6ba642bcaf6163542bfaac4dc6c98d0..02741f0f2c887608eaa8e1436e676f83acaad09d 100644 (file)
@@ -1,6 +1,15 @@
 # ChangeLog for dev-python/docutils
 # Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/docutils/ChangeLog,v 1.28 2005/07/11 05:44:53 mkennedy Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/docutils/ChangeLog,v 1.29 2005/09/03 17:16:19 g2boojum Exp $
+
+*docutils-0.3.9 (03 Sep 2005)
+
+  03 Sep 2005; Grant Goodyear <g2boojum@gentoo.org> +docutils-0.3.9.ebuild:
+  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 <mkennedy@gentoo.org>
   +files/50docutils-gentoo.el, docutils-0.3.7.ebuild:
index 6c3632f926e4319e35a472256f82800ec42aa1f8..e3d1346e8101ccf2b0a203517a1d8e505d42f584 100644 (file)
@@ -1,39 +1,41 @@
 -----BEGIN PGP SIGNED MESSAGE-----
 Hash: SHA1
 
+MD5 7d8c0c915c55000cf20bf41dde2d57da ChangeLog 5104
+MD5 32c18f62ef442534b43d411bfd8c40a6 docutils-0.3-r1.ebuild 1770
 MD5 dddf09e76c6f943ebc4931e2ff794320 docutils-0.3.3-r1.ebuild 1903
-MD5 71c4638c9c88af75b58e5f5cb54fe008 metadata.xml 159
+MD5 7a80c164de47f6baee59a6582f4cb3f1 docutils-0.3.5.ebuild 1963
 MD5 f44c6ce48ebfec9973f98fb4b54f5f42 docutils-0.3.7.ebuild 2475
 MD5 74a7b1584824888016191380b65cea31 docutils-0.3_pre20030530-r3.ebuild 1541
-MD5 7a80c164de47f6baee59a6582f4cb3f1 docutils-0.3.5.ebuild 1963
-MD5 2011493bb728185f1ae24e2785dd7d64 ChangeLog 4610
-MD5 32c18f62ef442534b43d411bfd8c40a6 docutils-0.3-r1.ebuild 1770
-MD5 a88bbfee1135288043eeffcb178fab00 files/digest-docutils-0.3.5 124
-MD5 e3fa7c72245aae7d90beef3bf411583b files/glep_htmlwrite.py 4162
+MD5 71c4638c9c88af75b58e5f5cb54fe008 metadata.xml 159
+MD5 b52d31602ec99300c3ef0e54e76f6421 docutils-0.3.9.ebuild 2448
 MD5 694b883b9a8f714dc375a547cdf62b1d files/digest-docutils-0.3-r1 64
 MD5 d30e8a9c7f49c164696893c2f39f41ee files/digest-docutils-0.3.3-r1 72
+MD5 a88bbfee1135288043eeffcb178fab00 files/digest-docutils-0.3.5 124
+MD5 90906547cd2223248f6619d44b7fb688 files/digest-docutils-0.3.7 124
 MD5 8c6d9ea3ddd2e36b369112ee20b660fb files/digest-docutils-0.3_pre20030530-r3 73
 MD5 7c025532adb8b09116980747be7ccc61 files/docutils-0.3-extramodules.patch 1155
-MD5 90906547cd2223248f6619d44b7fb688 files/digest-docutils-0.3.7 124
-MD5 9d184e504ea5367a9309b9a1691d5147 files/docutils-0.3.5-extramodules.patch 1163
 MD5 fd7797bcc6dfaac58ec5408e4e3dac99 files/docutils-0.3.3-extramodules.patch 1159
-MD5 0a2c7c1478f8b72f97b3d12534b4159e files/glepread.py 1647
-MD5 4787b6c5e6678d3f211ec7f8ec71aa03 files/glep.py 699
+MD5 9d184e504ea5367a9309b9a1691d5147 files/docutils-0.3.5-extramodules.patch 1163
 MD5 4be747a533a3ba63b1cad7ced8b8ba04 files/docutils-0.3.7-extramodules.patch 1163
-MD5 dac9480a7b5144f60cb48675c654f5a3 files/50docutils-gentoo.el 280
+MD5 4787b6c5e6678d3f211ec7f8ec71aa03 files/glep.py 699
+MD5 e3fa7c72245aae7d90beef3bf411583b files/glep_htmlwrite.py 4162
+MD5 0a2c7c1478f8b72f97b3d12534b4159e files/glepread.py 1647
 MD5 fded948d9eac24154eab24b2b56d15d6 files/glepstrans.py 10420
-MD5 a273d63de34b5da93a15764998c054d2 files/glep-0.3-r1/glep_htmlwrite.py 4168
+MD5 dac9480a7b5144f60cb48675c654f5a3 files/50docutils-gentoo.el 280
+MD5 25c0102e3a347e2b80d72a778ae0549d files/digest-docutils-0.3.9 124
 MD5 d6fc669e125324930e72f2421779a5c2 files/glep-0.3-r1/glepread.py 1647
 MD5 770e48a59980bce89ab956ab96396a7c files/glep-0.3-r1/glep.py 699
+MD5 a273d63de34b5da93a15764998c054d2 files/glep-0.3-r1/glep_htmlwrite.py 4168
 MD5 52f6ec87bfa6c5c8ec86c85e2a2ed58a files/glep-0.3-r1/glepstrans.py 10428
-MD5 bacb84b99614ef28729cb5adf4763242 files/glep-0.3.3/glep_htmlwrite.py 3246
 MD5 f3c575d69568fafe2159283355e7efc0 files/glep-0.3.3/glepread.py 1833
 MD5 8a92d518608c84c83ce14ac840f96834 files/glep-0.3.3/glep.py 699
+MD5 bacb84b99614ef28729cb5adf4763242 files/glep-0.3.3/glep_htmlwrite.py 3246
 MD5 bba4f5a38311f907d4ddb4a5514099ea files/glep-0.3.3/glepstrans.py 10898
 -----BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.4.2 (GNU/Linux)
+Version: GnuPG v1.4.1 (GNU/Linux)
 
-iD8DBQFDDP8HgIKl8Uu19MoRAsRDAJ9Seg+kY809T5P1GMX6E1I9vqGHSACfYSuR
-SCG2haOuygkoUW3nFWcXnbo=
-=X49q
+iD8DBQFDGdp/DAg8Nbq0d9kRArMyAJ0SEEe7uIWFj6hl3RKIlxI7MobSlACgnvcq
+UMusbuDBcfu+Lx2LtNjHw1Q=
+=qcmX
 -----END PGP SIGNATURE-----
diff --git a/dev-python/docutils/docutils-0.3.9.ebuild b/dev-python/docutils/docutils-0.3.9.ebuild
new file mode 100644 (file)
index 0000000..276be76
--- /dev/null
@@ -0,0 +1,98 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/docutils/docutils-0.3.9.ebuild,v 1.1 2005/09/03 17:16:19 g2boojum Exp $
+
+inherit distutils eutils elisp-common
+
+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 ~hppa ~mips ~ppc ~ppc-macos ~sparc ~x86"
+IUSE="glep emacs"
+DEPEND=">=dev-lang/python-2.3
+       emacs? ( virtual/emacs )"
+
+EMP=${PN}-0.3.7
+SITEFILE=50docutils-gentoo.el
+
+GLEP_SRC=${WORKDIR}/glep-${PV}
+
+src_unpack() {
+       unpack ${A}
+       # simplified algorithm to select installing optparse and textwrap
+       cd ${S}
+       epatch ${FILESDIR}/${EMP}-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
+       ./alltests.py || die "alltests.py failed"
+}
+
+src_install() {
+       cd ${S}
+       mydoc="*.txt"
+       distutils_src_install
+       # Tools
+       cd ${S}/tools
+       for tool in *.py
+       do
+               dobin ${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/lib/python${PYVER}/site-packages/docutils/readers
+               newins ${GLEP_SRC}/glepread.py glep.py || die "newins reader failed"
+               insinto /usr/lib/python${PYVER}/site-packages/docutils/transforms
+               newins ${GLEP_SRC}/glepstrans.py gleps.py || "newins transform failed"
+               insinto /usr/lib/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
+}
+
+pkg_postrm() {
+       use emacs && elisp-site-regen
+}
diff --git a/dev-python/docutils/files/digest-docutils-0.3.9 b/dev-python/docutils/files/digest-docutils-0.3.9
new file mode 100644 (file)
index 0000000..200bc0f
--- /dev/null
@@ -0,0 +1,2 @@
+MD5 3b6727e4f53e88ae7cea7c296694fc6c docutils-0.3.9.tar.gz 692056
+MD5 ef195baac9846871772a4f44109e9ac6 glep-0.3.9.tbz2 5077