blob: a31421a99b02835ecb107071d8db2f9ab227c989 (
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-video/xvideoservicethief/xvideoservicethief-2.2.ebuild,v 1.3 2009/11/26 21:05:37 maekke Exp $
EAPI=2
inherit eutils qt4 versionator
MY_PN="xVST"
MY_PV=$(replace_all_version_separators '_')
MY_P=${MY_PN}_${MY_PV}_src
DESCRIPTION="Download (and convert) videos from various Web Video Services"
HOMEPAGE="http://xviservicethief.sourceforge.net/"
SRC_URI="mirror://sourceforge/xviservicethief/${MY_P}.zip"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE="debug linguas_br linguas_ca linguas_cs linguas_da linguas_de linguas_es
linguas_fr linguas_gl linguas_hu linguas_it linguas_ja linguas_nl linguas_pl linguas_ro
linguas_sv"
DEPEND="app-arch/unzip
>=x11-libs/qt-gui-4.5.0:4"
RDEPEND=">=x11-libs/qt-gui-4.5.0:4
media-video/ffmpeg
media-video/flvstreamer"
S="${WORKDIR}/${PN}-src"
LANGS="br ca cs da de es fr gl hu it pl ro sv"
src_prepare() {
# fix translations
mv "${S}"/resources/translations/${MY_PN}_cz.ts "${S}"/resources/translations/${MY_PN}_cs.ts
mv "${S}"/resources/translations/${MY_PN}_jp.ts "${S}"/resources/translations/${MY_PN}_ja.ts
mv "${S}"/resources/translations/${MY_PN}_du.ts "${S}"/resources/translations/${MY_PN}_nl.ts
# fix plugins, language path
sed -i -e "s/getApplicationPath()\ +\ \"/\"\/usr\/share\/${PN}/g" \
"${S}"/src/options.cpp || die "failed to fix paths"
}
src_configure() {
eqmake4 xVideoServiceThief.pro
}
src_compile() {
local lang=
emake || die "emake failed"
for lang in "${S}"/resources/translations/*.ts; do
lrelease ${lang}
done
}
src_install() {
dobin bin/xvst || die "dobin failed"
local dest=/usr/share/${PN}/plugins
dodir ${dest}
find resources/services -name '*.js' -exec cp -dpR {} "${D}"${dest} \;
dodoc changelog.txt
newicon resources/images/InformationLogo.png xvst.png
make_desktop_entry /usr/bin/xvst xVideoServiceThief xvst 'Qt;AudioVideo;Video'
#install translations
insinto /usr/share/${PN}/languages/
local lang= tlang=
for lang in ${LINGUAS}; do
for tlang in ${LANGS}; do
[[ ${lang} == ${tlang} ]] && doins "${S}"/resources/translations/xVST_${tlang}.qm
done
done
}
|