summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuli Suominen <ssuominen@gentoo.org>2009-05-22 12:44:34 +0000
committerSamuli Suominen <ssuominen@gentoo.org>2009-05-22 12:44:34 +0000
commit9a06e20decdf6ee9fe94b825793115c8b0eac49d (patch)
treee23ad886980822a029257db54b1993868073d416 /app-text/xmlto
parentstable x86, security bug 270494 (diff)
downloadgentoo-2-9a06e20decdf6ee9fe94b825793115c8b0eac49d.tar.gz
gentoo-2-9a06e20decdf6ee9fe94b825793115c8b0eac49d.tar.bz2
gentoo-2-9a06e20decdf6ee9fe94b825793115c8b0eac49d.zip
Version bump.
(Portage version: 2.1.6.13/cvs/Linux x86_64)
Diffstat (limited to 'app-text/xmlto')
-rw-r--r--app-text/xmlto/ChangeLog10
-rw-r--r--app-text/xmlto/files/xmlto-0.0.22-format_fo_passivetex_check.patch47
-rw-r--r--app-text/xmlto/xmlto-0.0.22.ebuild44
3 files changed, 99 insertions, 2 deletions
diff --git a/app-text/xmlto/ChangeLog b/app-text/xmlto/ChangeLog
index 7b8610115f9b..519178f47ed2 100644
--- a/app-text/xmlto/ChangeLog
+++ b/app-text/xmlto/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for app-text/xmlto
-# Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-text/xmlto/ChangeLog,v 1.46 2008/09/22 14:20:37 flameeyes Exp $
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-text/xmlto/ChangeLog,v 1.47 2009/05/22 12:44:34 ssuominen Exp $
+
+*xmlto-0.0.22 (22 May 2009)
+
+ 22 May 2009; Samuli Suominen <ssuominen@gentoo.org> +xmlto-0.0.22.ebuild,
+ +files/xmlto-0.0.22-format_fo_passivetex_check.patch:
+ Version bump.
*xmlto-0.0.21 (22 Sep 2008)
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..689cae4cc457
--- /dev/null
+++ b/app-text/xmlto/files/xmlto-0.0.22-format_fo_passivetex_check.patch
@@ -0,0 +1,47 @@
+- Check for a passivetex format file and tell the user, if it's missing.
+- 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/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
+Only in xmlto-0.0.22/format/fo: dvi.orig
+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/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
+Only in xmlto-0.0.22/format/fo: pdf.orig
+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/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/xmlto-0.0.22.ebuild b/app-text/xmlto/xmlto-0.0.22.ebuild
new file mode 100644
index 000000000000..23b4c5520897
--- /dev/null
+++ b/app-text/xmlto/xmlto-0.0.22.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-text/xmlto/xmlto-0.0.22.ebuild,v 1.1 2009/05/22 12:44:34 ssuominen Exp $
+
+EAPI=2
+inherit eutils
+
+DESCRIPTION="A bash script for converting XML and DocBook formatted documents to a variety of output formats"
+HOMEPAGE="https://fedorahosted.org/xmlto/browser"
+SRC_URI="https://fedorahosted.org/releases/x/m/xmlto/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd"
+IUSE="latex"
+
+DEPEND="app-shells/bash
+ dev-libs/libxslt
+ >=app-text/docbook-xsl-stylesheets-1.62.0-r1
+ ~app-text/docbook-xml-dtd-4.2
+ || (
+ sys-apps/util-linux
+ app-misc/getopt )
+ || (
+ || ( >=sys-apps/coreutils-6.10-r1 sys-apps/mktemp )
+ sys-freebsd/freebsd-ubin )
+ latex? ( >=app-text/passivetex-1.4 )"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-format_fo_passivetex_check.patch
+}
+
+src_configure() {
+ local myconf
+ has_version sys-apps/util-linux || myconf+=" --with-getopt=getopt-long"
+ econf --prefix=/usr ${myconf}
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+ dodoc AUTHORS ChangeLog FAQ NEWS README THANKS
+ insinto /usr/share/doc/${PF}/xml
+ doins doc/*.xml
+}