summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss@sss.chaoslab.ru>2018-06-27 12:18:00 +0300
committerGluzskiy Alexandr <sss@sss.chaoslab.ru>2018-06-27 12:18:00 +0300
commitb88c4442ed18fd9831865d966635be94fee1e6bf (patch)
tree6d18810e2e857c7df9fd1a1141b0d60bd5bb94b0
parent6a4f97aa9e759afd3a413edeb604d6ab26a1b181 (diff)
psi: looks like finally done ...
-rw-r--r--metadata/categories.conf1
-rw-r--r--packages/net-im/psi/psi-scm.exheres-039
2 files changed, 31 insertions, 9 deletions
diff --git a/metadata/categories.conf b/metadata/categories.conf
index da4b9eb..e35e34e 100644
--- a/metadata/categories.conf
+++ b/metadata/categories.conf
@@ -3,3 +3,4 @@ net-im
net-p2p
x11-themes
sys-devel
+dev-utils
diff --git a/packages/net-im/psi/psi-scm.exheres-0 b/packages/net-im/psi/psi-scm.exheres-0
index 5482956..c0d9689 100644
--- a/packages/net-im/psi/psi-scm.exheres-0
+++ b/packages/net-im/psi/psi-scm.exheres-0
@@ -38,6 +38,7 @@ SLOT="0"
PLATFORMS="~amd64 ~x86"
SUMMARY="Qt XMPP client"
HOMEPAGE="http://psi-im.org/"
+LANGS="be bg ca cs de en eo es et fa fi fr he hu it ja kk mk nl pl pt pt_BR ru sk sl sr@latin sv sw uk ur_PK vi zh_CN zh_TW"
MYOPTIONS="
crypt
debug
@@ -63,6 +64,7 @@ MYOPTIONS="
webp
whiteboarding
xscreensaver
+ linguas: ( ${LANGS} )
"
DEPENDENCIES="
@@ -100,6 +102,13 @@ DEPENDENCIES="
#$DEFAULT_SRC_PREPARE_PATCHES=(
#)
+pkg_setup() {
+ MY_PN=psi
+ if option extras; then
+ MY_PN=psi-plus
+ fi
+}
+
src_prepare() {
default_src_prepare
edo mv ../psiplus psi-plus
@@ -160,13 +169,25 @@ src_compile() {
option doc && emake -C doc api_public
}
-#src_install() {
-# emake INSTALL_ROOT="${D}" install
+
+src_install() {
+# qmake_src_install
+ default_src_install
+
# rm "${ED}"/usr/share/${MY_PN}/{COPYING,README.html} || die "Installed file set seems to be changed by upstream"
-# newdoc iconsets/roster/README README.roster
-# newdoc iconsets/system/README README.system
-# newdoc certs/README README.certs
-# dodoc README.html
-# option doc && HTML_DOCS=( doc/api/. )
-# emagicdocs
-#}
+ newdoc iconsets/roster/README README.roster
+ newdoc iconsets/system/README README.system
+ newdoc certs/README README.certs
+ dodoc README.html
+ option doc && HTML_DOCS=( doc/api/. )
+ emagicdocs
+ mylrelease=lrelease-qt5
+ cd "${WORK}"/psi-l10n
+ insinto /usr/share/${MY_PN}
+ for lang in ${LANGS}; do
+ if option "linguas:${lang}"; then
+ "${mylrelease}" "translations/${PN}_${lang}.ts" || die "lrelease ${1} failed"
+ doins "translations/${PN}_${lang}.qm"
+ fi
+ done
+}