summaryrefslogtreecommitdiff
blob: 2f13885368898e6152488948188704f773b1db85 (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
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-cdr/cdcover/cdcover-0.7.3.ebuild,v 1.1 2008/06/07 09:23:27 drac Exp $

inherit eutils

DESCRIPTION="cdcover allows the creation of inlay-sheets for jewel cd-cases"
HOMEPAGE="http://cdcover.sourceforge.net"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="cddb"

RDEPEND="cddb? ( dev-python/cddb-py )
	dev-lang/python
	app-text/ggv
	media-sound/cd-discid"
DEPEND=""

S=${WORKDIR}/${PN}

pkg_setup() {
	if ! built_with_use dev-lang/python tk; then
		die "dev-lang/python needs to be built with USE tk."
	fi
}

src_unpack() {
	unpack ${A}
	cd "${S}"
	epatch "${FILESDIR}"/${P}-install_all_images.patch
}

src_compile() {
	emake prefix="${D}/usr" target="/usr" || die "emake failed."
}

src_install() {
	emake prefix="${D}/usr" docdir="${D}/usr/share/doc/${PF}" \
		install || die "emake install failed."
	newicon share/images/document-save.png ${PN}.png
	make_desktop_entry ${PN} ${PN} ${PN}
	prepalldocs
}