diff options
author | Justin Lecher <jlec@gentoo.org> | 2015-03-21 10:30:37 +0000 |
---|---|---|
committer | Justin Lecher <jlec@gentoo.org> | 2015-03-21 10:30:37 +0000 |
commit | 732b601c68a55fdcde6dd38583cf2673bded2030 (patch) | |
tree | eb70128278b553bca5ea28777fab21c200f9fd8a /app-text/sgmltools-lite/sgmltools-lite-3.0.3-r14.ebuild | |
parent | Use ecvs_clean and modernize ebuild style; use EAPI=5 (diff) | |
download | historical-732b601c68a55fdcde6dd38583cf2673bded2030.tar.gz historical-732b601c68a55fdcde6dd38583cf2673bded2030.tar.bz2 historical-732b601c68a55fdcde6dd38583cf2673bded2030.zip |
Use ecvs_clean; make man packe symlinks work correctly; modernize ebuild style
Package-Manager: portage-2.2.18/cvs/Linux x86_64
Manifest-Sign-Key: 0xB9D4F231BD1558AB!
Diffstat (limited to 'app-text/sgmltools-lite/sgmltools-lite-3.0.3-r14.ebuild')
-rw-r--r-- | app-text/sgmltools-lite/sgmltools-lite-3.0.3-r14.ebuild | 93 |
1 files changed, 93 insertions, 0 deletions
diff --git a/app-text/sgmltools-lite/sgmltools-lite-3.0.3-r14.ebuild b/app-text/sgmltools-lite/sgmltools-lite-3.0.3-r14.ebuild new file mode 100644 index 000000000000..f72f7114f48a --- /dev/null +++ b/app-text/sgmltools-lite/sgmltools-lite-3.0.3-r14.ebuild @@ -0,0 +1,93 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-text/sgmltools-lite/sgmltools-lite-3.0.3-r14.ebuild,v 1.1 2015/03/21 10:30:32 jlec Exp $ + +EAPI=5 + +PYTHON_COMPAT=( python2_7 ) + +inherit python-single-r1 sgml-catalog + +DESCRIPTION="Python interface to SGML software in a DocBook/OpenJade env" +HOMEPAGE="http://sgmltools-lite.sourceforge.net/" +SRC_URI=" + mirror://sourceforge/sgmltools-lite/${P}.tar.gz + mirror://sourceforge/sgmltools-lite/nw-eps-icons-0.0.1.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" +IUSE="jadetex" + +RDEPEND="${PYTHON_DEPS} + app-text/sgml-common + app-text/docbook-sgml-dtd:3.1 + app-text/docbook-dsssl-stylesheets + app-text/openjade + jadetex? ( app-text/jadetex ) + || ( + www-client/w3m + www-client/lynx + )" +DEPEND=${RDEPEND} + +REQUIRED_USE=${PYTHON_REQUIRED_USE} + +sgml-catalog_cat_include "/etc/sgml/sgml-lite.cat" \ + "/usr/share/sgml/stylesheets/sgmltools/sgmltools.cat" + +src_prepare() { + ecvs_clean +} + +src_compile() { + default +} + +src_install() { + einstall etcdir="${D}"/etc/sgml + + dodoc ChangeLog POSTINSTALL README* + dohtml -r . + + insinto /usr/share/sgml/docbook/dsssl-stylesheets/ + doins -r "${WORKDIR}"/nw-eps-icons-0.0.1/images + + rm "${ED}"/etc/sgml/catalog.{suse,rh62} || die + + # Remove file provided by sgml-common + rm "${ED}"/usr/bin/sgmlwhich || die + + # List of backends to alias with sgml2* + # Do not provide sgml2{txt,rtf,html} anymore, they are part of + # linuxdoc-tools + local BACKENDS="" + if use jadetex; then + BACKENDS="ps dvi pdf" + else + # Remove the backends that require jadetex + rm "${D}"/usr/share/sgml/misc/sgmltools/python/backends/{Dvi,Ps,Pdf,JadeTeX}.py || die + fi + + # Create simple alias scripts that people are used to + # And make the manpages for those link to the sgmltools-lite manpage + mandir="${D}"/usr/share/man/man1 + ScripTEXT="#!/bin/sh\n/usr/bin/sgmltools --backend=" + for back in ${BACKENDS}; do + echo -e ${ScripTEXT}${back} '$*' > sgml2${back} + dobin sgml2${back} + + ln -sf sgmltools-lite.1 "${mandir}/sgml2${back}.1" || die + done + + python_fix_shebang "${D}" + python_optimize "${ED%/}/usr/share/sgml/misc/sgmltools/python" +} + +pkg_postinst() { + sgml-catalog_pkg_postinst +} + +pkg_postrm() { + sgml-catalog_pkg_postrm +} |