1 |
commit: ffb5f0b94d7db3816984820506d0d3c3538324cb |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Sep 4 11:40:24 2019 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Sep 11 17:57:32 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ffb5f0b9 |
7 |
|
8 |
app-text/linuxdoc-tools: Bump to EAPI 7, use sgml-catalog-r1 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
.../linuxdoc-tools/linuxdoc-tools-0.9.73-r1.ebuild | 86 ++++++++++++++++++++++ |
13 |
1 file changed, 86 insertions(+) |
14 |
|
15 |
diff --git a/app-text/linuxdoc-tools/linuxdoc-tools-0.9.73-r1.ebuild b/app-text/linuxdoc-tools/linuxdoc-tools-0.9.73-r1.ebuild |
16 |
new file mode 100644 |
17 |
index 00000000000..4f2129a2644 |
18 |
--- /dev/null |
19 |
+++ b/app-text/linuxdoc-tools/linuxdoc-tools-0.9.73-r1.ebuild |
20 |
@@ -0,0 +1,86 @@ |
21 |
+# Copyright 1999-2019 Gentoo Authors |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+ |
24 |
+EAPI=7 |
25 |
+ |
26 |
+inherit autotools latex-package perl-functions sgml-catalog-r1 toolchain-funcs |
27 |
+ |
28 |
+DESCRIPTION="A toolset for processing LinuxDoc DTD SGML files" |
29 |
+HOMEPAGE="https://gitlab.com/agmartin/linuxdoc-tools" |
30 |
+SRC_URI="https://gitlab.com/agmartin/linuxdoc-tools/-/archive/${PV}/${P}.tar.gz" |
31 |
+ |
32 |
+LICENSE="GPL-3+ MIT SGMLUG" |
33 |
+SLOT="0" |
34 |
+KEYWORDS="~amd64 ~ia64 ~ppc ~sparc ~x86 ~x86-fbsd" |
35 |
+IUSE="doc" |
36 |
+ |
37 |
+RDEPEND=" |
38 |
+ || ( app-text/openjade app-text/opensp ) |
39 |
+ app-text/sgml-common |
40 |
+ dev-lang/perl:= |
41 |
+ sys-apps/groff |
42 |
+" |
43 |
+DEPEND="${RDEPEND} |
44 |
+ sys-devel/flex |
45 |
+ virtual/awk |
46 |
+ doc? ( |
47 |
+ dev-texlive/texlive-fontsrecommended |
48 |
+ virtual/latex-base |
49 |
+ ) |
50 |
+" |
51 |
+ |
52 |
+src_prepare() { |
53 |
+ default_src_prepare |
54 |
+ # Pregenerated configure scripts fail. |
55 |
+ eautoreconf |
56 |
+} |
57 |
+ |
58 |
+src_configure() { |
59 |
+ perl_set_version |
60 |
+ tc-export CC |
61 |
+ local myeconfargs=( |
62 |
+ --disable-docs |
63 |
+ --with-texdir="${TEXMF}/tex/latex/${PN}" |
64 |
+ --with-perllibdir="${VENDOR_ARCH}" |
65 |
+ --with-installed-iso-entities |
66 |
+ ) |
67 |
+ use doc && myeconfargs+=(--enable-docs="txt pdf html") |
68 |
+ |
69 |
+ econf "${myeconfargs[@]}" |
70 |
+} |
71 |
+ |
72 |
+src_compile() { |
73 |
+ # Prevent access violations from bitmap font files generation. |
74 |
+ use doc && export VARTEXFONTS="${T}/fonts" |
75 |
+ default_src_compile |
76 |
+} |
77 |
+ |
78 |
+src_install() { |
79 |
+ # Makefile ignores docdir configuration option. |
80 |
+ emake DESTDIR="${D}" docdir="${EPREFIX}/usr/share/doc/${PF}" install |
81 |
+ dodoc ChangeLog README |
82 |
+ |
83 |
+ insinto /etc/sgml |
84 |
+ newins - linuxdoc.cat <<-EOF |
85 |
+ CATALOG "${EPREFIX}/usr/share/linuxdoc-tools/linuxdoc-tools.catalog" |
86 |
+ EOF |
87 |
+} |
88 |
+ |
89 |
+pkg_preinst() { |
90 |
+ # work around sgml-catalog.eclass removing it |
91 |
+ cp "${ED}"/etc/sgml/linuxdoc.cat "${T}" || die |
92 |
+} |
93 |
+ |
94 |
+pkg_postinst() { |
95 |
+ if [[ ! -f ${EROOT}/etc/sgml/linuxdoc.cat ]]; then |
96 |
+ cp "${T}"/linuxdoc.cat "${EROOT}"/etc/sgml/ || die |
97 |
+ fi |
98 |
+ |
99 |
+ latex-package_pkg_postinst |
100 |
+ sgml-catalog-r1_pkg_postinst |
101 |
+} |
102 |
+ |
103 |
+pkg_postrm() { |
104 |
+ latex-package_pkg_postrm |
105 |
+ sgml-catalog-r1_pkg_postrm |
106 |
+} |