summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDirkjan Ochtman <djc@gentoo.org>2011-09-04 07:25:00 +0000
committerDirkjan Ochtman <djc@gentoo.org>2011-09-04 07:25:00 +0000
commit5b203efcbb3dadf11834bae528cc5d46370c1d65 (patch)
treed5df7e29cb94a423c4a357245d505cd3cac4e5e9 /dev-python/docutils
parentVersion bump docutils to 0.8.1. (diff)
downloadgentoo-2-5b203efcbb3dadf11834bae528cc5d46370c1d65.tar.gz
gentoo-2-5b203efcbb3dadf11834bae528cc5d46370c1d65.tar.bz2
gentoo-2-5b203efcbb3dadf11834bae528cc5d46370c1d65.zip
Remove pre-release versions of docutils.
(Portage version: 2.1.10.12/cvs/Linux x86_64)
Diffstat (limited to 'dev-python/docutils')
-rw-r--r--dev-python/docutils/ChangeLog7
-rw-r--r--dev-python/docutils/docutils-0.8_pre7013.ebuild121
-rw-r--r--dev-python/docutils/docutils-0.8_pre7031.ebuild119
-rw-r--r--dev-python/docutils/docutils-0.8_pre7034.ebuild119
-rw-r--r--dev-python/docutils/docutils-0.8_pre7036.ebuild119
-rw-r--r--dev-python/docutils/docutils-0.8_pre7038.ebuild119
6 files changed, 6 insertions, 598 deletions
diff --git a/dev-python/docutils/ChangeLog b/dev-python/docutils/ChangeLog
index 99b24bcec62c..48df3f257933 100644
--- a/dev-python/docutils/ChangeLog
+++ b/dev-python/docutils/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for dev-python/docutils
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/docutils/ChangeLog,v 1.136 2011/09/04 07:23:00 djc Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/docutils/ChangeLog,v 1.137 2011/09/04 07:25:00 djc Exp $
+
+ 04 Sep 2011; Dirkjan Ochtman <djc@gentoo.org> -docutils-0.8_pre7013.ebuild,
+ -docutils-0.8_pre7031.ebuild, -docutils-0.8_pre7034.ebuild,
+ -docutils-0.8_pre7036.ebuild, -docutils-0.8_pre7038.ebuild:
+ Remove pre-release versions.
*docutils-0.8.1 (04 Sep 2011)
diff --git a/dev-python/docutils/docutils-0.8_pre7013.ebuild b/dev-python/docutils/docutils-0.8_pre7013.ebuild
deleted file mode 100644
index 6304f185fb23..000000000000
--- a/dev-python/docutils/docutils-0.8_pre7013.ebuild
+++ /dev/null
@@ -1,121 +0,0 @@
-# Copyright 1999-2011 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/docutils/docutils-0.8_pre7013.ebuild,v 1.1 2011/04/22 00:56:21 arfrever Exp $
-
-EAPI="3"
-SUPPORT_PYTHON_ABIS="1"
-
-inherit distutils eutils
-
-DESCRIPTION="Docutils - Python Documentation Utilities"
-HOMEPAGE="http://docutils.sourceforge.net/ http://pypi.python.org/pypi/docutils"
-if [[ "${PV}" == *_pre* ]]; then
- SRC_URI="mirror://gentoo/${P}.tar.xz"
-else
- SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
-fi
-SRC_URI+=" glep? ( mirror://gentoo/glep-0.4-r1.tbz2 )"
-
-LICENSE="BSD public-domain PYTHON"
-SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~sparc-fbsd ~x86-fbsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
-IUSE="emacs glep"
-
-DEPEND="dev-python/setuptools"
-RDEPEND=""
-# Avoid circular dependency.
-PDEPEND="emacs? ( || ( >=app-emacs/rst-0.4 >=virtual/emacs-23 ) )"
-
-DOCS="*.txt"
-PYTHON_MODNAME="docutils roman.py"
-
-GLEP_SRC="${WORKDIR}/glep-0.4-r1"
-
-src_prepare() {
- # Fix installation of extra modules.
- epatch "${FILESDIR}/${PN}-0.6-extra_modules.patch"
-
- epatch "${FILESDIR}/${PN}-0.7-python-3.2-configparser.patch"
-
- sed -e "s/from distutils.core/from setuptools/" -i setup.py || die "sed setup.py failed"
-}
-
-src_compile() {
- distutils_src_compile
-
- # Generate html docs from reStructured text sources.
-
- # Make roman.py available for process of building of documentation.
- ln -s extras/roman.py
-
- # Place html4css1.css in base directory to ensure that the generated reference to it is correct.
- cp docutils/writers/html4css1/html4css1.css .
-
- pushd tools > /dev/null
-
- echo PYTHONPATH="../build-$(PYTHON -f --ABI)/lib" "$(PYTHON -f)" $([[ -f ../build-$(PYTHON -f --ABI)/lib/tools/buildhtml.py ]] && echo ../build-$(PYTHON -f --ABI)/lib/tools/buildhtml.py || echo ../tools/buildhtml.py) --input-encoding=utf-8 --stylesheet-path=../html4css1.css --traceback ..
- PYTHONPATH="../build-$(PYTHON -f --ABI)/lib" "$(PYTHON -f)" $([[ -f ../build-$(PYTHON -f --ABI)/lib/tools/buildhtml.py ]] && echo ../build-$(PYTHON -f --ABI)/lib/tools/buildhtml.py || echo ../tools/buildhtml.py) --input-encoding=utf-8 --stylesheet-path=../html4css1.css --traceback .. || die "buildhtml.py failed"
-
- popd > /dev/null
-
- # Clean up after building of documentation.
- rm roman.py html4css1.css
-}
-
-src_test() {
- testing() {
- echo PYTHONPATH="build-${PYTHON_ABI}/lib" "$(PYTHON)" $([[ -f build-${PYTHON_ABI}/lib/test/alltests.py ]] && echo build-${PYTHON_ABI}/lib/test/alltests.py || echo test/alltests.py)
- PYTHONPATH="build-${PYTHON_ABI}/lib" "$(PYTHON)" $([[ -f build-${PYTHON_ABI}/lib/test/alltests.py ]] && echo build-${PYTHON_ABI}/lib/test/alltests.py || echo test/alltests.py)
- }
- python_execute_function testing
-}
-
-install_txt_doc() {
- local doc="${1}"
- local dir="txt/$(dirname ${doc})"
- docinto "${dir}"
- dodoc "${doc}"
-}
-
-src_install() {
- distutils_src_install
-
- postinstallational_preparation() {
- # Install tools.
- mkdir -p "${T}/images/${PYTHON_ABI}${EPREFIX}/usr/bin"
- pushd $([[ -d build-${PYTHON_ABI}/lib/tools ]] && echo build-${PYTHON_ABI}/lib/tools || echo tools) > /dev/null
- cp buildhtml.py quicktest.py "${T}/images/${PYTHON_ABI}${EPREFIX}/usr/bin"
- popd > /dev/null
-
- # Delete useless files, which are installed only with Python 3.
- rm -fr "${ED}$(python_get_sitedir)/"{test,tools}
- }
- python_execute_function -q postinstallational_preparation
- python_merge_intermediate_installation_images "${T}/images"
-
- # Install documentation.
- dohtml -r docs tools
-
- # Install stylesheet file.
- insinto /usr/share/doc/${PF}/html
- doins docutils/writers/html4css1/html4css1.css
- local doc
- for doc in $(find docs tools -name "*.txt"); do
- install_txt_doc "${doc}"
- done
-
- # Install Gentoo GLEP tools.
- if use glep; then
- dobin "${GLEP_SRC}/glep.py" || die "dobin failed"
-
- installation_of_glep_tools() {
- insinto $(python_get_sitedir)/docutils/readers
- newins "${GLEP_SRC}/glepread.py" glep.py || die "newins reader failed"
- insinto $(python_get_sitedir)/docutils/transforms
- newins "${GLEP_SRC}/glepstrans.py" gleps.py || die "newins transform failed"
- insinto $(python_get_sitedir)/docutils/writers
- doins -r "${GLEP_SRC}/glep_html" || die "doins writer failed"
- }
- python_execute_function --action-message 'Installation of GLEP tools with $(python_get_implementation) $(python_get_version)...' installation_of_glep_tools
- fi
-}
diff --git a/dev-python/docutils/docutils-0.8_pre7031.ebuild b/dev-python/docutils/docutils-0.8_pre7031.ebuild
deleted file mode 100644
index 0f1ef7e0cc9d..000000000000
--- a/dev-python/docutils/docutils-0.8_pre7031.ebuild
+++ /dev/null
@@ -1,119 +0,0 @@
-# Copyright 1999-2011 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/docutils/docutils-0.8_pre7031.ebuild,v 1.1 2011/05/11 14:36:27 arfrever Exp $
-
-EAPI="3"
-SUPPORT_PYTHON_ABIS="1"
-
-inherit distutils eutils
-
-DESCRIPTION="Docutils - Python Documentation Utilities"
-HOMEPAGE="http://docutils.sourceforge.net/ http://pypi.python.org/pypi/docutils"
-if [[ "${PV}" == *_pre* ]]; then
- SRC_URI="mirror://gentoo/${P}.tar.xz"
-else
- SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
-fi
-SRC_URI+=" glep? ( mirror://gentoo/glep-0.4-r1.tbz2 )"
-
-LICENSE="BSD public-domain PYTHON"
-SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~sparc-fbsd ~x86-fbsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
-IUSE="emacs glep"
-
-DEPEND="dev-python/setuptools"
-RDEPEND=""
-# Avoid circular dependency.
-PDEPEND="emacs? ( || ( >=app-emacs/rst-0.4 >=virtual/emacs-23 ) )"
-
-DOCS="*.txt"
-PYTHON_MODNAME="docutils roman.py"
-
-GLEP_SRC="${WORKDIR}/glep-0.4-r1"
-
-src_prepare() {
- # Fix installation of extra modules.
- epatch "${FILESDIR}/${PN}-0.6-extra_modules.patch"
-
- sed -e "s/from distutils.core/from setuptools/" -i setup.py || die "sed setup.py failed"
-}
-
-src_compile() {
- distutils_src_compile
-
- # Generate html docs from reStructured text sources.
-
- # Make roman.py available for process of building of documentation.
- ln -s extras/roman.py
-
- # Place html4css1.css in base directory to ensure that the generated reference to it is correct.
- cp docutils/writers/html4css1/html4css1.css .
-
- pushd tools > /dev/null
-
- echo PYTHONPATH="../build-$(PYTHON -f --ABI)/lib" "$(PYTHON -f)" $([[ -f ../build-$(PYTHON -f --ABI)/lib/tools/buildhtml.py ]] && echo ../build-$(PYTHON -f --ABI)/lib/tools/buildhtml.py || echo ../tools/buildhtml.py) --input-encoding=utf-8 --stylesheet-path=../html4css1.css --traceback ..
- PYTHONPATH="../build-$(PYTHON -f --ABI)/lib" "$(PYTHON -f)" $([[ -f ../build-$(PYTHON -f --ABI)/lib/tools/buildhtml.py ]] && echo ../build-$(PYTHON -f --ABI)/lib/tools/buildhtml.py || echo ../tools/buildhtml.py) --input-encoding=utf-8 --stylesheet-path=../html4css1.css --traceback .. || die "buildhtml.py failed"
-
- popd > /dev/null
-
- # Clean up after building of documentation.
- rm roman.py html4css1.css
-}
-
-src_test() {
- testing() {
- echo PYTHONPATH="build-${PYTHON_ABI}/lib" "$(PYTHON)" $([[ -f build-${PYTHON_ABI}/lib/test/alltests.py ]] && echo build-${PYTHON_ABI}/lib/test/alltests.py || echo test/alltests.py)
- PYTHONPATH="build-${PYTHON_ABI}/lib" "$(PYTHON)" $([[ -f build-${PYTHON_ABI}/lib/test/alltests.py ]] && echo build-${PYTHON_ABI}/lib/test/alltests.py || echo test/alltests.py)
- }
- python_execute_function testing
-}
-
-install_txt_doc() {
- local doc="${1}"
- local dir="txt/$(dirname ${doc})"
- docinto "${dir}"
- dodoc "${doc}"
-}
-
-src_install() {
- distutils_src_install
-
- postinstallational_preparation() {
- # Install tools.
- mkdir -p "${T}/images/${PYTHON_ABI}${EPREFIX}/usr/bin"
- pushd $([[ -d build-${PYTHON_ABI}/lib/tools ]] && echo build-${PYTHON_ABI}/lib/tools || echo tools) > /dev/null
- cp buildhtml.py quicktest.py "${T}/images/${PYTHON_ABI}${EPREFIX}/usr/bin"
- popd > /dev/null
-
- # Delete useless files, which are installed only with Python 3.
- rm -fr "${ED}$(python_get_sitedir)/"{test,tools}
- }
- python_execute_function -q postinstallational_preparation
- python_merge_intermediate_installation_images "${T}/images"
-
- # Install documentation.
- dohtml -r docs tools
-
- # Install stylesheet file.
- insinto /usr/share/doc/${PF}/html
- doins docutils/writers/html4css1/html4css1.css
- local doc
- for doc in $(find docs tools -name "*.txt"); do
- install_txt_doc "${doc}"
- done
-
- # Install Gentoo GLEP tools.
- if use glep; then
- dobin "${GLEP_SRC}/glep.py" || die "dobin failed"
-
- installation_of_glep_tools() {
- insinto $(python_get_sitedir)/docutils/readers
- newins "${GLEP_SRC}/glepread.py" glep.py || die "newins reader failed"
- insinto $(python_get_sitedir)/docutils/transforms
- newins "${GLEP_SRC}/glepstrans.py" gleps.py || die "newins transform failed"
- insinto $(python_get_sitedir)/docutils/writers
- doins -r "${GLEP_SRC}/glep_html" || die "doins writer failed"
- }
- python_execute_function --action-message 'Installation of GLEP tools with $(python_get_implementation) $(python_get_version)...' installation_of_glep_tools
- fi
-}
diff --git a/dev-python/docutils/docutils-0.8_pre7034.ebuild b/dev-python/docutils/docutils-0.8_pre7034.ebuild
deleted file mode 100644
index efb43c23ba96..000000000000
--- a/dev-python/docutils/docutils-0.8_pre7034.ebuild
+++ /dev/null
@@ -1,119 +0,0 @@
-# Copyright 1999-2011 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/docutils/docutils-0.8_pre7034.ebuild,v 1.1 2011/05/14 22:01:32 arfrever Exp $
-
-EAPI="3"
-SUPPORT_PYTHON_ABIS="1"
-
-inherit distutils eutils
-
-DESCRIPTION="Docutils - Python Documentation Utilities"
-HOMEPAGE="http://docutils.sourceforge.net/ http://pypi.python.org/pypi/docutils"
-if [[ "${PV}" == *_pre* ]]; then
- SRC_URI="mirror://gentoo/${P}.tar.xz"
-else
- SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
-fi
-SRC_URI+=" glep? ( mirror://gentoo/glep-0.4-r1.tbz2 )"
-
-LICENSE="BSD public-domain PYTHON"
-SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~sparc-fbsd ~x86-fbsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
-IUSE="emacs glep"
-
-DEPEND="dev-python/setuptools"
-RDEPEND=""
-# Avoid circular dependency.
-PDEPEND="emacs? ( || ( >=app-emacs/rst-0.4 >=virtual/emacs-23 ) )"
-
-DOCS="*.txt"
-PYTHON_MODNAME="docutils roman.py"
-
-GLEP_SRC="${WORKDIR}/glep-0.4-r1"
-
-src_prepare() {
- # Fix installation of extra modules.
- epatch "${FILESDIR}/${PN}-0.6-extra_modules.patch"
-
- sed -e "s/from distutils.core/from setuptools/" -i setup.py || die "sed setup.py failed"
-}
-
-src_compile() {
- distutils_src_compile
-
- # Generate html docs from reStructured text sources.
-
- # Make roman.py available for process of building of documentation.
- ln -s extras/roman.py
-
- # Place html4css1.css in base directory to ensure that the generated reference to it is correct.
- cp docutils/writers/html4css1/html4css1.css .
-
- pushd tools > /dev/null
-
- echo PYTHONPATH="../build-$(PYTHON -f --ABI)/lib" "$(PYTHON -f)" $([[ -f ../build-$(PYTHON -f --ABI)/lib/tools/buildhtml.py ]] && echo ../build-$(PYTHON -f --ABI)/lib/tools/buildhtml.py || echo ../tools/buildhtml.py) --input-encoding=utf-8 --stylesheet-path=../html4css1.css --traceback ..
- PYTHONPATH="../build-$(PYTHON -f --ABI)/lib" "$(PYTHON -f)" $([[ -f ../build-$(PYTHON -f --ABI)/lib/tools/buildhtml.py ]] && echo ../build-$(PYTHON -f --ABI)/lib/tools/buildhtml.py || echo ../tools/buildhtml.py) --input-encoding=utf-8 --stylesheet-path=../html4css1.css --traceback .. || die "buildhtml.py failed"
-
- popd > /dev/null
-
- # Clean up after building of documentation.
- rm roman.py html4css1.css
-}
-
-src_test() {
- testing() {
- echo PYTHONPATH="build-${PYTHON_ABI}/lib" "$(PYTHON)" $([[ -f build-${PYTHON_ABI}/lib/test/alltests.py ]] && echo build-${PYTHON_ABI}/lib/test/alltests.py || echo test/alltests.py)
- PYTHONPATH="build-${PYTHON_ABI}/lib" "$(PYTHON)" $([[ -f build-${PYTHON_ABI}/lib/test/alltests.py ]] && echo build-${PYTHON_ABI}/lib/test/alltests.py || echo test/alltests.py)
- }
- python_execute_function testing
-}
-
-install_txt_doc() {
- local doc="${1}"
- local dir="txt/$(dirname ${doc})"
- docinto "${dir}"
- dodoc "${doc}"
-}
-
-src_install() {
- distutils_src_install
-
- postinstallational_preparation() {
- # Install tools.
- mkdir -p "${T}/images/${PYTHON_ABI}${EPREFIX}/usr/bin"
- pushd $([[ -d build-${PYTHON_ABI}/lib/tools ]] && echo build-${PYTHON_ABI}/lib/tools || echo tools) > /dev/null
- cp buildhtml.py quicktest.py "${T}/images/${PYTHON_ABI}${EPREFIX}/usr/bin"
- popd > /dev/null
-
- # Delete useless files, which are installed only with Python 3.
- rm -fr "${ED}$(python_get_sitedir)/"{test,tools}
- }
- python_execute_function -q postinstallational_preparation
- python_merge_intermediate_installation_images "${T}/images"
-
- # Install documentation.
- dohtml -r docs tools
-
- # Install stylesheet file.
- insinto /usr/share/doc/${PF}/html
- doins docutils/writers/html4css1/html4css1.css
- local doc
- for doc in $(find docs tools -name "*.txt"); do
- install_txt_doc "${doc}"
- done
-
- # Install Gentoo GLEP tools.
- if use glep; then
- dobin "${GLEP_SRC}/glep.py" || die "dobin failed"
-
- installation_of_glep_tools() {
- insinto $(python_get_sitedir)/docutils/readers
- newins "${GLEP_SRC}/glepread.py" glep.py || die "newins reader failed"
- insinto $(python_get_sitedir)/docutils/transforms
- newins "${GLEP_SRC}/glepstrans.py" gleps.py || die "newins transform failed"
- insinto $(python_get_sitedir)/docutils/writers
- doins -r "${GLEP_SRC}/glep_html" || die "doins writer failed"
- }
- python_execute_function --action-message 'Installation of GLEP tools with $(python_get_implementation) $(python_get_version)...' installation_of_glep_tools
- fi
-}
diff --git a/dev-python/docutils/docutils-0.8_pre7036.ebuild b/dev-python/docutils/docutils-0.8_pre7036.ebuild
deleted file mode 100644
index 21143dc552d9..000000000000
--- a/dev-python/docutils/docutils-0.8_pre7036.ebuild
+++ /dev/null
@@ -1,119 +0,0 @@
-# Copyright 1999-2011 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/docutils/docutils-0.8_pre7036.ebuild,v 1.1 2011/05/16 15:20:01 arfrever Exp $
-
-EAPI="3"
-SUPPORT_PYTHON_ABIS="1"
-
-inherit distutils eutils
-
-DESCRIPTION="Docutils - Python Documentation Utilities"
-HOMEPAGE="http://docutils.sourceforge.net/ http://pypi.python.org/pypi/docutils"
-if [[ "${PV}" == *_pre* ]]; then
- SRC_URI="mirror://gentoo/${P}.tar.xz"
-else
- SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
-fi
-SRC_URI+=" glep? ( mirror://gentoo/glep-0.4-r1.tbz2 )"
-
-LICENSE="BSD public-domain PYTHON"
-SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~sparc-fbsd ~x86-fbsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
-IUSE="emacs glep"
-
-DEPEND="dev-python/setuptools"
-RDEPEND=""
-# Avoid circular dependency.
-PDEPEND="emacs? ( || ( >=app-emacs/rst-0.4 >=virtual/emacs-23 ) )"
-
-DOCS="*.txt"
-PYTHON_MODNAME="docutils roman.py"
-
-GLEP_SRC="${WORKDIR}/glep-0.4-r1"
-
-src_prepare() {
- # Fix installation of extra modules.
- epatch "${FILESDIR}/${PN}-0.6-extra_modules.patch"
-
- sed -e "s/from distutils.core/from setuptools/" -i setup.py || die "sed setup.py failed"
-}
-
-src_compile() {
- distutils_src_compile
-
- # Generate html docs from reStructured text sources.
-
- # Make roman.py available for process of building of documentation.
- ln -s extras/roman.py
-
- # Place html4css1.css in base directory to ensure that the generated reference to it is correct.
- cp docutils/writers/html4css1/html4css1.css .
-
- pushd tools > /dev/null
-
- echo PYTHONPATH="../build-$(PYTHON -f --ABI)/lib" "$(PYTHON -f)" $([[ -f ../build-$(PYTHON -f --ABI)/lib/tools/buildhtml.py ]] && echo ../build-$(PYTHON -f --ABI)/lib/tools/buildhtml.py || echo ../tools/buildhtml.py) --input-encoding=utf-8 --stylesheet-path=../html4css1.css --traceback ..
- PYTHONPATH="../build-$(PYTHON -f --ABI)/lib" "$(PYTHON -f)" $([[ -f ../build-$(PYTHON -f --ABI)/lib/tools/buildhtml.py ]] && echo ../build-$(PYTHON -f --ABI)/lib/tools/buildhtml.py || echo ../tools/buildhtml.py) --input-encoding=utf-8 --stylesheet-path=../html4css1.css --traceback .. || die "buildhtml.py failed"
-
- popd > /dev/null
-
- # Clean up after building of documentation.
- rm roman.py html4css1.css
-}
-
-src_test() {
- testing() {
- echo PYTHONPATH="build-${PYTHON_ABI}/lib" "$(PYTHON)" $([[ -f build-${PYTHON_ABI}/lib/test/alltests.py ]] && echo build-${PYTHON_ABI}/lib/test/alltests.py || echo test/alltests.py)
- PYTHONPATH="build-${PYTHON_ABI}/lib" "$(PYTHON)" $([[ -f build-${PYTHON_ABI}/lib/test/alltests.py ]] && echo build-${PYTHON_ABI}/lib/test/alltests.py || echo test/alltests.py)
- }
- python_execute_function testing
-}
-
-install_txt_doc() {
- local doc="${1}"
- local dir="txt/$(dirname ${doc})"
- docinto "${dir}"
- dodoc "${doc}"
-}
-
-src_install() {
- distutils_src_install
-
- postinstallational_preparation() {
- # Install tools.
- mkdir -p "${T}/images/${PYTHON_ABI}${EPREFIX}/usr/bin"
- pushd $([[ -d build-${PYTHON_ABI}/lib/tools ]] && echo build-${PYTHON_ABI}/lib/tools || echo tools) > /dev/null
- cp buildhtml.py quicktest.py "${T}/images/${PYTHON_ABI}${EPREFIX}/usr/bin"
- popd > /dev/null
-
- # Delete useless files, which are installed only with Python 3.
- rm -fr "${ED}$(python_get_sitedir)/"{test,tools}
- }
- python_execute_function -q postinstallational_preparation
- python_merge_intermediate_installation_images "${T}/images"
-
- # Install documentation.
- dohtml -r docs tools
-
- # Install stylesheet file.
- insinto /usr/share/doc/${PF}/html
- doins docutils/writers/html4css1/html4css1.css
- local doc
- for doc in $(find docs tools -name "*.txt"); do
- install_txt_doc "${doc}"
- done
-
- # Install Gentoo GLEP tools.
- if use glep; then
- dobin "${GLEP_SRC}/glep.py" || die "dobin failed"
-
- installation_of_glep_tools() {
- insinto $(python_get_sitedir)/docutils/readers
- newins "${GLEP_SRC}/glepread.py" glep.py || die "newins reader failed"
- insinto $(python_get_sitedir)/docutils/transforms
- newins "${GLEP_SRC}/glepstrans.py" gleps.py || die "newins transform failed"
- insinto $(python_get_sitedir)/docutils/writers
- doins -r "${GLEP_SRC}/glep_html" || die "doins writer failed"
- }
- python_execute_function --action-message 'Installation of GLEP tools with $(python_get_implementation) $(python_get_version)...' installation_of_glep_tools
- fi
-}
diff --git a/dev-python/docutils/docutils-0.8_pre7038.ebuild b/dev-python/docutils/docutils-0.8_pre7038.ebuild
deleted file mode 100644
index 3ca7518d2da9..000000000000
--- a/dev-python/docutils/docutils-0.8_pre7038.ebuild
+++ /dev/null
@@ -1,119 +0,0 @@
-# Copyright 1999-2011 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/docutils/docutils-0.8_pre7038.ebuild,v 1.1 2011/05/19 19:19:43 arfrever Exp $
-
-EAPI="3"
-SUPPORT_PYTHON_ABIS="1"
-
-inherit distutils eutils
-
-DESCRIPTION="Docutils - Python Documentation Utilities"
-HOMEPAGE="http://docutils.sourceforge.net/ http://pypi.python.org/pypi/docutils"
-if [[ "${PV}" == *_pre* ]]; then
- SRC_URI="mirror://gentoo/${P}.tar.xz"
-else
- SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
-fi
-SRC_URI+=" glep? ( mirror://gentoo/glep-0.4-r1.tbz2 )"
-
-LICENSE="BSD public-domain PYTHON"
-SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~sparc-fbsd ~x86-fbsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
-IUSE="emacs glep"
-
-DEPEND="dev-python/setuptools"
-RDEPEND=""
-# Avoid circular dependency.
-PDEPEND="emacs? ( || ( >=app-emacs/rst-0.4 >=virtual/emacs-23 ) )"
-
-DOCS="*.txt"
-PYTHON_MODNAME="docutils roman.py"
-
-GLEP_SRC="${WORKDIR}/glep-0.4-r1"
-
-src_prepare() {
- # Fix installation of extra modules.
- epatch "${FILESDIR}/${PN}-0.6-extra_modules.patch"
-
- sed -e "s/from distutils.core/from setuptools/" -i setup.py || die "sed setup.py failed"
-}
-
-src_compile() {
- distutils_src_compile
-
- # Generate html docs from reStructured text sources.
-
- # Make roman.py available for process of building of documentation.
- ln -s extras/roman.py
-
- # Place html4css1.css in base directory to ensure that the generated reference to it is correct.
- cp docutils/writers/html4css1/html4css1.css .
-
- pushd tools > /dev/null
-
- echo PYTHONPATH="../build-$(PYTHON -f --ABI)/lib" "$(PYTHON -f)" $([[ -f ../build-$(PYTHON -f --ABI)/lib/tools/buildhtml.py ]] && echo ../build-$(PYTHON -f --ABI)/lib/tools/buildhtml.py || echo ../tools/buildhtml.py) --input-encoding=utf-8 --stylesheet-path=../html4css1.css --traceback ..
- PYTHONPATH="../build-$(PYTHON -f --ABI)/lib" "$(PYTHON -f)" $([[ -f ../build-$(PYTHON -f --ABI)/lib/tools/buildhtml.py ]] && echo ../build-$(PYTHON -f --ABI)/lib/tools/buildhtml.py || echo ../tools/buildhtml.py) --input-encoding=utf-8 --stylesheet-path=../html4css1.css --traceback .. || die "buildhtml.py failed"
-
- popd > /dev/null
-
- # Clean up after building of documentation.
- rm roman.py html4css1.css
-}
-
-src_test() {
- testing() {
- echo PYTHONPATH="build-${PYTHON_ABI}/lib" "$(PYTHON)" $([[ -f build-${PYTHON_ABI}/lib/test/alltests.py ]] && echo build-${PYTHON_ABI}/lib/test/alltests.py || echo test/alltests.py)
- PYTHONPATH="build-${PYTHON_ABI}/lib" "$(PYTHON)" $([[ -f build-${PYTHON_ABI}/lib/test/alltests.py ]] && echo build-${PYTHON_ABI}/lib/test/alltests.py || echo test/alltests.py)
- }
- python_execute_function testing
-}
-
-install_txt_doc() {
- local doc="${1}"
- local dir="txt/$(dirname ${doc})"
- docinto "${dir}"
- dodoc "${doc}"
-}
-
-src_install() {
- distutils_src_install
-
- postinstallational_preparation() {
- # Install tools.
- mkdir -p "${T}/images/${PYTHON_ABI}${EPREFIX}/usr/bin"
- pushd $([[ -d build-${PYTHON_ABI}/lib/tools ]] && echo build-${PYTHON_ABI}/lib/tools || echo tools) > /dev/null
- cp buildhtml.py quicktest.py "${T}/images/${PYTHON_ABI}${EPREFIX}/usr/bin"
- popd > /dev/null
-
- # Delete useless files, which are installed only with Python 3.
- rm -fr "${ED}$(python_get_sitedir)/"{test,tools}
- }
- python_execute_function -q postinstallational_preparation
- python_merge_intermediate_installation_images "${T}/images"
-
- # Install documentation.
- dohtml -r docs tools
-
- # Install stylesheet file.
- insinto /usr/share/doc/${PF}/html
- doins docutils/writers/html4css1/html4css1.css
- local doc
- for doc in $(find docs tools -name "*.txt"); do
- install_txt_doc "${doc}"
- done
-
- # Install Gentoo GLEP tools.
- if use glep; then
- dobin "${GLEP_SRC}/glep.py" || die "dobin failed"
-
- installation_of_glep_tools() {
- insinto $(python_get_sitedir)/docutils/readers
- newins "${GLEP_SRC}/glepread.py" glep.py || die "newins reader failed"
- insinto $(python_get_sitedir)/docutils/transforms
- newins "${GLEP_SRC}/glepstrans.py" gleps.py || die "newins transform failed"
- insinto $(python_get_sitedir)/docutils/writers
- doins -r "${GLEP_SRC}/glep_html" || die "doins writer failed"
- }
- python_execute_function --action-message 'Installation of GLEP tools with $(python_get_implementation) $(python_get_version)...' installation_of_glep_tools
- fi
-}