diff options
| author | kar <git@13f0.net> | 2025-05-25 20:54:31 -0400 |
|---|---|---|
| committer | kar <git@13f0.net> | 2025-05-25 20:54:39 -0400 |
| commit | 61838bba61219fd3f1fa98d01fef16dac376515e (patch) | |
| tree | e8fe2ef6c21ae4326a886fa642096ed6dc18e75b | |
| parent | 8e9a0ff75fa4eea557967d53effad84143df168b (diff) | |
import net-im/profanity from main overlay
| -rw-r--r-- | net-im/profanity/metadata.xml | 26 | ||||
| -rw-r--r-- | net-im/profanity/profanity-0.14.0-r2.ebuild | 107 |
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 | |||
| 4 | EAPI=8 | ||
| 5 | |||
| 6 | PYTHON_COMPAT=( python3_{10..13} ) | ||
| 7 | inherit flag-o-matic python-single-r1 | ||
| 8 | |||
| 9 | DESCRIPTION="A console based XMPP client inspired by Irssi" | ||
| 10 | HOMEPAGE="https://profanity-im.github.io" | ||
| 11 | SRC_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 | |||
| 23 | LICENSE="GPL-3" | ||
| 24 | SLOT="0" | ||
| 25 | KEYWORDS="amd64 ~arm64" | ||
| 26 | IUSE="libnotify omemo omemo-qrcode otr gpg test xscreensaver python" | ||
| 27 | RESTRICT="!test? ( test )" | ||
| 28 | REQUIRED_USE="omemo-qrcode? ( omemo ) python? ( ${PYTHON_REQUIRED_USE} )" | ||
| 29 | |||
| 30 | RDEPEND=" | ||
| 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 | " | ||
| 58 | DEPEND=" | ||
| 59 | ${RDEPEND} | ||
| 60 | test? ( dev-util/cmocka ) | ||
| 61 | python? ( | ||
| 62 | $(python_gen_cond_dep ' | ||
| 63 | dev-python/cython[${PYTHON_USEDEP}] | ||
| 64 | ') | ||
| 65 | ) | ||
| 66 | " | ||
| 67 | |||
| 68 | PATCHES=( | ||
| 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 | |||
| 75 | pkg_setup() { | ||
| 76 | use python && python-single-r1_pkg_setup | ||
| 77 | } | ||
| 78 | |||
| 79 | src_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 | |||
| 99 | src_compile() { | ||
| 100 | emake CFLAGS="${CFLAGS}" | ||
| 101 | } | ||
| 102 | |||
| 103 | src_install() { | ||
| 104 | default | ||
| 105 | |||
| 106 | find "${ED}" -type f -name '*.la' -delete || die | ||
| 107 | } | ||
