libmpdclient: Sync with gentoo-x86
[mpd.git] / media-libs / libmpdclient / libmpdclient-9999.ebuild
blob7f3f9c2251d558927fd0c50a3b25665b941e885d
1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/media-libs/libmpdclient/libmpdclient-2.7.ebuild,v 1.8 2012/07/29 16:02:32 armin76 Exp $
5 EAPI=4
6 inherit autotools git-2
8 DESCRIPTION="A library for interfacing Music Player Daemon (media-sound/mpd)"
9 HOMEPAGE="http://www.musicpd.org"
10 EGIT_REPO_URI="git://git.musicpd.org/master/libmpdclient.git"
11 EGIT_BOOTSTRAP="eautoreconf"
13 LICENSE="BSD"
14 SLOT="0"
15 KEYWORDS=""
16 IUSE="doc examples static-libs"
18 RDEPEND=""
19 DEPEND="doc? ( app-doc/doxygen )"
21 src_prepare() {
22 sed -e "s:@top_srcdir@:.:" -i doc/doxygen.conf.in
25 src_configure() {
26 econf \
27 --docdir="${EPREFIX}"/usr/share/doc/${PF} \
28 $(use_enable static-libs static)
31 src_install() {
32 default
33 use examples && dodoc src/example.c
34 use doc || rm -rf "${ED}"/usr/share/doc/${PF}/html
35 find "${ED}" -name "*.la" -exec rm -rf {} + || die "failed to delete .la files"