summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2020-08-31 03:34:35 +0000
committerSam James <sam@gentoo.org>2020-08-31 03:44:14 +0000
commit65d0afbccdf468242080abc9c32d2ededa13b1cc (patch)
tree42d370190223a178df0cbc7a682fff4c5b804e67 /net-libs/libmrss
parentmedia-plugins/kodi-screensaver-matrixtrails: 2.5.0 version bump (diff)
downloadgentoo-65d0afbccdf468242080abc9c32d2ededa13b1cc.tar.gz
gentoo-65d0afbccdf468242080abc9c32d2ededa13b1cc.tar.bz2
gentoo-65d0afbccdf468242080abc9c32d2ededa13b1cc.zip
net-libs/libmrss: fix installed pkgconfig file
The installed pkgconfig file referred to /usr/lib unconditionally, causing warnings in reverse dependencies when linking. Closes: https://bugs.gentoo.org/731240 Package-Manager: Portage-3.0.4, Repoman-3.0.1 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'net-libs/libmrss')
-rw-r--r--net-libs/libmrss/libmrss-0.19.2-r1.ebuild60
1 files changed, 60 insertions, 0 deletions
diff --git a/net-libs/libmrss/libmrss-0.19.2-r1.ebuild b/net-libs/libmrss/libmrss-0.19.2-r1.ebuild
new file mode 100644
index 000000000000..11b589a29931
--- /dev/null
+++ b/net-libs/libmrss/libmrss-0.19.2-r1.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+DESCRIPTION="A C-library for parsing and writing RSS 0.91/0.92/1.0/2.0 files or streams"
+HOMEPAGE="https://www.autistici.org/bakunin/libmrss/doc/"
+SRC_URI="https://www.autistici.org/bakunin/${PN}/${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~mips ~ppc ~x86"
+IUSE="doc examples"
+
+RDEPEND="
+ net-libs/libnxml
+ net-misc/curl"
+DEPEND="${RDEPEND}"
+BDEPEND="
+ virtual/pkgconfig
+ doc? ( app-doc/doxygen )"
+
+# TODO: php-bindings
+
+src_prepare() {
+ default
+
+ # Fix lib dir in installed pkgconfig file
+ sed -i -e "s:\${exec_prefix}/lib:\${exec_prefix}/$(get_libdir):" mrss.pc.in \
+ || die "Failed to correct pkgconfig file"
+}
+
+src_configure() {
+ econf --disable-static
+}
+
+src_compile() {
+ default
+
+ if use doc; then
+ ebegin "Creating documentation"
+ doxygen doxy.conf || die "generating docs failed"
+ # clean out doxygen gunk
+ rm doc/html/*.{md5,map} || die
+ HTML_DOCS=( doc/html/. )
+ eend 0
+ fi
+}
+
+src_install() {
+ default
+
+ if use examples; then
+ docinto test
+ dodoc test/*.c
+ fi
+
+ # no static archives
+ find "${D}" -name '*.la' -delete || die
+}