Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-libs/libnxml/
Date: Mon, 31 Aug 2020 03:44:25
Message-Id: 1598845455.61b447bb8c543b3f7ce5b288193a7c33b418bc08.sam@gentoo
1 commit: 61b447bb8c543b3f7ce5b288193a7c33b418bc08
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Mon Aug 31 03:38:07 2020 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Mon Aug 31 03:44:15 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=61b447bb
7
8 net-libs/libnxml: fix installed pkgconfig file
9
10 The installed pkgconfig file referred to /usr/lib unconditionally,
11 causing warnings in reverse dependencies when linking.
12
13 Package-Manager: Portage-3.0.4, Repoman-3.0.1
14 Signed-off-by: Sam James <sam <AT> gentoo.org>
15
16 net-libs/libnxml/libnxml-0.18.3-r1.ebuild | 54 +++++++++++++++++++++++++++++++
17 1 file changed, 54 insertions(+)
18
19 diff --git a/net-libs/libnxml/libnxml-0.18.3-r1.ebuild b/net-libs/libnxml/libnxml-0.18.3-r1.ebuild
20 new file mode 100644
21 index 00000000000..f973f45b72e
22 --- /dev/null
23 +++ b/net-libs/libnxml/libnxml-0.18.3-r1.ebuild
24 @@ -0,0 +1,54 @@
25 +# Copyright 1999-2020 Gentoo Authors
26 +# Distributed under the terms of the GNU General Public License v2
27 +
28 +EAPI=7
29 +
30 +DESCRIPTION="A C-library for parsing and writing XML 1.0/1.1 files or streams"
31 +HOMEPAGE="https://www.autistici.org/bakunin/libnxml/doc/"
32 +SRC_URI="https://www.autistici.org/bakunin/${PN}/${P}.tar.gz"
33 +
34 +LICENSE="LGPL-2.1"
35 +SLOT="0"
36 +KEYWORDS="~amd64 ~arm ~mips ~ppc ~sparc ~x86"
37 +IUSE="doc examples"
38 +
39 +RDEPEND="net-misc/curl"
40 +DEPEND="${RDEPEND}"
41 +BDEPEND="doc? ( app-doc/doxygen )"
42 +
43 +src_prepare() {
44 + default
45 +
46 + # Fix lib dir in installed pkgconfig file
47 + sed -i -e "s:\${exec_prefix}/lib:\${exec_prefix}/$(get_libdir):" nxml.pc.in \
48 + || die "Failed to correct pkgconfig file"
49 +}
50 +
51 +src_configure() {
52 + econf --disable-static
53 +}
54 +
55 +src_compile() {
56 + default
57 +
58 + if use doc; then
59 + ebegin "Creating documentation"
60 + doxygen doxy.conf || die "generating docs failed"
61 + # clean out doxygen gunk
62 + rm doc/html/*.{md5,map} || die
63 + HTML_DOCS=( doc/html/. )
64 + eend 0
65 + fi
66 +}
67 +
68 +src_install() {
69 + default
70 +
71 + if use examples; then
72 + docinto test
73 + dodoc test/*.c
74 + fi
75 +
76 + # no static archives
77 + find "${D}" -name '*.la' -delete || die
78 +}