diff options
Diffstat (limited to 'net-irc/irssi/irssi-9999.ebuild')
-rw-r--r-- | net-irc/irssi/irssi-9999.ebuild | 86 |
1 files changed, 43 insertions, 43 deletions
diff --git a/net-irc/irssi/irssi-9999.ebuild b/net-irc/irssi/irssi-9999.ebuild index a73888fc5871..833dab6c2a40 100644 --- a/net-irc/irssi/irssi-9999.ebuild +++ b/net-irc/irssi/irssi-9999.ebuild @@ -1,72 +1,72 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI="6" +EAPI=8 GENTOO_DEPEND_ON_PERL="no" - -inherit autotools perl-module git-r3 - -EGIT_REPO_URI="https://github.com/${PN}/${PN}.git" +inherit perl-module meson DESCRIPTION="A modular textUI IRC client with IPv6 support" HOMEPAGE="https://irssi.org/" + +if [[ ${PV} == *9999* ]] ; then + EGIT_REPO_URI="https://github.com/${PN}/${PN}.git" + inherit git-r3 +else + # Keep for _rc compability + MY_P="${P/_/-}" + + SRC_URI="https://github.com/${PN}/${PN}/releases/download/${PV/_/-}/${MY_P}.tar.xz" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +fi + LICENSE="GPL-2" SLOT="0" -IUSE="otr +perl selinux socks5 +proxy" +IUSE="otr +perl selinux +proxy" -COMMON_DEPEND="sys-libs/ncurses:0= +RDEPEND=" >=dev-libs/glib-2.6.0 dev-libs/openssl:= + sys-libs/ncurses:= otr? ( - >=dev-libs/libgcrypt-1.2.0:0= + >=dev-libs/libgcrypt-1.2.0:= >=net-libs/libotr-4.1.0 ) perl? ( dev-lang/perl:= ) - socks5? ( >=net-proxy/dante-1.1.18 )" - -DEPEND=" - ${COMMON_DEPEND} - virtual/pkgconfig +" +DEPEND="${RDEPEND}" +BDEPEND=" dev-lang/perl - || ( - www-client/lynx - www-client/elinks - )" - -RDEPEND=" - ${COMMON_DEPEND} - selinux? ( sec-policy/selinux-irc )" + virtual/pkgconfig +" +RDEPEND+=" selinux? ( sec-policy/selinux-irc )" -src_prepare() { - sed -i -e /^autoreconf/d autogen.sh || die - NOCONFIGURE=1 ./autogen.sh || die +src_configure() { + local emesonargs=( + -Ddocdir="${EPREFIX}"/usr/share/doc/${PF} + -Dwith-perl-lib=vendor + -Dwith-otr=$(usex otr) + -Dwith-proxy=$(usex proxy) + -Dwith-perl=$(usex perl) + + # Carried over from autotools (for now?), bug #677804 + -Ddisable-utf8proc=yes + -Dwith-fuzzer=no + -Dinstall-glib=no + ) - default - eautoreconf + meson_src_configure } -src_configure() { - # Disable automagic dependency on dev-libs/libutf8proc (bug #677804) - export ac_cv_lib_utf8proc_utf8proc_version=no - - local myeconfargs=( - --with-perl-lib=vendor - --enable-true-color - $(use_with otr) - $(use_with proxy) - $(use_with perl) - $(use_with socks5 socks) - ) - econf "${myeconfargs[@]}" +src_test() { + # We don't want perl-module's src_test + meson_src_test } src_install() { - default + meson_src_install use perl && perl_delete_localpod - rm -f "${ED}"/usr/$(get_libdir)/irssi/modules/*.{a,la} || die - dodoc AUTHORS ChangeLog README.md TODO NEWS } |