diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-03-24 12:47:36 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-03-24 12:47:36 +0000 |
commit | 8754edd0ec2acb9adff6949db1f80e7fe51bd7e4 (patch) | |
tree | f9f36bd16b332e8b31192fcacfe7cba4ebb3a4a6 /net-im/dino/dino-0.3.2.ebuild | |
parent | e8932755452c72a02ecae0b3f37395d1f607bbef (diff) |
gentoo auto-resync : 24:03:2023 - 12:47:36
Diffstat (limited to 'net-im/dino/dino-0.3.2.ebuild')
-rw-r--r-- | net-im/dino/dino-0.3.2.ebuild | 90 |
1 files changed, 90 insertions, 0 deletions
diff --git a/net-im/dino/dino-0.3.2.ebuild b/net-im/dino/dino-0.3.2.ebuild new file mode 100644 index 000000000000..3dbdd954e2be --- /dev/null +++ b/net-im/dino/dino-0.3.2.ebuild @@ -0,0 +1,90 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake vala xdg readme.gentoo-r1 + +DESCRIPTION="Modern Jabber/XMPP Client using GTK+/Vala" +HOMEPAGE="https://dino.im" + +LICENSE="GPL-3" +SLOT="0" +IUSE="+gpg +http +omemo +notification-sound test" +RESTRICT="!test? ( test )" + +MY_REPO_URI="https://github.com/dino/dino" +if [[ ${PV} == "9999" ]]; then + EGIT_REPO_URI="${MY_REPO_URI}.git" + inherit git-r3 +else + KEYWORDS="amd64 arm64" + SRC_URI="${MY_REPO_URI}/releases/download/v${PV}/${P}.tar.gz" +fi + +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/libnice-0.1.15 + net-libs/libsignal-protocol-c + net-libs/libsrtp:2 + 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=" + ${RDEPEND} + media-libs/gst-plugins-base + media-libs/gstreamer +" +BDEPEND=" + sys-devel/gettext + $(vala_depend) +" + +src_configure() { + vala_setup + + 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 +} + +src_install() { + cmake_src_install + readme.gentoo_create_doc +} + +pkg_postinst() { + xdg_pkg_postinst + readme.gentoo_print_elog +} |