diff options
author | 2012-05-08 12:12:33 +0000 | |
---|---|---|
committer | 2012-05-08 12:12:33 +0000 | |
commit | 0cb4d19ed9c4b9065877d6660a32f8da2d995ad1 (patch) | |
tree | 23b07d891872279082b411d907cf077053e12fa8 /dev-python/docutils | |
parent | ppc/ppc64 stable wrt #386065 (diff) | |
download | gentoo-2-0cb4d19ed9c4b9065877d6660a32f8da2d995ad1.tar.gz gentoo-2-0cb4d19ed9c4b9065877d6660a32f8da2d995ad1.tar.bz2 gentoo-2-0cb4d19ed9c4b9065877d6660a32f8da2d995ad1.zip |
Drop old
(Portage version: 2.2.0_alpha101/cvs/Linux x86_64)
Diffstat (limited to 'dev-python/docutils')
-rw-r--r-- | dev-python/docutils/ChangeLog | 5 | ||||
-rw-r--r-- | dev-python/docutils/docutils-0.7.ebuild | 134 |
2 files changed, 4 insertions, 135 deletions
diff --git a/dev-python/docutils/ChangeLog b/dev-python/docutils/ChangeLog index 737fe616de87..ffa8cde433ab 100644 --- a/dev-python/docutils/ChangeLog +++ b/dev-python/docutils/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for dev-python/docutils # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/docutils/ChangeLog,v 1.149 2012/05/08 12:11:36 xarthisius Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/docutils/ChangeLog,v 1.150 2012/05/08 12:12:33 xarthisius Exp $ + + 08 May 2012; Kacper Kowalik <xarthisius@gentoo.org> -docutils-0.7.ebuild: + Drop old 08 May 2012; Kacper Kowalik <xarthisius@gentoo.org> docutils-0.8.1.ebuild: ppc/ppc64 stable wrt #386065 diff --git a/dev-python/docutils/docutils-0.7.ebuild b/dev-python/docutils/docutils-0.7.ebuild deleted file mode 100644 index 187f687b7ccf..000000000000 --- a/dev-python/docutils/docutils-0.7.ebuild +++ /dev/null @@ -1,134 +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.7.ebuild,v 1.20 2011/12/03 18:18:05 hwoarang Exp $ - -EAPI="3" -SUPPORT_PYTHON_ABIS="1" - -inherit distutils eutils - -DESCRIPTION="Set of python tools for processing plaintext docs into HTML, XML, etc..." -HOMEPAGE="http://docutils.sourceforge.net/ http://pypi.python.org/pypi/docutils" -SRC_URI="mirror://sourceforge/docutils/${P}.tar.gz - glep? ( mirror://gentoo/glep-0.4-r1.tbz2 )" - -LICENSE="BSD PSF-2 public-domain" -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="glep" - -DEPEND=">=app-shells/bash-4 - dev-python/setuptools" -RDEPEND="" - -DOCS="*.txt" -PYTHON_MODNAME="docutils roman.py" - -GLEP_SRC="${WORKDIR}/glep-0.4-r1" - -pkg_setup() { - python_pkg_setup -} - -src_prepare() { - # Delete internal copies of optparse and textwrap modules. - rm -f extras/{optparse.py,textwrap.py} - - # Fix installation of extra modules. - epatch "${FILESDIR}/${PN}-0.6-extra_modules.patch" - - epatch "${FILESDIR}/${P}-python-3.2-configparser.patch" - epatch "${FILESDIR}/${P}-python-3.2-xml.etree.ElementTree.patch" - - epatch "${FILESDIR}/${P}-encoding.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 the doc building process - ln -s extras/roman.py - - # Place html4css1.css in base directory. This makes sure 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 the doc building. - 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 - - declare -A tools=() - - postinstallational_preparation() { - # Install tools. - pushd $([[ -d build-${PYTHON_ABI}/lib/tools ]] && echo build-${PYTHON_ABI}/lib/tools || echo tools) > /dev/null - local tool - for tool in *.py; do - newbin "${tool}" "${tool}-${PYTHON_ABI}" - python_convert_shebangs -q $(python_get_version) "${ED}usr/bin/${tool}-${PYTHON_ABI}" - tools+=(["${ED}usr/bin/${tool}"]=) - done - 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_generate_wrapper_scripts -f -q "${!tools[@]}" - - # 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 -} |