summaryrefslogtreecommitdiff
blob: 351029283fd5e9c21e7c6997915819e3fcea4ea0 (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
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI="5"

PYTHON_COMPAT=( python2_7 )

inherit python-single-r1 gnome2

DESCRIPTION="Mass rename files"
HOMEPAGE="http://www.infinicode.org/code/pyrenamer/"
SRC_URI="http://www.infinicode.org/code/${PN}/files/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE="music"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"

# TODO: Missing support for >=dev-python/eyeD3-0.7.x API that could
# be used as alternative to app-misc/hachoir-metadata with || ( )
RDEPEND="${PYTHON_DEPS}
	dev-python/pygtk:2[${PYTHON_USEDEP}]
	dev-python/gconf-python[${PYTHON_USEDEP}]
	music? ( app-misc/hachoir-metadata[${PYTHON_USEDEP}] )"

pkg_setup() {
	python-single-r1_pkg_setup
}

src_prepare() {
	python_fix_shebang .
	gnome2_src_prepare
}