blob: ddf0d607459167acfaf2d1e6899e9a92656d7615 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
|
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit autotools flag-o-matic
MY_P=${P/opensp/OpenSP}
DESCRIPTION="A free, object-oriented toolkit for SGML parsing and entity management"
HOMEPAGE="http://openjade.sourceforge.net/"
SRC_URI="mirror://sourceforge/openjade/${MY_P}.tar.gz"
S="${WORKDIR}"/${MY_P}
LICENSE="MIT"
SLOT="0"
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"
IUSE="doc elibc_glibc nls static-libs test"
RESTRICT="!test? ( test )"
RDEPEND="elibc_glibc? ( net-libs/libnsl:0= )"
DEPEND="${RDEPEND}"
BDEPEND="nls? ( sys-devel/gettext )
doc? (
app-text/xmlto
app-text/docbook-xml-dtd:4.1.2
)
test? (
app-text/docbook-xml-dtd:4.5
app-text/openjade
app-text/sgml-common
)"
PATCHES=(
"${FILESDIR}"/${P}-fix-segfault.patch
"${FILESDIR}"/${P}-c11-using.patch
)
src_prepare() {
default
use prefix && eautoreconf
}
src_configure() {
export CONFIG_SHELL=${BASH} # configure needs bash
# The following filters are taken from openjade's ebuild. See bug #100828.
# Please note! Opts are disabled. If you know what you're doing
# feel free to remove this line. It may cause problems with
# docbook-sgml-utils among other things.
#ALLOWED_FLAGS="-O -O1 -O2 -pipe -g -march"
strip-flags
econf \
--enable-http \
--enable-default-catalog="${EPREFIX}"/etc/sgml/catalog \
--enable-default-search-path="${EPREFIX}"/usr/share/sgml \
--datadir="${EPREFIX}"/usr/share/sgml/${P} \
$(use_enable nls) \
$(use_enable doc doc-build) \
$(use_enable static-libs static)
}
src_compile() {
emake pkgdocdir="${EPREFIX}"/usr/share/doc/${PF}
}
src_test() {
# Skipping tests known not to work
emake SHOWSTOPPERS= check
SANDBOX_PREDICT="${SANDBOX_PREDICT%:/}"
}
src_install() {
emake \
DESTDIR="${D}" \
pkgdocdir="${EPREFIX}"/usr/share/doc/${PF} \
install
find "${ED}" -name '*.la' -delete || die
dodoc AUTHORS BUGS ChangeLog NEWS README
}
|