summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--net-im/profanity/metadata.xml26
-rw-r--r--net-im/profanity/profanity-0.14.0-r2.ebuild107
2 files changed, 133 insertions, 0 deletions
diff --git a/net-im/profanity/metadata.xml b/net-im/profanity/metadata.xml
new file mode 100644
index 0000000..7b75b4c
--- /dev/null
+++ b/net-im/profanity/metadata.xml
@@ -0,0 +1,26 @@
1<?xml version="1.0" encoding="UTF-8"?>
2<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
3<pkgmetadata>
4 <maintainer type="person" proxied="yes">
5 <email>jubalh@iodoru.org</email>
6 <name>Michael Vetter</name>
7 </maintainer>
8 <maintainer type="project" proxied="proxy">
9 <email>proxy-maint@gentoo.org</email>
10 <name>Proxy Maintainers</name>
11 </maintainer>
12 <longdescription>
13 Profanity is a console based XMPP client written in C using
14 ncurses and libstrophe, inspired by Irssi.
15 </longdescription>
16 <use>
17 <flag name="gpg">Enable OpenPGP encryption</flag>
18 <flag name="omemo">Enable OMEMO encryption</flag>
19 <flag name="omemo-qrcode">Enable exchanging OMEMO information via QR code</flag>
20 <flag name="otr">Enable encrypted conversations using Off-The-Records messaging</flag>
21 <flag name="python">Enable Python plugins support</flag>
22 </use>
23 <upstream>
24 <remote-id type="github">profanity-im/profanity</remote-id>
25 </upstream>
26</pkgmetadata>
diff --git a/net-im/profanity/profanity-0.14.0-r2.ebuild b/net-im/profanity/profanity-0.14.0-r2.ebuild
new file mode 100644
index 0000000..6a91a53
--- /dev/null
+++ b/net-im/profanity/profanity-0.14.0-r2.ebuild
@@ -0,0 +1,107 @@
1# Copyright 1999-2025 Gentoo Authors
2# Distributed under the terms of the GNU General Public License v2
3
4EAPI=8
5
6PYTHON_COMPAT=( python3_{10..13} )
7inherit flag-o-matic python-single-r1
8
9DESCRIPTION="A console based XMPP client inspired by Irssi"
10HOMEPAGE="https://profanity-im.github.io"
11SRC_URI="
12 https://github.com/profanity-im/profanity/releases/download/${PV}/${P}.tar.gz
13 https://github.com/profanity-im/profanity/commit/122434a.patch
14 -> ${PN}-0.14.0-ox-carbons.patch
15 https://github.com/profanity-im/profanity/commit/2ed6211c.patch
16 -> ${PN}-0.14.0-xscreensaver.patch
17 https://github.com/profanity-im/profanity/commit/b8817470.patch
18 -> ${PN}-0.14.0-plugins-install.patch
19 https://github.com/profanity-im/profanity/commit/6b9d0e86.patch
20 -> ${PN}-0.14.0-fix-test-lto.patch
21"
22
23LICENSE="GPL-3"
24SLOT="0"
25KEYWORDS="amd64 ~arm64"
26IUSE="libnotify omemo omemo-qrcode otr gpg test xscreensaver python"
27RESTRICT="!test? ( test )"
28REQUIRED_USE="omemo-qrcode? ( omemo ) python? ( ${PYTHON_REQUIRED_USE} )"
29
30RDEPEND="
31 >=app-accessibility/at-spi2-core-2.46.0
32 dev-db/sqlite:3
33 dev-libs/glib:2
34 >=dev-libs/libstrophe-0.12.3:=
35 media-libs/harfbuzz:=
36 net-misc/curl
37 sys-libs/ncurses:=[unicode(+)]
38 sys-libs/readline:=
39 x11-libs/cairo
40 x11-libs/gdk-pixbuf:2
41 x11-libs/gtk+:3
42 x11-libs/pango
43 x11-misc/shared-mime-info
44 gpg? ( app-crypt/gpgme:= )
45 libnotify? ( x11-libs/libnotify )
46 omemo? (
47 dev-libs/libgcrypt:=
48 net-libs/libsignal-protocol-c
49 )
50 omemo-qrcode? ( media-gfx/qrencode:= )
51 otr? ( net-libs/libotr )
52 python? ( ${PYTHON_DEPS} )
53 xscreensaver? (
54 x11-libs/libXScrnSaver
55 x11-libs/libX11
56 )
57"
58DEPEND="
59 ${RDEPEND}
60 test? ( dev-util/cmocka )
61 python? (
62 $(python_gen_cond_dep '
63 dev-python/cython[${PYTHON_USEDEP}]
64 ')
65 )
66"
67
68PATCHES=(
69 "${DISTDIR}/${PN}-0.14.0-ox-carbons.patch"
70 "${DISTDIR}/${PN}-0.14.0-xscreensaver.patch"
71 "${DISTDIR}/${PN}-0.14.0-plugins-install.patch"
72 "${DISTDIR}/${PN}-0.14.0-fix-test-lto.patch"
73)
74
75pkg_setup() {
76 use python && python-single-r1_pkg_setup
77}
78
79src_configure() {
80 # -Werror=lto-type-mismatch
81 # https://bugs.gentoo.org/932874
82 # https://github.com/profanity-im/profanity/issues/1992
83 filter-lto
84
85 local myeconfargs=(
86 --enable-gdk-pixbuf
87 $(use_enable libnotify notifications)
88 $(use_enable omemo)
89 $(use_enable omemo-qrcode)
90 $(use_enable otr)
91 $(use_enable python python-plugins)
92 $(use_enable gpg pgp)
93 $(use_with xscreensaver)
94 )
95
96 econf "${myeconfargs[@]}"
97}
98
99src_compile() {
100 emake CFLAGS="${CFLAGS}"
101}
102
103src_install() {
104 default
105
106 find "${ED}" -type f -name '*.la' -delete || die
107}