summaryrefslogtreecommitdiff
path: root/app-text/xmlto
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/xmlto
reinit the tree, so we can have metadata
Diffstat (limited to 'app-text/xmlto')
-rw-r--r--app-text/xmlto/Manifest8
-rw-r--r--app-text/xmlto/files/xmlto-0.0.22-format_fo_passivetex_check.patch46
-rw-r--r--app-text/xmlto/metadata.xml8
-rw-r--r--app-text/xmlto/xmlto-0.0.26-r1.ebuild40
-rw-r--r--app-text/xmlto/xmlto-0.0.28-r1.ebuild40
5 files changed, 142 insertions, 0 deletions
diff --git a/app-text/xmlto/Manifest b/app-text/xmlto/Manifest
new file mode 100644
index 000000000000..670a1f91d970
--- /dev/null
+++ b/app-text/xmlto/Manifest
@@ -0,0 +1,8 @@
+AUX xmlto-0.0.22-format_fo_passivetex_check.patch 2286 SHA256 64c1df49f92a44d4219c10b60e60bee34063fc6b99ae5f0ed1b14e11b27ea16d SHA512 c8eeb3dc909431dd2fb9f5286b6ee98a40dce80a29606a9884bdab50c039ac90097720b9b968dfac76546492844de0b72f2f6c937da14b47142ad81b897023f4 WHIRLPOOL ae83df73b7682f05b6e048aa7908331ef5b1ece0f2a40dfb968bfadd1991611fb998edd33dcef2984f0e5259e11a597a1620f9025a1f2d98554bd96da52b18be
+DIST xmlto-0.0.26.tar.bz2 119819 SHA256 efb49b2fb3bc27c1a1e24fe34abf19b6bf6cbb40844e6fd58034cdf21c54b5ec SHA512 85110f22a7b5a5c8de4115ae5d0391645a223191b17455a4f9539b02f56f7003fd4ba70e48f0e5e46cdb91220a9027802e725f88ca8659e3ce1576f8609ccd18 WHIRLPOOL f7ded4ceb65adcfc7c06bfdb8a3d22ca7195c098b5bcf26b3884111f536b72efbf5e642eeeee8be17d4a33db3accc139d78178dba2fe5a98037712048c2410e4
+DIST xmlto-0.0.28.tar.bz2 127921 SHA256 1130df3a7957eb9f6f0d29e4aa1c75732a7dfb6d639be013859b5c7ec5421276 SHA512 6e0c4968d4f1b7a3b132904182aa72a73f6167553eabdeb65cfafa6295ef7b960541685769d04144207963cca77b0c44db4f9fbb2796348ffcb37b3b399f18f1 WHIRLPOOL 4adbd66f85ed0ca90cb122dc08f9817d82e0b2bd417ae2ca8bb97e1fa3e301ab344d1ff9b9dec8571a6a519f1e0a80f0ce133d2618a211a64b0982c0b2b8c5f6
+EBUILD xmlto-0.0.26-r1.ebuild 1394 SHA256 27aee9ffd5aef12b1695d0849ba15d00442e15a070ba9f88233a8c17edf0aa89 SHA512 464125df8e6123886a7bb032544460e34d3fac328800f8a099fa3bbbfe162b2bfc2accc5dee39c65a11dc57e49523a7f8bea4a72a7b534487e92d9a7d24a5c56 WHIRLPOOL 74b0b2b21ed7003c410d3e7d809b5442816585771951dd94386bc94f2606c142a286f376e9e22b67d0a449ed5396b2bf982606bb74274f42b3882c73206f4437
+EBUILD xmlto-0.0.28-r1.ebuild 1406 SHA256 861137815545632fb61d697b9b641a19e4f6f40b0fd09adf78505d641ccff3e3 SHA512 e7c6e876c892f9596c19fd10f06b5d8d69f92ab55c9cf92624a1c87545c737bbc8f57ac8b952c02985c4a6385b42d97c0b904515120b0369cc0714f478eccc21 WHIRLPOOL c2334262be9de0538c0caaf02e6b3e7957e2412fc7c72e9a216924cf09cd2a453d3e1376e06842b20946016a7ac3e97ffd16bae21dfe3304cb7fa174ec14f3f1
+MISC ChangeLog 3521 SHA256 8b2e90c61add15760ba829b26949e4533f30ae5fbf1240331efa38bbf5a26463 SHA512 4b5aef60fcf5d0afcdafe36e99abe9e3eb5892279e3dca2302eb08307aae1192d301786fa1eb25bb84a7f6d38468fb671f6b8e859bf2beb397d57e4685d7868f WHIRLPOOL 3d31d93b06d6d0650c8175a12186060654635333b3362e1bfe31bcab5154c36eba256a9efcb990071eead8cab68bd6490875feb727a1d7d921c033dd4ab69048
+MISC ChangeLog-2015 12889 SHA256 664e2564cde09621649415b636efae8d8b846c5eaef9dea2eccc321b519721dc SHA512 962a84dc23501ed2699789e4383ff4085b9d14353f6375254bbdec8de766a34b106eeb1f859a4f7dc28209311443c12911b7362e5520bf9a5e42d9700bfcb96c WHIRLPOOL 30dcbad24d85623a3cce1607d6a4181ee34a8f3847a2c1b0589035ac9ce511d2802c6f167c904dbb4985c70563d934265a55f03867751b542d40a613993bfbcf
+MISC metadata.xml 247 SHA256 8afdfa1e3d4e32c0657326871389067326bcc1dc1ca57efd4165808c6c649ffc SHA512 f2b92e9bda8e4466d98436c15ee46b2a382afa4bfcf868678bb245abda936298ed41d03f3dcf5a61000ae1b1031a5578635e15293d63c531773d6a42d356af47 WHIRLPOOL 0e83d34a4f68934b022a4e0fcd3b60de44a8149fd6faf62176d15288eac700ca1b62de073912f7a2e61bfb2023e1ac1e8364642576135e0c631229fb3603e809
diff --git a/app-text/xmlto/files/xmlto-0.0.22-format_fo_passivetex_check.patch b/app-text/xmlto/files/xmlto-0.0.22-format_fo_passivetex_check.patch
new file mode 100644
index 000000000000..6c3dc7ce5127
--- /dev/null
+++ b/app-text/xmlto/files/xmlto-0.0.22-format_fo_passivetex_check.patch
@@ -0,0 +1,46 @@
+- Check for a passivetex format file and tell the user, if it's missing.
+- Modified to use texmf-site directory by ssuominen at gentoo.org.
+- http://bugs.debian.org/190840
+
+diff -ur xmlto-0.0.22.orig/format/fo/dvi xmlto-0.0.22/format/fo/dvi
+--- xmlto-0.0.22.orig/format/fo/dvi 2009-03-20 10:28:02.000000000 +0200
++++ xmlto-0.0.22/format/fo/dvi 2009-05-22 15:20:33.000000000 +0300
+@@ -11,6 +11,10 @@
+ echo >&2 "Can't process, xmltex tool not found at $XMLTEX_PATH."
+ exit 3
+ fi
++ if [ ! -f /usr/share/texmf-site/tex/xmltex/passivetex/fotex.xmt ]; then
++ printf "PassiveTeX is needed for this format, but it is not installed. Please install\nthe passivetex package.\n"
++ exit 1
++ fi
+ # Work around stupid tetex bug with '_' in filenames
+ # Also work around stupid tetex limitation with long lines (bug #101055)
+ sed -e "s,/>,\n/>,g" "$XSLT_PROCESSED" >tmp.fo
+diff -ur xmlto-0.0.22.orig/format/fo/pdf xmlto-0.0.22/format/fo/pdf
+--- xmlto-0.0.22.orig/format/fo/pdf 2009-03-20 10:28:33.000000000 +0200
++++ xmlto-0.0.22/format/fo/pdf 2009-05-22 15:20:33.000000000 +0300
+@@ -13,6 +13,10 @@
+ echo >&2 "Can't process, pdfxmltex tool not found at $PDFXMLTEX_PATH."
+ exit 3
+ fi
++ if [ ! -f /usr/share/texmf-site/tex/xmltex/passivetex/fotex.xmt ]; then
++ printf "PassiveTeX is needed for this format, but it is not installed. Please install\nthe passivetex package.\n"
++ exit 1
++ fi
+ # Work around stupid tetex bug with '_' in filenames
+ # Also work around stupid tetex limitation with long lines (bug #101055)
+ sed -e "s,/>,\n/>,g" "$XSLT_PROCESSED" >tmp.fo
+diff -ur xmlto-0.0.22.orig/format/fo/ps xmlto-0.0.22/format/fo/ps
+--- xmlto-0.0.22.orig/format/fo/ps 2009-03-17 18:39:52.000000000 +0200
++++ xmlto-0.0.22/format/fo/ps 2009-05-22 15:20:33.000000000 +0300
+@@ -8,6 +8,10 @@
+ then
+ echo >&2 "Post-process XSL-FO to DVI"
+ fi
++ if [ ! -f /usr/share/texmf-site/tex/xmltex/passivetex/fotex.xmt ]; then
++ printf "PassiveTeX is needed for this format, but it is not installed. Please install\nthe passivetex package.\n"
++ exit 1
++ fi
+ # Work around stupid tetex bug with '_' in filenames
+ # Also work around stupid tetex limitation with long lines (bug #101055)
+ sed -e "s,/>,\n/>,g" "$XSLT_PROCESSED" >tmp.fo
diff --git a/app-text/xmlto/metadata.xml b/app-text/xmlto/metadata.xml
new file mode 100644
index 000000000000..a6f3fe89fa47
--- /dev/null
+++ b/app-text/xmlto/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<!-- maintainer-needed -->
+<use>
+ <flag name="text">Support conversion from XML to plain text</flag>
+</use>
+</pkgmetadata>
diff --git a/app-text/xmlto/xmlto-0.0.26-r1.ebuild b/app-text/xmlto/xmlto-0.0.26-r1.ebuild
new file mode 100644
index 000000000000..a09fe62fa98f
--- /dev/null
+++ b/app-text/xmlto/xmlto-0.0.26-r1.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils
+
+DESCRIPTION="script for converting XML and DocBook documents to a variety of output formats"
+HOMEPAGE="https://fedorahosted.org/xmlto/"
+SRC_URI="https://fedorahosted.org/releases/${PN:0:1}/${PN:1:1}/${PN}/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x86-solaris"
+IUSE="latex text"
+
+RDEPEND=">=app-text/docbook-xsl-stylesheets-1.62.0-r1
+ app-text/docbook-xml-dtd:4.2
+ app-shells/bash:0
+ dev-libs/libxslt
+ sys-apps/sed
+ || ( >=sys-apps/coreutils-6.10-r1 sys-freebsd/freebsd-ubin )
+ || ( sys-apps/util-linux app-misc/getopt )
+ || ( sys-apps/which sys-freebsd/freebsd-ubin )
+ text? ( || ( virtual/w3m www-client/lynx www-client/links ) )
+ latex? ( >=app-text/passivetex-1.25 >=dev-tex/xmltex-1.9-r2 )"
+# We only depend on flex when we patch the imput lexer.
+DEPEND="${RDEPEND}"
+
+DOCS="AUTHORS ChangeLog FAQ NEWS README THANKS"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-0.0.22-format_fo_passivetex_check.patch
+}
+
+src_configure() {
+ # We don't want the script to detect /bin/sh if it is bash.
+ export ac_cv_path_BASH=/bin/bash
+ has_version sys-apps/util-linux || export GETOPT=getopt-long
+ econf
+}
diff --git a/app-text/xmlto/xmlto-0.0.28-r1.ebuild b/app-text/xmlto/xmlto-0.0.28-r1.ebuild
new file mode 100644
index 000000000000..2e79b5582e6f
--- /dev/null
+++ b/app-text/xmlto/xmlto-0.0.28-r1.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils
+
+DESCRIPTION="script for converting XML and DocBook documents to a variety of output formats"
+HOMEPAGE="https://fedorahosted.org/xmlto/"
+SRC_URI="https://fedorahosted.org/releases/${PN:0:1}/${PN:1:1}/${PN}/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x86-solaris"
+IUSE="latex text"
+
+RDEPEND=">=app-text/docbook-xsl-stylesheets-1.62.0-r1
+ app-text/docbook-xml-dtd:4.2
+ app-shells/bash:0
+ dev-libs/libxslt
+ sys-apps/sed
+ || ( >=sys-apps/coreutils-6.10-r1 sys-freebsd/freebsd-ubin )
+ || ( sys-apps/util-linux app-misc/getopt )
+ || ( sys-apps/which sys-freebsd/freebsd-ubin )
+ text? ( || ( virtual/w3m www-client/lynx www-client/elinks ) )
+ latex? ( >=app-text/passivetex-1.25 >=dev-tex/xmltex-1.9-r2 )"
+# We only depend on flex when we patch the imput lexer.
+DEPEND="${RDEPEND}"
+
+DOCS="AUTHORS ChangeLog FAQ NEWS README THANKS"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-0.0.22-format_fo_passivetex_check.patch
+}
+
+src_configure() {
+ # We don't want the script to detect /bin/sh if it is bash.
+ export ac_cv_path_BASH=${BASH}
+ has_version sys-apps/util-linux || export GETOPT=getopt-long
+ econf
+}