libmpd: Sync with gentoo-x86
[mpd.git] / eclass / gmpc-plugin.eclass
blob1911dc7220c88008545deb8e0b6bb9f3870cfb70
1 [ -z "${SRC_URI}" ] && inherit git-2
2 inherit autotools
4 DEPEND="${DEPEND}
5 =media-sound/gmpc-9999
6 dev-libs/libxml2"
7 RDEPEND="${DEPEND}"
9 if [ -z ${EGIT_REPO_URI} ] || [ -z "${SRC_URI}" ]; then
10 DEPEND="${DEPEND}"
11 if [ -z ${GMPC_PLUGIN} ]; then
12 GMPC_PLUGIN="${PN}"
13 GMPC_PLUGIN="${gmpc-${GMPC_PLUGIN}}"
15 EGIT_REPO_URI="git://git.musicpd.org/qball/${GMPC_PLUGIN}.git"
18 if [ -z "${SRC_URI}" ]; then
19 gmpc-plugin_src_prepare() {
20 eautoreconf
24 gmpc-plugin_src_install() {
25 cd "${S}"
26 emake DESTDIR="${D}" install || die "Install failed"
29 #TODO Use ${var^^} when gentoo makes the switch to bash4
30 local my_plugin="`echo ${PN/gmpc-} | tr '[a-z]' '[A-Z]'`"
32 ## A few sane defaults
33 HOMEPAGE="http://gmpc.wikia.com/wiki/GMPC_PLUGIN_${my_plugin}"
34 LICENSE="GPL-2"
35 SLOT="0"
36 IUSE=""
38 EXPORT_FUNCTIONS src_install src_prepare