You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
61 lines
1.1 KiB
61 lines
1.1 KiB
# 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
|
|
}
|