aboutsummaryrefslogtreecommitdiff
blob: 1fcfdd36bcd67a7c40357a7190103b7934b0bd1a (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
50
51
52
53
54
55
56
57
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=2

inherit base

DESCRIPTION="Lightweight FOX music collection manager and player"
HOMEPAGE="http://gogglesmm.googlecode.com/"
if [[ ${PV} == "9999" ]] ; then
	inherit mercurial
	EHG_REPO_URI="http://${PN}.googlecode.com/hg"
	KEYWORDS=""
else 
	SRC_URI="http://${PN}.googlecode.com/files/${P}.tar.bz2"
	KEYWORDS="~amd64 ~x86"
fi

LICENSE="GPL-3"
SLOT="0"
IUSE="dbus gcrypt"

RDEPEND="dev-db/sqlite:3
	media-libs/taglib
	>=media-libs/gap-0.1_pre20111212
	net-misc/curl
	x11-libs/fox:1.7[png]
	dbus? ( sys-apps/dbus )
	gcrypt? ( dev-libs/libgcrypt )"
DEPEND="${RDEPEND}"

DOCS=(AUTHORS README)

src_prepare() {
	# Note: Makefile is NOT affected by ./configure
	sed -i -e 's:icons/hicolor/48x48/apps:pixmaps:' Makefile || die

	base_src_prepare
}

src_configure() {
	local myeconfargs=( $(use_with dbus) )

	if use gcrypt ; then
		myeconfargs+=("--with-md5=gcrypt")
	else
		myeconfargs+=("--with-md5=internal")
	fi

	base_src_configure "${myeconfargs[@]}"
}

pkg_postinst() {
	elog "For asf and/or mp4 tag support, build "
	elog "    media-libs/taglib with USE='asf mp4'"
}