Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/opensp/
Date: Thu, 20 Jan 2022 14:21:00
Message-Id: 1642688449.1ef3e6dd328ccb9c568c653b619f3db162c2aeee.sam@gentoo
1 commit: 1ef3e6dd328ccb9c568c653b619f3db162c2aeee
2 Author: Philipp Rösner <rndxelement <AT> protonmail <DOT> com>
3 AuthorDate: Thu Dec 30 18:22:23 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Thu Jan 20 14:20:49 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1ef3e6dd
7
8 app-text/opensp: port to EAPI-8
9
10 Added support for EAPI-8 in a new ebuild revision.
11
12 Bug: https://bugs.gentoo.org/783651
13 Package-Manager: Portage-3.0.30, Repoman-3.0.3
14 Signed-off-by: Philipp Roesner <rndxelement <AT> protonmail.com>
15 Closes: https://github.com/gentoo/gentoo/pull/23590
16 Signed-off-by: Sam James <sam <AT> gentoo.org>
17
18 app-text/opensp/opensp-1.5.2-r7.ebuild | 85 ++++++++++++++++++++++++++++++++++
19 1 file changed, 85 insertions(+)
20
21 diff --git a/app-text/opensp/opensp-1.5.2-r7.ebuild b/app-text/opensp/opensp-1.5.2-r7.ebuild
22 new file mode 100644
23 index 000000000000..7482559846fb
24 --- /dev/null
25 +++ b/app-text/opensp/opensp-1.5.2-r7.ebuild
26 @@ -0,0 +1,85 @@
27 +# Copyright 1999-2021 Gentoo Authors
28 +# Distributed under the terms of the GNU General Public License v2
29 +
30 +EAPI=8
31 +inherit flag-o-matic autotools
32 +
33 +MY_P=${P/opensp/OpenSP}
34 +
35 +DESCRIPTION="A free, object-oriented toolkit for SGML parsing and entity management"
36 +HOMEPAGE="http://openjade.sourceforge.net/"
37 +SRC_URI="mirror://sourceforge/openjade/${MY_P}.tar.gz"
38 +
39 +LICENSE="MIT"
40 +SLOT="0"
41 +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"
42 +IUSE="doc elibc_glibc nls static-libs test"
43 +RESTRICT="!test? ( test )"
44 +
45 +RDEPEND="
46 + elibc_glibc? ( net-libs/libnsl:0= )"
47 +
48 +DEPEND="${RDEPEND}
49 + nls? ( sys-devel/gettext )
50 + doc? (
51 + app-text/xmlto
52 + app-text/docbook-xml-dtd:4.1.2
53 + )
54 + test? (
55 + app-text/docbook-xml-dtd:4.5
56 + app-text/openjade
57 + app-text/sgml-common
58 + )"
59 +
60 +S=${WORKDIR}/${MY_P}
61 +
62 +PATCHES=(
63 + "${FILESDIR}"/${P}-fix-segfault.patch
64 + "${FILESDIR}"/${P}-c11-using.patch
65 +)
66 +
67 +src_prepare() {
68 + default
69 + use prefix && eautoreconf
70 +}
71 +
72 +src_configure() {
73 + export CONFIG_SHELL=${BASH} # configure needs bash
74 +
75 + # The following filters are taken from openjade's ebuild. See bug #100828.
76 + # Please note! Opts are disabled. If you know what you're doing
77 + # feel free to remove this line. It may cause problems with
78 + # docbook-sgml-utils among other things.
79 + #ALLOWED_FLAGS="-O -O1 -O2 -pipe -g -march"
80 + strip-flags
81 +
82 + econf \
83 + --enable-http \
84 + --enable-default-catalog="${EPREFIX}"/etc/sgml/catalog \
85 + --enable-default-search-path="${EPREFIX}"/usr/share/sgml \
86 + --datadir="${EPREFIX}"/usr/share/sgml/${P} \
87 + $(use_enable nls) \
88 + $(use_enable doc doc-build) \
89 + $(use_enable static-libs static)
90 +}
91 +
92 +src_compile() {
93 + emake pkgdocdir="${EPREFIX}"/usr/share/doc/${PF}
94 +}
95 +
96 +src_test() {
97 + # Skipping tests known not to work
98 + emake SHOWSTOPPERS= check
99 + SANDBOX_PREDICT="${SANDBOX_PREDICT%:/}"
100 +}
101 +
102 +src_install() {
103 + emake \
104 + DESTDIR="${D}" \
105 + pkgdocdir="${EPREFIX}"/usr/share/doc/${PF} \
106 + install
107 +
108 + find "${ED}" -name '*.la' -delete || die
109 +
110 + dodoc AUTHORS BUGS ChangeLog NEWS README
111 +}