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