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.
gentoo-overlay/media-libs/libmpdclient/libmpdclient-2.10.ebuild

35 lines
831 B

# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
DESCRIPTION="A library for interfacing Music Player Daemon (media-sound/mpd)"
HOMEPAGE="https://www.musicpd.org"
SRC_URI="https://www.musicpd.org/download/${PN}/${PV%.*}/${P}.tar.xz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ppc ppc64 sparc x86"
IUSE="doc examples static-libs"
RDEPEND=""
DEPEND="doc? ( app-doc/doxygen )"
src_prepare() {
default
sed -e "s:@top_srcdir@:.:" -i doc/doxygen.conf.in
}
src_configure() {
econf \
$(use_enable static-libs static) \
$(use_enable doc documentation)
}
src_install() {
default
use examples && dodoc src/example.c
use doc || rm -rf "${ED}"/usr/share/doc/${PF}/html
find "${ED}" -name "*.la" -exec rm -rf {} + || die "failed to delete .la files"
}