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