summaryrefslogtreecommitdiff
blob: 097a519e03a079b04927793b7c981908e69324b3 (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
39
40
41
42
43
44
45
46
47
48
49
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-sound/gmtp/gmtp-1.1.0.ebuild,v 1.3 2011/07/27 15:25:26 tomka Exp $

EAPI=4

inherit eutils gnome2-utils

DESCRIPTION="simple MP3 player client for MTP based devices"
HOMEPAGE="http://gmtp.sourceforge.net/"
# Upstream's download was broken once, switch to sf download on bump!
# This file was fetched from Debian mirrors
SRC_URI="mirror://gentoo/${PN}_${PV}.orig.tar.gz
		 http://dev.gentoo.org/~tomka/files/${PN}_${PV}.orig.tar.gz"
LICENSE="gmtp"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

DEPEND="x11-libs/gtk+
gnome-base/gconf
media-libs/libmtp
media-libs/libid3tag
dev-libs/libusb
media-libs/flac
media-libs/libvorbis"

RDEPEND="${DEPEND}"

S="${WORKDIR}/gMTP"

src_prepare() {
	epatch "${FILESDIR}/makefile-gentoo.patch"
}

pkg_preinst() {
	gnome2_gconf_savelist
	gnome2_icon_savelist
}

pkg_postinst() {
	gnome2_gconf_install
	gnome2_icon_cache_update
}

pkg_postrm() {
	gnome2_gconf_uninstall
	gnome2_icon_cache_update
}