diff --git a/net-im/profanity/Manifest b/net-im/profanity/Manifest new file mode 100644 index 0000000..820b383 --- /dev/null +++ b/net-im/profanity/Manifest @@ -0,0 +1 @@ +DIST profanity-0.18.0.tar.xz 440716 BLAKE2B 126024902e2174cc1c47301ed2fbac134f858e71ca299ca2808a038296ceb0953b6c20f658b35c0e24a3a8dc580cf781985420d2c6739ea36e371b0c5200dec1 SHA512 e2389e0b64a7f40166fc3bac8e252b210d2b7ce2d173792d7ee5c9f32c73bbfa2609ffd70e788ae4988e5737502c3cbc8f5a766857f0116655828d16349d7680 diff --git a/net-im/profanity/metadata.xml b/net-im/profanity/metadata.xml new file mode 100644 index 0000000..e69438a --- /dev/null +++ b/net-im/profanity/metadata.xml @@ -0,0 +1,22 @@ + + + + + shinyoukai@laidback.moe + Shin'ya Minazuki + + + profanity-im/profanity + + + Enable OpenPGP encryption + Enable avatar upload and resizing + Enable system tray icon support + Enable OMEMO encryption + Enable exchanging OMEMO information via QR code + Enable encrypted conversations using Off-The-Records messaging + Enable C plugins support + Enable Python plugins support + Enable spell checking support + + diff --git a/net-im/profanity/profanity-0.18.0.ebuild b/net-im/profanity/profanity-0.18.0.ebuild new file mode 100644 index 0000000..52de25a --- /dev/null +++ b/net-im/profanity/profanity-0.18.0.ebuild @@ -0,0 +1,81 @@ +# Copyright 2026 Shin'ya Minazuki +# This file was not copied from ::gentoo, this is written from scratch +EAPI=8 + +PYTHON_COMPAT=( python3_{11..13} ) +inherit flag-o-matic python-single-r1 meson + +DESCRIPTION="A console based XMPP client inspired by Irssi" +HOMEPAGE="https://profanity-im.github.io https://github.com/profanity-im/profanity" +SRC_URI="https://profanity-im.github.io/tarballs/${P}.tar.xz" + +LICENSE="GPL-3+" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" + +# At the top, required run-time dependencies +# At the bottom, all optional dependencies (with USE flags) +DEPEND=" + dev-db/sqlite:3 + dev-libs/glib:2 + >=dev-libs/libstrophe-0.12.3:= + net-misc/curl + sys-libs/ncurses:=[unicode(+)] + sys-libs/readline:= + gdk-pixbuf? ( x11-libs/gdk-pixbuf:2 ) + gtk? ( x11-libs/gtk+3 ) + omemo? ( + dev-libs/libgcrypt + net-libs/libsignal-protocol-c + ) + omemo-qrcode? ( media-gfx/qrencode ) + otr? ( net-libs/libotr ) + python? ( ${PYTHON_DEPS} ) + xscreensaver? ( + x11-libs/libXscrnSaver + x11-libs/libX11 + ) + libnotify? ( x11-libs/libnotify ) + gpg? ( app-crypt/gpgme:= ) + spellcheck? ( app-text/enchant ) +" +RDEPEND="${DEPEND}" +BDEPEND="" + +IUSE="libnotify omemo omemo-qrcode otr gpg test xscreensaver python gtk gdk-pixbuf spellcheck plugins" + +REQUIRED_USE=" + omemo-qrcode? ( omemo ) + python? ( ${PYTHON_REQUIRED_USE} ) +" + +pkg_setup() { + use python && python-single-r1_pkg_setup +} + +src_configure() { + # [net-im/profanity::gentoo] lto-type-mismatch in tests + filter-lto + + local emesonargs=( + $(meson_feature libnotify notifications) + $(meson_feature omemo) + $(meson_feature omemo-qrcode) + $(meson_feature otr) + $(meson_feature gpg pgp) + $(meson_feature xscreensaver) + $(meson_feature gtk icons-and-clipboard) + $(meson_feature gdk-pixbuf) + $(meson_feature spellcheck) + $(meson_feature plugins c-plugins) + ) + + meson_src_configure +} +src_compile() { + meson_src_compile +} + +src_install() { + meson_src_install +}