commit:     072ac98325dbe1c3397fd8dd18f5c7f6271ec8b6
Author:     Haelwenn (lanodan) Monnier <contact <AT> hacktivis <DOT> me>
AuthorDate: Thu Sep 16 01:04:54 2021 +0000
Commit:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Thu Sep 16 01:05:03 2021 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=072ac983

net-im/Quaternion: New Package

Signed-off-by: Haelwenn (lanodan) Monnier <contact <AT> hacktivis.me>

 net-im/Quaternion/Manifest                   |  1 +
 net-im/Quaternion/Quaternion-0.0.9.4e.ebuild | 44 ++++++++++++++++++++++++++++
 net-im/Quaternion/metadata.xml               | 11 +++++++
 3 files changed, 56 insertions(+)

diff --git a/net-im/Quaternion/Manifest b/net-im/Quaternion/Manifest
new file mode 100644
index 000000000..daa814f3c
--- /dev/null
+++ b/net-im/Quaternion/Manifest
@@ -0,0 +1 @@
+DIST Quaternion-0.0.9.4e.tar.gz 999309 BLAKE2B 
7f1763fa5340f11f7ed5aee0fa7e3f91764cad7f248ba1be26472866d7cf2b78e2144d0719a89a9b78503f744ca424c1eb2d3dd91f4c6677ea23255166466be8
 SHA512 
5478892b7dce96a60f1429ee6dff9dd0b4fbb89bf45ecc2e499ee90f615af4de12d1de0002804420a85a21a6ba533e4799c94d2411067cb7d7aacca183d9d981

diff --git a/net-im/Quaternion/Quaternion-0.0.9.4e.ebuild 
b/net-im/Quaternion/Quaternion-0.0.9.4e.ebuild
new file mode 100644
index 000000000..c1b4545d7
--- /dev/null
+++ b/net-im/Quaternion/Quaternion-0.0.9.4e.ebuild
@@ -0,0 +1,44 @@
+# Copyright 2019-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit cmake
+
+DESCRIPTION="A Qt5-based IM client for the Matrix protocol"
+HOMEPAGE="https://github.com/QMatrixClient/Quaternion 
https://matrix.org/docs/projects/client/quaternion.html";
+SRC_URI="https://github.com/QMatrixClient/Quaternion/archive/${PV}.tar.gz -> 
${P}.tar.gz"
+SLOT="0"
+LICENSE="GPL-3"
+KEYWORDS="~amd64"
+IUSE="+keychain"
+
+DEPEND="
+       dev-qt/qtwidgets:5=
+       dev-qt/qtnetwork:5=
+       dev-qt/qtquickcontrols:5=
+       dev-qt/qtquickcontrols2:5=
+       dev-qt/qtscript:5=
+       dev-qt/qtgui:5=
+       dev-qt/linguist-tools:5=
+       dev-qt/qtmultimedia:5=
+       >=net-libs/libqmatrixclient-0.5.1:=
+       keychain? ( dev-libs/qtkeychain:= )
+"
+
+src_prepare() {
+       # I wouldn't be surprised that Qt on a Ubuntu PPA is broken
+       # https://github.com/quotient-im/Quaternion/pull/484/files#r256167611
+       sed -i 's/Multimedia DBus)/Multimedia)/' CMakeLists.txt || die "Failed 
removing hard-dep on QtDbus"
+
+       default
+       cmake_src_prepare
+}
+
+src_configure() {
+       local mycmakeargs=(
+               -DUSE_KEYCHAIN=$(usex keychain)
+       )
+
+       cmake_src_configure
+}

diff --git a/net-im/Quaternion/metadata.xml b/net-im/Quaternion/metadata.xml
new file mode 100644
index 000000000..b2439633a
--- /dev/null
+++ b/net-im/Quaternion/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <maintainer type="person">
+               <email>[email protected]</email>
+               <name>Haelwenn (lanodan) Monnier</name>
+       </maintainer>
+       <use>
+               <flag name="keychain">Enable support for password storage via 
<pkg>dev-libs/qtkeychain</pkg></flag>
+       </use>
+</pkgmetadata>

Reply via email to