1 |
# Copyright 1999-2013 Gentoo Foundation |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: /var/cvsroot/gentoo-x86/media-video/subdownloader/subdownloader-2.0.18.ebuild,v 1.3 2013/06/25 11:43:19 ago Exp $ |
4 |
|
5 |
EAPI=5 |
6 |
|
7 |
PYTHON_DEPEND="2" |
8 |
|
9 |
inherit python eutils |
10 |
|
11 |
DESCRIPTION="GUI application for automatic downloading/uploading of subtitles for videofiles" |
12 |
HOMEPAGE="http://www.subdownloader.net/" |
13 |
SRC_URI="http://launchpad.net/${PN}/trunk/${PV}/+download/${PN}_2.0.18.orig.tar.gz -> ${P}.tar.gz" |
14 |
|
15 |
LICENSE="GPL-3" |
16 |
SLOT="0" |
17 |
KEYWORDS="amd64 x86" |
18 |
IUSE="" |
19 |
#S="${WORKDIR}/subdownloader-${PV}" |
20 |
|
21 |
DEPEND=" |
22 |
dev-python/PyQt4 |
23 |
dev-python/kaa-metadata" |
24 |
RDEPEND="${DEPEND}" |
25 |
|
26 |
pkg_setup() { |
27 |
python_set_active_version 2 |
28 |
python_pkg_setup |
29 |
} |
30 |
|
31 |
src_prepare() { |
32 |
python_convert_shebangs 2 "${S}"/run.py |
33 |
} |
34 |
|
35 |
src_install() { |
36 |
insinto /usr/share/"${PN}" |
37 |
doins -r cli FileManagement gui languages locale modules run.py |
38 |
fperms 755 /usr/share/"${PN}"/run.py |
39 |
dosym /usr/share/"${PN}"/run.py /usr/bin/"${PN}" |
40 |
doman subdownloader.1 |
41 |
dodoc README ChangeLog |
42 |
doicon gui/images/subdownloader.png |
43 |
domenu subdownloader.desktop |
44 |
} |