summaryrefslogtreecommitdiff
path: root/app-text/sgmltools-lite
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /app-text/sgmltools-lite
reinit the tree, so we can have metadata
Diffstat (limited to 'app-text/sgmltools-lite')
-rw-r--r--app-text/sgmltools-lite/Manifest6
-rw-r--r--app-text/sgmltools-lite/metadata.xml13
-rw-r--r--app-text/sgmltools-lite/sgmltools-lite-3.0.3-r14.ebuild92
3 files changed, 111 insertions, 0 deletions
diff --git a/app-text/sgmltools-lite/Manifest b/app-text/sgmltools-lite/Manifest
new file mode 100644
index 000000000000..bfb2d4b69dbb
--- /dev/null
+++ b/app-text/sgmltools-lite/Manifest
@@ -0,0 +1,6 @@
+DIST nw-eps-icons-0.0.1.tar.gz 8733 SHA256 15295129f1ddd3bc1d09775296bf0aacef722799394189b0755acb3d1725c012 SHA512 597062e9882bb9bb73144bbdb056c3ccc2a6d99efc7da836f483ccd6f3799705bcbb897099cb1a580c8e22d936d281d95c3a875694f8e15b6989faf437f6cc7a WHIRLPOOL 8aba320641c652e38ad4e87a48ac5f5454ded681ec1d9fc4a2430e272e3a6b9d6f230c4ede9e02d8df2f4f711bee33b2e7929f96871a685d17aa52a5ef3cdbf5
+DIST sgmltools-lite-3.0.3.tar.gz 61342 SHA256 eb9d2270f9ac5f17b8bd2d27f53ae700937365079413843fe5089c9568d0f1d8 SHA512 36709ba726859b734a7402c533ba7d2abc0546007bc97dba76ac824bc42f6f8ac7ef263b3740d0be51749cbc0982d010ba938646fca2006fa2c5094a296b3c81 WHIRLPOOL 46a94114a04c54a19f1d6a37a35bfb30804b1fde8defc931b9464980600b2707ca9ea970632d5d793dee1bbd0a388ef3e64a8be2806093e33dca4eb7bfd4c7d3
+EBUILD sgmltools-lite-3.0.3-r14.ebuild 2205 SHA256 8f0d36e90dcb1015ebf23eb4f956cb259ae37b34fabc740a12270e82cd86be78 SHA512 f1cf3035547d1626ace249218a75399e7ad9374f60de3203003393418324628dce27f28cd608f4a4c310306d36043a6856db273307c8ec5a9a3642307e1cb351 WHIRLPOOL 5029b71f51201efce66a5c21851b46e323c99ecde9d97bab6afdfcb2e60ce0ced89c6e746b123ef5ffb0e910e5b444ce86672d06cc1442acacaf88a6eefd9dc4
+MISC ChangeLog 2551 SHA256 670b9577aa1904d60b10c868be744d7b28c3ea1e47c6eccb0a1281a73c584fe8 SHA512 b32097ce8646235c69333eca3e8f274ac31a39993abb4cefbaa39d49a97d9a763e9a9e0e928df21ebcd9924910c2ec1fc226947940e1eecc5a757dce42bed450 WHIRLPOOL 9a688373ba0bb90ead553b142a644a843d4f53b8fce7c53893d3863f5ae31dd21fe31b109eda3864a0668518f48b2f52d5e672d77fd370879ce9632e4fecc7cf
+MISC ChangeLog-2015 11996 SHA256 d2ca87dccc057c839693b7c1991f88e673ce4ba0019e4c07978e540f19d12a15 SHA512 b93af698d6cdfbe5eff13296f7cb4e05ac4d921e18d1e13bc9a3a99ccbca97359109644f90e5177528227b85eecd0e02ecd732f084fd7857a1525e68be442084 WHIRLPOOL 571703e729b3038722dd53f550a14c2dc8cf61550e567a1c96cdf66d5aa1064df688d74e9747ac3abedaf26426e54061290caaf99240c554a253a8f6ac192298
+MISC metadata.xml 411 SHA256 d62c1c62bf76a3653f3d6926747edc97771db0b26af331decf1b1f5e9f394ee7 SHA512 411e4e0cdd20140b2334c00fc27ecafe637a02570808336250bef84240c478a994f780dec21170bacde605abda04ee27ffc937c3555b47080575713e308950e7 WHIRLPOOL 40903ef3f7fee9d3be5614358269fadd89524872e911f30c06ec350958e35fd545f74ba41c9dc7a3594b5030d7e879032e4ff4da14a448b74b088f671adaad80
diff --git a/app-text/sgmltools-lite/metadata.xml b/app-text/sgmltools-lite/metadata.xml
new file mode 100644
index 000000000000..829e9064a191
--- /dev/null
+++ b/app-text/sgmltools-lite/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <!-- maintainer-needed -->
+ <use>
+ <flag name="jadetex">Add support for <pkg>app-text/jadetex</pkg>
+ (for processing tex files produced by the TeX backend of
+ Jade)</flag>
+ </use>
+ <upstream>
+ <remote-id type="sourceforge">sgmltools-lite</remote-id>
+ </upstream>
+</pkgmetadata>
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..533ea51065bf
--- /dev/null
+++ b/app-text/sgmltools-lite/sgmltools-lite-3.0.3-r14.ebuild
@@ -0,0 +1,92 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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
+}