summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss@sss.chaoslab.ru>2017-03-06 10:49:39 +0300
committerGluzskiy Alexandr <sss@sss.chaoslab.ru>2017-03-06 10:49:39 +0300
commitdb4c57d60030e3a52a90b8e4524855bd929413d3 (patch)
tree48060041403fa3589a2ec60c5c55db4f47657736
parent46567aca9a08438178fec833e1fe350c9d9f2ed5 (diff)
retroshare: update and regenerate language files
-rw-r--r--net-p2p/retroshare/retroshare-scm.ebuild13
1 files changed, 10 insertions, 3 deletions
diff --git a/net-p2p/retroshare/retroshare-scm.ebuild b/net-p2p/retroshare/retroshare-scm.ebuild
index 8d8ede5..0db8383 100644
--- a/net-p2p/retroshare/retroshare-scm.ebuild
+++ b/net-p2p/retroshare/retroshare-scm.ebuild
@@ -99,9 +99,16 @@ src_prepare() {
-e '/isEmpty(SQLCIPHER_OK) {/aerror(libsqlcipher not found)' \
retroshare-gui/src/retroshare-gui.pro \
retroshare-nogui/src/retroshare-nogui.pro || die 'sed on retroshare-gui/src/retroshare-gui.pro failed'
- cd retroshare-gui/src/lang
- lrelease *.ts
- cd ${S}
+
+ #regenerate translations in case developers just forgot to do so
+ if [ use qt4 ]; then
+ qtchooser -run-tool=lupdate -qt=4 retroshare-gui/src/retroshare-gui.pro
+ qtchooser -run-tool=lrelease -qt=4 retroshare-gui/src/retroshare-gui.pro
+ else
+ qtchooser -run-tool=lupdate -qt=5 retroshare-gui/src/retroshare-gui.pro
+ qtchooser -run-tool=lrelease -qt=5 retroshare-gui/src/retroshare-gui.pro
+ fi
+
epatch "${FILESDIR}/hidden_service.patch"
epatch "${FILESDIR}/cflags.patch"