From b7d6efaaa2e502b651d23e210ea7a8da874c3b2f Mon Sep 17 00:00:00 2001 From: Gerben Jan Dijkman Date: Mon, 9 Aug 2021 15:46:45 +0200 Subject: [PATCH] Added dino with libhandy --- net-im/dino-libhandy/Manifest | 1 + .../dino-libhandy/dino-libhandy-0.2.1.ebuild | 92 +++++++++++++++++++ net-im/dino-libhandy/metadata.xml | 8 ++ 3 files changed, 101 insertions(+) create mode 100644 net-im/dino-libhandy/Manifest create mode 100644 net-im/dino-libhandy/dino-libhandy-0.2.1.ebuild create mode 100644 net-im/dino-libhandy/metadata.xml diff --git a/net-im/dino-libhandy/Manifest b/net-im/dino-libhandy/Manifest new file mode 100644 index 0000000..d3dffb9 --- /dev/null +++ b/net-im/dino-libhandy/Manifest @@ -0,0 +1 @@ +DIST dino-libhandy-0.2.1 633079 BLAKE2B 1769d64f68f96bd4122ced2f5851526371d5a1e74fff14427dba54bf0500b2e81f1a626707b35f9b90c7b8041edbdb7e9fc494ea26916aba90907d6d36620fbf SHA512 00223adc3c37a506fb31afac27caf4e713447a0a58b0a15d6db602e960d686fd5ea916b85fc3007ec7870e28b30d2265e2d23133007c28491e28419efb169c54 diff --git a/net-im/dino-libhandy/dino-libhandy-0.2.1.ebuild b/net-im/dino-libhandy/dino-libhandy-0.2.1.ebuild new file mode 100644 index 0000000..45ea87d --- /dev/null +++ b/net-im/dino-libhandy/dino-libhandy-0.2.1.ebuild @@ -0,0 +1,92 @@ +# Copyright 1999-2021 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 gnome2-utils vala xdg-utils + +COMMIT="093491d132bdfbc89794067fbbddfa3ff30c7c0f" + +DESCRIPTION="Modern Jabber/XMPP Client using GTK+/Vala with gui-libs/libhandy for mobile device use" +HOMEPAGE="https://dino.im" +LICENSE="GPL-3" +SLOT="0" +IUSE="+gpg +http +omemo +notification-sound" + +MY_REPO_URI="https://github.com/dino/dino" +KEYWORDS="amd64 arm64" +SRC_URI="${MY_REPO_URI}/archive/${COMMIT}.tar.gz -> ${PN}-${PV}" + + +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 + gui-libs/libhandy + gpg? ( app-crypt/gpgme:1 ) + 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}" + ) + + if has test ${FEATURES}; then + mycmakeargs+=("-DBUILD_TESTS=yes") + fi + + cmake_src_configure +} + +src_test() { + "${BUILD_DIR}"/xmpp-vala-test || die +} + +update_caches() { + gnome2_icon_cache_update + xdg_desktop_database_update +} + +pkg_postinst() { + update_caches +} + +pkg_postrm() { + update_caches +} diff --git a/net-im/dino-libhandy/metadata.xml b/net-im/dino-libhandy/metadata.xml new file mode 100644 index 0000000..55bfe49 --- /dev/null +++ b/net-im/dino-libhandy/metadata.xml @@ -0,0 +1,8 @@ + + + + + gjdijkman@gjdwebserver.nl + Gerben Jan Dijkman + +