summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikle Kolyada <zlogene@gentoo.org>2019-02-12 20:03:17 +0300
committerMikle Kolyada <zlogene@gentoo.org>2019-02-12 20:05:17 +0300
commitb0a9e5897fb7e5181783e3684894f5babe93eaad (patch)
tree615f149ca60bc38bd010ecf64eb9ba06f7e71cbc /net-irc/irssi
parentnet-analyzer/tcpreplay: Clean up patches (diff)
downloadgentoo-b0a9e5897fb7e5181783e3684894f5babe93eaad.tar.gz
gentoo-b0a9e5897fb7e5181783e3684894f5babe93eaad.tar.bz2
gentoo-b0a9e5897fb7e5181783e3684894f5babe93eaad.zip
net-irc/irssi: fix libutf8proc header location
Signed-off-by: Mikle Kolyada <zlogene@gentoo.org> Package-Manager: Portage-2.3.51, Repoman-2.3.11
Diffstat (limited to 'net-irc/irssi')
-rw-r--r--net-irc/irssi/files/irssi-1.2.0-fix-libutf8proc-include.patch25
-rw-r--r--net-irc/irssi/irssi-1.2.0-r1.ebuild68
2 files changed, 93 insertions, 0 deletions
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
index 000000000000..019c2660eeca
--- /dev/null
+++ b/net-irc/irssi/files/irssi-1.2.0-fix-libutf8proc-include.patch
@@ -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
index 000000000000..dd02f3d769d7
--- /dev/null
+++ b/net-irc/irssi/irssi-1.2.0-r1.ebuild
@@ -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
+}