blob: 045a1dfe9710a1a69404a9ef1c75c2be06f844f0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-libs/libmpdclient/libmpdclient-2.9.ebuild,v 1.8 2014/01/26 12:15:37 ago Exp $
EAPI=4
inherit eutils
DESCRIPTION="A library for interfacing Music Player Daemon (media-sound/mpd)"
HOMEPAGE="http://www.musicpd.org"
SRC_URI="http://www.musicpd.org/download/${PN}/${PV%.*}/${P}.tar.xz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="amd64 arm ~mips ppc x86"
IUSE="doc examples static-libs"
RDEPEND=""
DEPEND="doc? ( app-doc/doxygen )"
src_prepare() {
sed -e "s:@top_srcdir@:.:" -i doc/doxygen.conf.in
epatch ${FILESDIR}/${P}-missing_headers.patch
}
src_configure() {
econf \
--docdir="${EPREFIX}"/usr/share/doc/${PF} \
$(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"
}
|