net-irc/irssi: fix libutf8proc header location
authorMikle Kolyada <zlogene@gentoo.org>
Tue, 12 Feb 2019 17:03:17 +0000 (20:03 +0300)
committerMikle Kolyada <zlogene@gentoo.org>
Tue, 12 Feb 2019 17:05:17 +0000 (20:05 +0300)
Signed-off-by: Mikle Kolyada <zlogene@gentoo.org>
Package-Manager: Portage-2.3.51, Repoman-2.3.11

net-irc/irssi/files/irssi-1.2.0-fix-libutf8proc-include.patch [new file with mode: 0644]
net-irc/irssi/irssi-1.2.0-r1.ebuild [new file with mode: 0644]

diff --git a/net-irc/irssi/files/irssi-1.2.0-fix-libutf8proc-include.patch b/net-irc/irssi/files/irssi-1.2.0-fix-libutf8proc-include.patch
new file mode 100644 (file)
index 0000000..019c266
--- /dev/null
@@ -0,0 +1,25 @@
+From 138596d84dfa060b5d035b96e7d1a57a7cbcd7b0 Mon Sep 17 00:00:00 2001
+From: Mikle Kolyada <zlogene@gentoo.org>
+Date: Tue, 12 Feb 2019 19:38:36 +0300
+Subject: [PATCH] wcwidth-wrapper.c: fix libutf8proc include path
+
+---
+ src/core/wcwidth-wrapper.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/core/wcwidth-wrapper.c b/src/core/wcwidth-wrapper.c
+index 03d0dc0c..b0df662f 100644
+--- a/src/core/wcwidth-wrapper.c
++++ b/src/core/wcwidth-wrapper.c
+@@ -27,7 +27,7 @@
+ #include "utf8.h"
+ #ifdef HAVE_LIBUTF8PROC
+-#include <utf8proc.h>
++#include <libutf8proc/utf8proc.h>
+ #endif
+ /* wcwidth=2 since unicode 5.2.0 */
+-- 
+2.19.2
+
diff --git a/net-irc/irssi/irssi-1.2.0-r1.ebuild b/net-irc/irssi/irssi-1.2.0-r1.ebuild
new file mode 100644 (file)
index 0000000..dd02f3d
--- /dev/null
@@ -0,0 +1,68 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+GENTOO_DEPEND_ON_PERL="no"
+
+inherit ltprune perl-module
+
+# Keep for _rc compability
+MY_P="${P/_/-}"
+
+DESCRIPTION="A modular textUI IRC client with IPv6 support"
+HOMEPAGE="https://irssi.org/"
+SRC_URI="https://github.com/${PN}/${PN}/releases/download/${PV/_/-}/${MY_P}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+IUSE="otr +perl selinux socks5 +proxy libressl"
+
+COMMON_DEPEND="
+       sys-libs/ncurses:0=
+       >=dev-libs/glib-2.6.0
+       !libressl? ( dev-libs/openssl:= )
+       libressl? ( dev-libs/libressl:= )
+       otr? ( >=dev-libs/libgcrypt-1.2.0:0=
+              >=net-libs/libotr-4.1.0 )
+       perl? ( dev-lang/perl:= )
+       socks5? ( >=net-proxy/dante-1.1.18 )"
+
+DEPEND="
+       ${COMMON_DEPEND}
+       virtual/pkgconfig"
+
+RDEPEND="
+       ${COMMON_DEPEND}
+       dev-libs/libutf8proc
+       selinux? ( sec-policy/selinux-irc )
+       perl? ( !net-im/silc-client )"
+
+RESTRICT="test"
+
+S="${WORKDIR}/${MY_P}"
+
+src_prepare() {
+       default
+       eapply "${FILESDIR}"/${P}-fix-libutf8proc-include.patch
+       if has_version '>=dev-libs/libressl-2.7.3'; then
+       eapply "${FILESDIR}"/libressl.patch
+       fi
+}
+
+src_configure() {
+       econf \
+               --with-perl-lib=vendor \
+               --enable-true-color \
+               $(use_with otr) \
+               $(use_with proxy) \
+               $(use_with perl) \
+               $(use_with socks5 socks)
+}
+
+src_install() {
+       default
+       use perl && perl_delete_localpod
+       prune_libtool_files --modules
+}