Gentoo Archives: gentoo-commits

From: Haelwenn Monnier <contact@×××××××××.me>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: net-im/Quaternion/
Date: Thu, 16 Sep 2021 01:07:39
Message-Id: 1631754303.072ac98325dbe1c3397fd8dd18f5c7f6271ec8b6.lanodan@gentoo
1 commit: 072ac98325dbe1c3397fd8dd18f5c7f6271ec8b6
2 Author: Haelwenn (lanodan) Monnier <contact <AT> hacktivis <DOT> me>
3 AuthorDate: Thu Sep 16 01:04:54 2021 +0000
4 Commit: Haelwenn Monnier <contact <AT> hacktivis <DOT> me>
5 CommitDate: Thu Sep 16 01:05:03 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=072ac983
7
8 net-im/Quaternion: New Package
9
10 Signed-off-by: Haelwenn (lanodan) Monnier <contact <AT> hacktivis.me>
11
12 net-im/Quaternion/Manifest | 1 +
13 net-im/Quaternion/Quaternion-0.0.9.4e.ebuild | 44 ++++++++++++++++++++++++++++
14 net-im/Quaternion/metadata.xml | 11 +++++++
15 3 files changed, 56 insertions(+)
16
17 diff --git a/net-im/Quaternion/Manifest b/net-im/Quaternion/Manifest
18 new file mode 100644
19 index 000000000..daa814f3c
20 --- /dev/null
21 +++ b/net-im/Quaternion/Manifest
22 @@ -0,0 +1 @@
23 +DIST Quaternion-0.0.9.4e.tar.gz 999309 BLAKE2B 7f1763fa5340f11f7ed5aee0fa7e3f91764cad7f248ba1be26472866d7cf2b78e2144d0719a89a9b78503f744ca424c1eb2d3dd91f4c6677ea23255166466be8 SHA512 5478892b7dce96a60f1429ee6dff9dd0b4fbb89bf45ecc2e499ee90f615af4de12d1de0002804420a85a21a6ba533e4799c94d2411067cb7d7aacca183d9d981
24
25 diff --git a/net-im/Quaternion/Quaternion-0.0.9.4e.ebuild b/net-im/Quaternion/Quaternion-0.0.9.4e.ebuild
26 new file mode 100644
27 index 000000000..c1b4545d7
28 --- /dev/null
29 +++ b/net-im/Quaternion/Quaternion-0.0.9.4e.ebuild
30 @@ -0,0 +1,44 @@
31 +# Copyright 2019-2021 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=7
35 +
36 +inherit cmake
37 +
38 +DESCRIPTION="A Qt5-based IM client for the Matrix protocol"
39 +HOMEPAGE="https://github.com/QMatrixClient/Quaternion https://matrix.org/docs/projects/client/quaternion.html"
40 +SRC_URI="https://github.com/QMatrixClient/Quaternion/archive/${PV}.tar.gz -> ${P}.tar.gz"
41 +SLOT="0"
42 +LICENSE="GPL-3"
43 +KEYWORDS="~amd64"
44 +IUSE="+keychain"
45 +
46 +DEPEND="
47 + dev-qt/qtwidgets:5=
48 + dev-qt/qtnetwork:5=
49 + dev-qt/qtquickcontrols:5=
50 + dev-qt/qtquickcontrols2:5=
51 + dev-qt/qtscript:5=
52 + dev-qt/qtgui:5=
53 + dev-qt/linguist-tools:5=
54 + dev-qt/qtmultimedia:5=
55 + >=net-libs/libqmatrixclient-0.5.1:=
56 + keychain? ( dev-libs/qtkeychain:= )
57 +"
58 +
59 +src_prepare() {
60 + # I wouldn't be surprised that Qt on a Ubuntu PPA is broken
61 + # https://github.com/quotient-im/Quaternion/pull/484/files#r256167611
62 + sed -i 's/Multimedia DBus)/Multimedia)/' CMakeLists.txt || die "Failed removing hard-dep on QtDbus"
63 +
64 + default
65 + cmake_src_prepare
66 +}
67 +
68 +src_configure() {
69 + local mycmakeargs=(
70 + -DUSE_KEYCHAIN=$(usex keychain)
71 + )
72 +
73 + cmake_src_configure
74 +}
75
76 diff --git a/net-im/Quaternion/metadata.xml b/net-im/Quaternion/metadata.xml
77 new file mode 100644
78 index 000000000..b2439633a
79 --- /dev/null
80 +++ b/net-im/Quaternion/metadata.xml
81 @@ -0,0 +1,11 @@
82 +<?xml version="1.0" encoding="UTF-8"?>
83 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
84 +<pkgmetadata>
85 + <maintainer type="person">
86 + <email>contact@×××××××××.me</email>
87 + <name>Haelwenn (lanodan) Monnier</name>
88 + </maintainer>
89 + <use>
90 + <flag name="keychain">Enable support for password storage via <pkg>dev-libs/qtkeychain</pkg></flag>
91 + </use>
92 +</pkgmetadata>