Gentoo Archives: gentoo-commits

From: Andrey Utkin <andrey_utkin@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-im/dino/
Date: Wed, 13 Oct 2021 16:22:24
Message-Id: 1634142124.55ea7779a881567b8080577759683760cbe8295a.andrey_utkin@gentoo
1 commit: 55ea7779a881567b8080577759683760cbe8295a
2 Author: Andrey Utkin <andrey_utkin <AT> gentoo <DOT> org>
3 AuthorDate: Wed Oct 13 13:35:20 2021 +0000
4 Commit: Andrey Utkin <andrey_utkin <AT> gentoo <DOT> org>
5 CommitDate: Wed Oct 13 16:22:04 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=55ea7779
7
8 net-im/dino: add new version 0.2.2
9
10 Upstream release tag says
11
12 > Maintenance release for GTK+ 3.24.30 support and bug fixes.
13
14 Package-Manager: Portage-3.0.20, Repoman-3.0.3
15 Signed-off-by: Andrey Utkin <andrey_utkin <AT> gentoo.org>
16
17 net-im/dino/Manifest | 1 +
18 net-im/dino/dino-0.2.2.ebuild | 79 +++++++++++++++++++++++++++++++++++++++++++
19 2 files changed, 80 insertions(+)
20
21 diff --git a/net-im/dino/Manifest b/net-im/dino/Manifest
22 index ba33a251e4d..800169e77e5 100644
23 --- a/net-im/dino/Manifest
24 +++ b/net-im/dino/Manifest
25 @@ -1 +1,2 @@
26 DIST dino-0.2.1.tar.gz 514504 BLAKE2B 42fae18bb7cda276c1eadeefdea130069f9929dfde62855f00ab6b88912fe9db3374315f40ff8f53350cf38e45fe61b0fd6256ef390cdbed6a65a3f2d79ac80a SHA512 b71497ec115945eadf7d33bb973f68465a20284aa75f37f1ae25fc30c1c423ce28cb10f7e9123c47f82e77e97170b8fa72c75389dacc3a2aa3d487a9c9610d49
27 +DIST dino-0.2.2.tar.gz 514648 BLAKE2B 54110f3767b5d1d3d4bffc82b767d3c92114c55449ad10705ed10b8815ecc9c337016348886acc3df21d5f27be5d93bbe3c203173167146ff9859bd03f0be7a6 SHA512 6c973b0b88e2c8aecbab694b456762973c5f60217bbf6bc81f4d81226fe8124596bddfe7c190f35307ec3ad6376858ce8f686c74aaebec133124377d8a9e4898
28
29 diff --git a/net-im/dino/dino-0.2.2.ebuild b/net-im/dino/dino-0.2.2.ebuild
30 new file mode 100644
31 index 00000000000..169e9707eef
32 --- /dev/null
33 +++ b/net-im/dino/dino-0.2.2.ebuild
34 @@ -0,0 +1,79 @@
35 +# Copyright 1999-2021 Gentoo Authors
36 +# Distributed under the terms of the GNU General Public License v2
37 +
38 +EAPI=7
39 +
40 +CMAKE_MAKEFILE_GENERATOR="ninja"
41 +VALA_MIN_API_VERSION="0.34"
42 +inherit cmake vala xdg
43 +
44 +DESCRIPTION="Modern Jabber/XMPP Client using GTK+/Vala"
45 +HOMEPAGE="https://dino.im"
46 +
47 +LICENSE="GPL-3"
48 +SLOT="0"
49 +IUSE="+gpg +http +omemo +notification-sound test"
50 +RESTRICT="!test? ( test )"
51 +
52 +MY_REPO_URI="https://github.com/dino/dino"
53 +if [[ ${PV} == "9999" ]]; then
54 + EGIT_REPO_URI="${MY_REPO_URI}.git"
55 + inherit git-r3
56 +else
57 + KEYWORDS="~amd64 ~arm64"
58 + SRC_URI="${MY_REPO_URI}/releases/download/v${PV}/${P}.tar.gz"
59 +fi
60 +
61 +RDEPEND="
62 + app-text/gspell[vala]
63 + dev-db/sqlite:3
64 + dev-libs/glib:2
65 + dev-libs/icu
66 + dev-libs/libgee:0.8
67 + net-libs/glib-networking
68 + net-libs/libsignal-protocol-c
69 + x11-libs/cairo
70 + x11-libs/gdk-pixbuf:2
71 + x11-libs/gtk+:3
72 + x11-libs/pango
73 + gpg? ( app-crypt/gpgme:1 )
74 + http? ( net-libs/libsoup:2.4 )
75 + omemo? (
76 + dev-libs/libgcrypt:0
77 + media-gfx/qrencode
78 + )
79 + notification-sound? ( media-libs/libcanberra:0[sound] )
80 +"
81 +DEPEND="
82 + $(vala_depend)
83 + ${RDEPEND}
84 + sys-devel/gettext
85 +"
86 +
87 +src_prepare() {
88 + cmake_src_prepare
89 + vala_src_prepare
90 +}
91 +
92 +src_configure() {
93 + local disabled_plugins=(
94 + $(usex gpg "" "openpgp")
95 + $(usex omemo "" "omemo")
96 + $(usex http "" "http-files")
97 + )
98 + local enabled_plugins=(
99 + $(usex notification-sound "notification-sound" "")
100 + )
101 + local mycmakeargs+=(
102 + "-DENABLED_PLUGINS=$(local IFS=";"; echo "${enabled_plugins[*]}")"
103 + "-DDISABLED_PLUGINS=$(local IFS=";"; echo "${disabled_plugins[*]}")"
104 + "-DVALA_EXECUTABLE=${VALAC}"
105 + "-DBUILD_TESTS=$(usex test)"
106 + )
107 +
108 + cmake_src_configure
109 +}
110 +
111 +src_test() {
112 + "${BUILD_DIR}"/xmpp-vala-test || die
113 +}