summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkos Chandras <hwoarang@gentoo.org>2009-06-08 19:54:18 +0000
committerMarkos Chandras <hwoarang@gentoo.org>2009-06-08 19:54:18 +0000
commit956598e309c9b6f04557ffccfddf6398c484f55b (patch)
tree8b149ccee1aa631922c33b873cf4c7e32295d316 /media-video/xvideoservicethief
parentFix latent LIBDIR references #273224 by Peter Alfredsen. (diff)
downloadhistorical-956598e309c9b6f04557ffccfddf6398c484f55b.tar.gz
historical-956598e309c9b6f04557ffccfddf6398c484f55b.tar.bz2
historical-956598e309c9b6f04557ffccfddf6398c484f55b.zip
Install translations, remove patch, use sed instead
Package-Manager: portage-2.2_rc33/cvs/Linux x86_64
Diffstat (limited to 'media-video/xvideoservicethief')
-rw-r--r--media-video/xvideoservicethief/ChangeLog7
-rw-r--r--media-video/xvideoservicethief/Manifest5
-rw-r--r--media-video/xvideoservicethief/files/xvideoservicethief-2.0.0-plugins_path.patch16
-rw-r--r--media-video/xvideoservicethief/xvideoservicethief-2.0.0-r1.ebuild35
4 files changed, 38 insertions, 25 deletions
diff --git a/media-video/xvideoservicethief/ChangeLog b/media-video/xvideoservicethief/ChangeLog
index 23efd8552f37..605e6c380a34 100644
--- a/media-video/xvideoservicethief/ChangeLog
+++ b/media-video/xvideoservicethief/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for media-video/xvideoservicethief
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-video/xvideoservicethief/ChangeLog,v 1.3 2009/06/08 18:55:02 ssuominen Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-video/xvideoservicethief/ChangeLog,v 1.4 2009/06/08 19:54:18 hwoarang Exp $
+
+ 08 Jun 2009; Markos Chandras <hwoarang@gentoo.org>
+ xvideoservicethief-2.0.0-r1.ebuild,
+ -files/xvideoservicethief-2.0.0-plugins_path.patch:
+ Install translations, remove patch, use sed instead
*xvideoservicethief-2.0.0-r1 (08 Jun 2009)
diff --git a/media-video/xvideoservicethief/Manifest b/media-video/xvideoservicethief/Manifest
index a01f4ce6ad87..7d924b106f0b 100644
--- a/media-video/xvideoservicethief/Manifest
+++ b/media-video/xvideoservicethief/Manifest
@@ -1,9 +1,8 @@
AUX gcc-4.3.patch 310 RMD160 2c1e586062cb79b872af726707ec0c58e0e6dda7 SHA1 682daadc82fe6e4291da4b16692d43d4f30741a9 SHA256 6404559a79b4e49ac19edb6111a507bcdfeb26baf18d27f9da3a00381f9958d4
-AUX xvideoservicethief-2.0.0-plugins_path.patch 548 RMD160 20206a34305c27e3538c81e07addcad5f90a9af0 SHA1 0416b25fc38f2db27b797a6bb214400665757668 SHA256 dd82bae29121a3d40e1434bba8d429a7628245618b83bbdcfff2a01741dddf12
DIST xVST_2_0_0a_src.zip 2425265 RMD160 9bd17db9c7d25ac838a95edc2229a4a9d484c441 SHA1 5141dd962b50b31a2e5037393c82e141b35a02cc SHA256 4b9c5b1c19fdf5b6456985ad08d1f24f01b7ddd2321135407094925f79a65541
DIST xVideoServiceThief_1_8_2_alpha_src.zip 611419 RMD160 22faa0da7843ff6bb63289f56225c5142fc1970b SHA1 75cfa9ecab96018ef42f25a3e098ee5ba49fd42d SHA256 7c0459c7460caca2ad5a8009a78c404bc57ddbfada13abc58d14d52af1eaef54
EBUILD xvideoservicethief-1.8.2.ebuild 1206 RMD160 e8a8dccc98a946892f39891189bc4b4d55bbd8bf SHA1 5659a0c701e23fab27ba629f51b17928a7e3b3b4 SHA256 d109714eb7dc7fdb1e2c6b153440733ccfb8073306816e177dbdd48ab32bdb18
-EBUILD xvideoservicethief-2.0.0-r1.ebuild 1233 RMD160 0e555489e06de997dfde778c4db15278213d4acb SHA1 ce49ba3b70199cb057dcec85875fd36074859224 SHA256 84d54b3926ae52bffad90603c0ed1edb6e8646d32d914d06230816f381e46615
+EBUILD xvideoservicethief-2.0.0-r1.ebuild 1981 RMD160 f4de12bdc43e45cb9fbf1b62faa9ff88ebe5bf70 SHA1 34cd6fc67d2f65c052742746a167a70461b48701 SHA256 d82ab8731ed1a496e42369b49823a23d78c1a7924cc58be4107b3db8d34d2d70
EBUILD xvideoservicethief-2.0.0.ebuild 1158 RMD160 351240569fc32c5e59dd3fe03bea6115aedf4c9c SHA1 9443e3c91d50c562d07afc4acd060d8b90803b39 SHA256 df31ec50cc14bde08f54024cbb61c7536daea9c245cc703897d2dd2986c0fbb2
-MISC ChangeLog 868 RMD160 123d1c105b38a6a2117020b1a46349201a63a2b1 SHA1 1336b0ba99d9cefde6ab4be84de10e26bf051714 SHA256 697d95217d96eb696b387723a8dd5d0646b4e882e974e30142a6e69a025da235
+MISC ChangeLog 1067 RMD160 076c5c2e90a6e680e87c07bea70b23dae140e2f9 SHA1 96a1c938f9b9ee015f9eb93bec38c3c353caf4ef SHA256 1d610b50aaf5dc06408ee5d6af6b615fe94f2bb07f8eaa6e485970f8f855b627
MISC metadata.xml 178 RMD160 91f88b965189260ac1fe4efae4bfbb857cabc4db SHA1 cef36307764cbf7dea255f4cd6b8520d7065ab30 SHA256 3e6e50d439f99a10df9c43fb7fe940f96056bb6f08e1342fe71e60100676f267
diff --git a/media-video/xvideoservicethief/files/xvideoservicethief-2.0.0-plugins_path.patch b/media-video/xvideoservicethief/files/xvideoservicethief-2.0.0-plugins_path.patch
deleted file mode 100644
index 0437e4bcb3b4..000000000000
--- a/media-video/xvideoservicethief/files/xvideoservicethief-2.0.0-plugins_path.patch
+++ /dev/null
@@ -1,16 +0,0 @@
-diff -ur xvideoservicethief.orig/src/options.cpp xvideoservicethief/src/options.cpp
---- xvideoservicethief.orig/src/options.cpp 2009-05-01 22:07:32.000000000 +0300
-+++ xvideoservicethief/src/options.cpp 2009-06-08 21:51:13.000000000 +0300
-@@ -312,11 +312,7 @@
-
- QString ProgramOptions::getPluginsDir()
- {
--#ifdef Q_WS_MAC
-- return getApplicationPath() + "/../Resources/plugins";
--#else
-- return getApplicationPath() + "/plugins";
--#endif
-+ return "/usr/share/xvideoservicethief/plugins";
- }
-
- QSettings::Format ProgramOptions::getOptionsFormat()
diff --git a/media-video/xvideoservicethief/xvideoservicethief-2.0.0-r1.ebuild b/media-video/xvideoservicethief/xvideoservicethief-2.0.0-r1.ebuild
index 8b71a8171fe1..57769cae5571 100644
--- a/media-video/xvideoservicethief/xvideoservicethief-2.0.0-r1.ebuild
+++ b/media-video/xvideoservicethief/xvideoservicethief-2.0.0-r1.ebuild
@@ -1,6 +1,6 @@
# 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.0.0-r1.ebuild,v 1.1 2009/06/08 18:55:02 ssuominen Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-video/xvideoservicethief/xvideoservicethief-2.0.0-r1.ebuild,v 1.2 2009/06/08 19:54:18 hwoarang Exp $
EAPI=2
inherit eutils qt4 versionator
@@ -16,7 +16,9 @@ SRC_URI="mirror://sourceforge/xviservicethief/${MY_P}.zip"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
-IUSE="debug"
+IUSE="debug linguas_br linguas_ca linguas_cs linguas_da linguas_de linguas_es
+linguas_fr linguas_gl linguas_hu linguas_it linguas_pl linguas_ro
+linguas_sv"
DEPEND="app-arch/unzip
>=x11-libs/qt-gui-4.5.0:4"
@@ -25,21 +27,44 @@ RDEPEND=">=x11-libs/qt-gui-4.5.0:4
S=${WORKDIR}
+LANGS="br ca cs da de es fr gl hu it pl ro sv"
+
src_prepare() {
- epatch "${FILESDIR}"/${P}-plugins_path.patch
+ # fix checz translation
+ mv "${S}"/resources/translations/xVST_cz.ts "${S}"/resources/translations/xVST_cs.ts
+ # fix plugins, language path
+ sed -i -e "s/getApplicationPath()\ +\ \"/\"\/usr\/share\/${PN}/g" \
+ "${S}"/src/options.cpp || die "failed to fix paths"
}
-# TODO: translations, documentation
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} \;
+ 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
}