blob: a4f9d063882f98eb0c530335b6323d7b007b2c1b (
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
|
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
PYTHON_COMPAT=( python2_7 )
PYTHON_REQ_USE=tk
inherit eutils python-single-r1
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="${PYTHON_DEPS}
cddb? ( dev-python/cddb-py[${PYTHON_USEDEP}] )
media-sound/cd-discid"
DEPEND=""
REQUIRED_USE=${PYTHON_REQUIRED_USE}
S=${WORKDIR}/${PN}
src_prepare() {
epatch "${FILESDIR}"/${P}-Makefile.patch
sed -i -e 's:ggv:gv:' dotcdcover.{example,m4} || die
}
src_compile() {
emake prefix="${D}"/usr target=/usr || die
}
src_install() {
emake prefix="${D}"/usr docdir="${D}"/usr/share/doc/${PF} install || die
python_fix_shebang "${D}"
make_desktop_entry ${PN} ${PN}
dodoc doc/cdcover.pdf
}
|