From 74600d25b0db5928286c2c8393f3965b5f80cedf Mon Sep 17 00:00:00 2001 From: Gerben Jan Dijkman Date: Mon, 11 Jul 2022 14:22:39 +0200 Subject: [PATCH] Added dino with libhandy --- net-im/dino-libhandy/Manifest | 1 + .../dino-libhandy/dino-libhandy-0.2.2.ebuild | 74 +++++++++++++++++++ net-im/dino-libhandy/files/README.gentoo | 23 ++++++ 3 files changed, 98 insertions(+) create mode 100644 net-im/dino-libhandy/Manifest create mode 100644 net-im/dino-libhandy/dino-libhandy-0.2.2.ebuild create mode 100644 net-im/dino-libhandy/files/README.gentoo diff --git a/net-im/dino-libhandy/Manifest b/net-im/dino-libhandy/Manifest new file mode 100644 index 0000000..ecb67be --- /dev/null +++ b/net-im/dino-libhandy/Manifest @@ -0,0 +1 @@ +DIST dino-libhandy-0.2.2.tar.gz 739269 BLAKE2B 890c4d3dfee899f570893ca788302312d160ed5af8f87350a8a9809791c7e948d495026ab01e5471179200e98b0ab6b4002e8cdbe1be07e3c6d43ddc85e37012 SHA512 1157c2221b0b127b151b79d6a5b1dd0a4141b9022cd148e2e347be026af950744d8a1030bb02ff27c3410653e3f18b30a5d2659fe2b24620e64004e95343e31d diff --git a/net-im/dino-libhandy/dino-libhandy-0.2.2.ebuild b/net-im/dino-libhandy/dino-libhandy-0.2.2.ebuild new file mode 100644 index 0000000..2c3baff --- /dev/null +++ b/net-im/dino-libhandy/dino-libhandy-0.2.2.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +CMAKE_MAKEFILE_GENERATOR="ninja" +VALA_MIN_API_VERSION="0.34" +inherit cmake vala xdg + +DESCRIPTION="Modern Jabber/XMPP Client using GTK+/Vala" +HOMEPAGE="https://dino.im" +COMMIT="c848191a034a920266687002045abc5e1f42b070" + +LICENSE="GPL-3" +SLOT="0" +IUSE="+gpg +http +omemo +notification-sound test" +RESTRICT="!test? ( test )" + +KEYWORDS="~amd64 ~arm64" +SRC_URI="https://github.com/dino/dino/archive/${COMMIT}.tar.gz -> ${P}.tar.gz" + +RDEPEND=" + app-text/gspell[vala] + dev-db/sqlite:3 + dev-libs/glib:2 + dev-libs/icu + dev-libs/libgee:0.8 + net-libs/glib-networking + net-libs/libsignal-protocol-c + x11-libs/cairo + x11-libs/gdk-pixbuf:2 + x11-libs/gtk+:3 + x11-libs/pango + gpg? ( app-crypt/gpgme:= ) + http? ( net-libs/libsoup:2.4 ) + omemo? ( + dev-libs/libgcrypt:0 + media-gfx/qrencode + ) + notification-sound? ( media-libs/libcanberra:0[sound] ) +" +DEPEND=" + $(vala_depend) + ${RDEPEND} + sys-devel/gettext +" + +src_prepare() { + cmake_src_prepare + vala_src_prepare +} + +src_configure() { + local disabled_plugins=( + $(usex gpg "" "openpgp") + $(usex omemo "" "omemo") + $(usex http "" "http-files") + ) + local enabled_plugins=( + $(usex notification-sound "notification-sound" "") + ) + local mycmakeargs+=( + "-DENABLED_PLUGINS=$(local IFS=";"; echo "${enabled_plugins[*]}")" + "-DDISABLED_PLUGINS=$(local IFS=";"; echo "${disabled_plugins[*]}")" + "-DVALA_EXECUTABLE=${VALAC}" + "-DBUILD_TESTS=$(usex test)" + ) + + cmake_src_configure +} + +src_test() { + "${BUILD_DIR}"/xmpp-vala-test || die +} diff --git a/net-im/dino-libhandy/files/README.gentoo b/net-im/dino-libhandy/files/README.gentoo new file mode 100644 index 0000000..b51e439 --- /dev/null +++ b/net-im/dino-libhandy/files/README.gentoo @@ -0,0 +1,23 @@ +To enable video calls, install the following packages. + +Transport level security: +- gst-plugins-srtp +- gst-plugins-dtls + +Peer to peer connection reliability: +- gst-plugins-libnice + +Video output into a window: +- gst-plugins-gtk + +At least one codec is needed in common with the other end of the call, as they +are negotiated when the call begins. + +Video codecs: +- gst-plugins-x264 +- gst-plugins-vpx + +Audio codecs: +- gst-plugins-good +- gst-plugins-speex +- gst-plugins-opus