1 |
commit: 9fcc47ca9669c5a2b2fa8013b65e8dfbc44580be |
2 |
Author: Sergey Ilinykh <rion4ik <AT> gmail <DOT> com> |
3 |
AuthorDate: Sun Sep 6 14:00:30 2020 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Sep 7 08:56:38 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9fcc47ca |
7 |
|
8 |
net-im/psi: added 1.5 version |
9 |
|
10 |
Package-Manager: Portage-3.0.5, Repoman-2.3.23 |
11 |
Signed-off-by: Sergey Ilinykh <rion4ik <AT> gmail.com> |
12 |
Closes: https://github.com/gentoo/gentoo/pull/17438 |
13 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
14 |
|
15 |
net-im/psi/Manifest | 2 + |
16 |
net-im/psi/psi-1.5.ebuild | 121 ++++++++++++++++++++++++++++++++++++++++++++++ |
17 |
2 files changed, 123 insertions(+) |
18 |
|
19 |
diff --git a/net-im/psi/Manifest b/net-im/psi/Manifest |
20 |
index f46215ca370..2a7bb547a72 100644 |
21 |
--- a/net-im/psi/Manifest |
22 |
+++ b/net-im/psi/Manifest |
23 |
@@ -1,2 +1,4 @@ |
24 |
DIST psi-1.4.tar.xz 2119840 BLAKE2B 28298f526f23a4bcbb5452ca593163efd50c990a6bc9a2ed54d2136e0b34cf34ad2f1d4a81bd529a013b8aa351e8531f4bf9ea7faf3958085869dd75817828f8 SHA512 9bb8da58809270e5387e024f5ea031e28441e66cde53cde219beebe7b46bfa5c41d0a86110d1936d0ac2e15483ffb947f8998cbeeb415f72553cb78b67c57ed1 |
25 |
+DIST psi-1.5.tar.xz 2125104 BLAKE2B ee4114749b5958c61dccc45c2562d868f30a2f4765229c904c32d54d5730e2eaa9ab03e966fa5b83aba7e31d37fafb2b194c74a72f2404f3b51815bc525c5080 SHA512 c2e17dad346b5f7e8c97dc8959d99eaf4c30c1ba11c2d04b562af7b30482d5dbdc3a86508c4c29881ea0fc72db5a9d5fb4017768732cafee6a1d3025a39d8520 |
26 |
DIST psi-l10n-1.4.tar.gz 3037957 BLAKE2B 2f61c60ee5bc323323ae98ab2eee7d2afec9462850f038fe72816810ef572e4a71a3647f83e09bf948485f56dfbc8dd3bea0a24f6258b13f08867319ca65deea SHA512 ef87a12dd992adcfe5fdc4e88c1d33d6fcd77b2554963e1563cee7ba650d096c3b074795a1a9e650945b1dc46a4936f9520ecd864559b1531cb31763399c258d |
27 |
+DIST psi-l10n-1.5.tar.gz 3037979 BLAKE2B a1baef1b3c86c1b0a528d4395bd6aabf99e1ec4c077d5d0358d4fd9566fcc2d929f46688c3bb2f56ad1de840fa1699f33c211fa4c7597b66ba0842cccbfbc19c SHA512 d5ed8244fbaa9fdd9a40a14ef3660085c8c9c5a18352900fa8d947fad01aea5894c23d83dc16e8ebf9fe007905ecbb8eca7dfaa4e1cf0fa160af341967886cae |
28 |
|
29 |
diff --git a/net-im/psi/psi-1.5.ebuild b/net-im/psi/psi-1.5.ebuild |
30 |
new file mode 100644 |
31 |
index 00000000000..1d1ed507d80 |
32 |
--- /dev/null |
33 |
+++ b/net-im/psi/psi-1.5.ebuild |
34 |
@@ -0,0 +1,121 @@ |
35 |
+# Copyright 1999-2020 Gentoo Authors |
36 |
+# Distributed under the terms of the GNU General Public License v2 |
37 |
+ |
38 |
+EAPI=7 |
39 |
+ |
40 |
+PLOCALES="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" |
41 |
+PLOCALE_BACKUP="en" |
42 |
+ |
43 |
+inherit l10n qmake-utils xdg |
44 |
+ |
45 |
+DESCRIPTION="Qt XMPP client" |
46 |
+HOMEPAGE="https://psi-im.org" |
47 |
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.xz |
48 |
+ https://github.com/psi-im/psi-l10n/archive/${PV}.tar.gz -> psi-l10n-${PV}.tar.gz" |
49 |
+ |
50 |
+LICENSE="GPL-2" |
51 |
+SLOT="0" |
52 |
+KEYWORDS="~amd64 ~x86" |
53 |
+IUSE="aspell crypt dbus debug doc enchant +hunspell webengine webkit whiteboarding xscreensaver" |
54 |
+ |
55 |
+REQUIRED_USE=" |
56 |
+ ?? ( aspell enchant hunspell ) |
57 |
+ webengine? ( !webkit ) |
58 |
+" |
59 |
+ |
60 |
+BDEPEND=" |
61 |
+ dev-qt/linguist-tools:5 |
62 |
+ virtual/pkgconfig |
63 |
+ doc? ( app-doc/doxygen ) |
64 |
+" |
65 |
+DEPEND=" |
66 |
+ app-crypt/qca:2[ssl] |
67 |
+ dev-qt/qtconcurrent:5 |
68 |
+ dev-qt/qtcore:5 |
69 |
+ dev-qt/qtgui:5 |
70 |
+ dev-qt/qtmultimedia:5 |
71 |
+ dev-qt/qtnetwork:5 |
72 |
+ dev-qt/qtwidgets:5 |
73 |
+ dev-qt/qtx11extras:5 |
74 |
+ dev-qt/qtxml:5 |
75 |
+ net-dns/libidn:0 |
76 |
+ sys-libs/zlib[minizip] |
77 |
+ x11-libs/libX11 |
78 |
+ x11-libs/libxcb |
79 |
+ aspell? ( app-text/aspell ) |
80 |
+ dbus? ( dev-qt/qtdbus:5 ) |
81 |
+ enchant? ( app-text/enchant:2 ) |
82 |
+ hunspell? ( app-text/hunspell:= ) |
83 |
+ webengine? ( |
84 |
+ dev-qt/qtwebchannel:5 |
85 |
+ dev-qt/qtwebengine:5[widgets] |
86 |
+ ) |
87 |
+ webkit? ( dev-qt/qtwebkit:5 ) |
88 |
+ whiteboarding? ( dev-qt/qtsvg:5 ) |
89 |
+ xscreensaver? ( x11-libs/libXScrnSaver ) |
90 |
+" |
91 |
+RDEPEND="${DEPEND} |
92 |
+ dev-qt/qtimageformats |
93 |
+" |
94 |
+ |
95 |
+RESTRICT="test" |
96 |
+ |
97 |
+src_configure() { |
98 |
+ CONF=( |
99 |
+ --prefix="${EPREFIX}"/usr |
100 |
+ --libdir="${EPREFIX}"/usr/$(get_libdir) |
101 |
+ --no-separate-debug-info |
102 |
+ --qtdir="$(qt5_get_bindir)/.." |
103 |
+ $(use_enable aspell) |
104 |
+ $(use_enable dbus qdbus) |
105 |
+ $(use_enable enchant) |
106 |
+ $(use_enable hunspell) |
107 |
+ $(use_enable xscreensaver xss) |
108 |
+ $(use_enable whiteboarding) |
109 |
+ ) |
110 |
+ |
111 |
+ use debug && CONF+=("--debug") |
112 |
+ use webengine && CONF+=("--enable-webkit" "--with-webkit=qtwebengine") |
113 |
+ use webkit && CONF+=("--enable-webkit" "--with-webkit=qtwebkit") |
114 |
+ |
115 |
+ # This may generate warnings if passed option already matches with default. |
116 |
+ # Just ignore them. It's how qconf-based configure works and will be fixed in |
117 |
+ # future qconf versions. |
118 |
+ ./configure "${CONF[@]}" || die "configure failed" |
119 |
+ |
120 |
+ eqmake5 psi.pro |
121 |
+} |
122 |
+ |
123 |
+src_compile() { |
124 |
+ emake |
125 |
+ use doc && emake -C doc api_public |
126 |
+} |
127 |
+ |
128 |
+src_install() { |
129 |
+ emake INSTALL_ROOT="${D}" install |
130 |
+ |
131 |
+ # this way the docs will be installed in the standard gentoo dir |
132 |
+ rm "${ED}"/usr/share/psi/{COPYING,README} || die "Installed file set seems to be changed by upstream" |
133 |
+ newdoc iconsets/roster/README README.roster |
134 |
+ newdoc iconsets/system/README README.system |
135 |
+ newdoc certs/README README.certs |
136 |
+ dodoc README |
137 |
+ |
138 |
+ use doc && HTML_DOCS=( doc/api/. ) |
139 |
+ einstalldocs |
140 |
+ |
141 |
+ # install translations |
142 |
+ local mylrelease="$(qt5_get_bindir)"/lrelease |
143 |
+ cd "${WORKDIR}/psi-l10n-${PV}" || die |
144 |
+ insinto /usr/share/psi |
145 |
+ install_locale() { |
146 |
+ "${mylrelease}" "translations/${PN}_${1}.ts" || die "lrelease ${1} failed" |
147 |
+ doins "translations/${PN}_${1}.qm" |
148 |
+ } |
149 |
+ l10n_for_each_locale_do install_locale |
150 |
+} |
151 |
+ |
152 |
+pkg_postinst() { |
153 |
+ xdg_pkg_postinst |
154 |
+ einfo "For GPG support make sure app-crypt/qca is compiled with gpg USE flag." |
155 |
+} |