1 |
commit: c05cd4ced17782ad0745c8002d1f921746936912 |
2 |
Author: Volkmar W. Pogatzki <gentoo <AT> pogatzki <DOT> net> |
3 |
AuthorDate: Mon Feb 22 09:20:27 2021 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Feb 27 07:44:46 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c05cd4ce |
7 |
|
8 |
app-text/xmlto: EAPI 7 |
9 |
|
10 |
Adding www-client/links as an alternative to virtual/w3m |
11 |
|
12 |
Closes: https://bugs.gentoo.org/726156 |
13 |
Package-Manager: Portage-3.0.13, Repoman-3.0.2 |
14 |
Signed-off-by: Volkmar W. Pogatzki <gentoo <AT> pogatzki.net> |
15 |
Closes: https://github.com/gentoo/gentoo/pull/19593 |
16 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
17 |
|
18 |
app-text/xmlto/xmlto-0.0.28-r4.ebuild | 42 +++++++++++++++++++++++++++++++++++ |
19 |
1 file changed, 42 insertions(+) |
20 |
|
21 |
diff --git a/app-text/xmlto/xmlto-0.0.28-r4.ebuild b/app-text/xmlto/xmlto-0.0.28-r4.ebuild |
22 |
new file mode 100644 |
23 |
index 00000000000..0c449e22a84 |
24 |
--- /dev/null |
25 |
+++ b/app-text/xmlto/xmlto-0.0.28-r4.ebuild |
26 |
@@ -0,0 +1,42 @@ |
27 |
+# Copyright 1999-2021 Gentoo Authors |
28 |
+# Distributed under the terms of the GNU General Public License v2 |
29 |
+ |
30 |
+EAPI=7 |
31 |
+ |
32 |
+DESCRIPTION="script for converting XML and DocBook documents to a variety of output formats" |
33 |
+HOMEPAGE="https://pagure.io/xmlto" |
34 |
+SRC_URI="https://releases.pagure.org/${PN}/${P}.tar.bz2" |
35 |
+ |
36 |
+LICENSE="GPL-2" |
37 |
+SLOT="0" |
38 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
39 |
+IUSE="latex text" |
40 |
+ |
41 |
+RDEPEND="app-text/docbook-xsl-stylesheets |
42 |
+ app-text/docbook-xml-dtd:4.2 |
43 |
+ dev-libs/libxslt |
44 |
+ || ( sys-apps/util-linux app-misc/getopt ) |
45 |
+ text? ( || ( virtual/w3m www-client/elinks www-client/links www-client/lynx ) ) |
46 |
+ latex? ( dev-texlive/texlive-formatsextra )" |
47 |
+# We only depend on flex when we patch the input lexer. |
48 |
+DEPEND="${RDEPEND}" |
49 |
+ |
50 |
+DOCS="AUTHORS ChangeLog FAQ NEWS README THANKS" |
51 |
+ |
52 |
+PATCHES=( "${FILESDIR}"/${PN}-0.0.22-format_fo_passivetex_check.patch ) |
53 |
+ |
54 |
+src_prepare() { |
55 |
+ default |
56 |
+ |
57 |
+ # fix symbol clash on Solaris |
58 |
+ if [[ ${CHOST} == *-solaris* ]] ; then |
59 |
+ sed -i -e 's/\(attrib\|val\)/XMLTO\1/g' xmlif/xmlif.l || die |
60 |
+ fi |
61 |
+} |
62 |
+ |
63 |
+src_configure() { |
64 |
+ # We don't want the script to detect /bin/sh if it is bash. |
65 |
+ export ac_cv_path_BASH=${BASH} |
66 |
+ has_version sys-apps/util-linux || export GETOPT=getopt-long |
67 |
+ econf |
68 |
+} |