parlay

yet another gentoo overlay
git clone https://git.parazyd.org/parlay
Log | Files | Refs | README

commit 1ee5381589269840a4feffa1af7d9516a0a6dcda
parent 70dd86803aa23ef477980f80104400b0e2f3e857
Author: parazyd <parazyd@dyne.org>
Date:   Tue, 17 Jan 2017 20:14:36 +0100

net-libs/libircclient: Add 1.8 with libressl support.

Diffstat:
Anet-libs/libircclient/Manifest | 1+
Anet-libs/libircclient/files/libircclient-1.6-build.patch | 13+++++++++++++
Anet-libs/libircclient/files/libircclient-1.6-include.patch | 10++++++++++
Anet-libs/libircclient/files/libircclient-1.6-shared.patch | 53+++++++++++++++++++++++++++++++++++++++++++++++++++++
Anet-libs/libircclient/files/libircclient-1.6-static.patch | 12++++++++++++
Anet-libs/libircclient/files/libircclient-1.8-build.patch | 13+++++++++++++
Anet-libs/libircclient/files/libircclient-1.8-include.patch | 10++++++++++
Anet-libs/libircclient/files/libircclient-1.8-shared.patch | 50++++++++++++++++++++++++++++++++++++++++++++++++++
Anet-libs/libircclient/files/libircclient-1.8-static.patch | 12++++++++++++
Anet-libs/libircclient/libircclient-1.8.ebuild | 53+++++++++++++++++++++++++++++++++++++++++++++++++++++
10 files changed, 227 insertions(+), 0 deletions(-)

diff --git a/net-libs/libircclient/Manifest b/net-libs/libircclient/Manifest @@ -0,0 +1 @@ +DIST libircclient-1.8.tar.gz 291803 SHA256 2cf8523ac683588f2785b08159a2df3e4d15939ee655c0024aa86334149de8f6 SHA512 f19e4b55cf49091ab2c83ff3d5cace2252daad6bf23cb61b7677b9c6055fe8a8a7d891f6e1e5962481c836f47b7dcd35ef563c8807737ac81e3c4cee253cfc4a WHIRLPOOL 39550aa403445ca333aeeca2108c6a5e67cbf2eb1f53d313aa4e970f39b702f3862698a0ce7956ad0c93034d9b0f59313b695a7666910872eb9505dd2e895e1b diff --git a/net-libs/libircclient/files/libircclient-1.6-build.patch b/net-libs/libircclient/files/libircclient-1.6-build.patch @@ -0,0 +1,13 @@ +--- libircclient-1.6/configure.in ++++ libircclient-1.6.new/configure.in +@@ -61,9 +61,7 @@ AC_CHECK_FUNCS([localtime_r socket]) + AC_CHECK_LIB(socket, socket, AC_DEFINE(HAVE_SOCKET) LIBS="$LIBS -lsocket") + + if test "$use_debug" = "yes"; then +- CFLAGS="${CFLAGS} -g -DENABLE_DEBUG" +-else +- CFLAGS="${CFLAGS} -O3" ++ CFLAGS="${CFLAGS} -DENABLE_DEBUG" + fi + + # Choosing the target diff --git a/net-libs/libircclient/files/libircclient-1.6-include.patch b/net-libs/libircclient/files/libircclient-1.6-include.patch @@ -0,0 +1,10 @@ +--- libircclient-1.6.orig/include/libircclient.h ++++ libircclient-1.6/include/libircclient.h +@@ -130,6 +130,7 @@ + #define IN_INCLUDE_LIBIRC_H + #include "libirc_errors.h" + #include "libirc_events.h" ++#include "libirc_rfcnumeric.h" + #include "libirc_options.h" + #undef IN_INCLUDE_LIBIRC_H + diff --git a/net-libs/libircclient/files/libircclient-1.6-shared.patch b/net-libs/libircclient/files/libircclient-1.6-shared.patch @@ -0,0 +1,53 @@ +--- libircclient-1.6/src/Makefile.in ++++ libircclient-1.6/src/Makefile.in +@@ -1,10 +1,13 @@ + # $Id$ + CC = @CC@ +-CFLAGS = -Wall -DIN_BUILDING_LIBIRC @CFLAGS@ ++CFLAGS = -fPIC -Wall -DIN_BUILDING_LIBIRC @CFLAGS@ + AR=@AR@ cr + RANLIB=@RANLIB@ ++INSTALL = install ++LN = ln -sf + INCLUDES=-I../include + DESTDIR= ++APIVERSION = 1 + + OBJS = libircclient.o + +@@ -14,19 +17,24 @@ + shared: libircclient.so + shared_mingw: libircclient.dll + +-install: lib +- -mkdir -p $(DESTDIR)@prefix@/include +- -mkdir -p $(DESTDIR)@prefix@/lib +- cp ../include/libircclient.h $(DESTDIR)@prefix@/include/libircclient.h +- cp ../include/libirc_errors.h $(DESTDIR)@prefix@/include/libirc_errors.h +- cp ../include/libirc_events.h $(DESTDIR)@prefix@/include/libirc_events.h +- cp ../include/libirc_options.h $(DESTDIR)@prefix@/include/libirc_options.h +- cp ../include/libirc_rfcnumeric.h $(DESTDIR)@prefix@/include/libirc_rfcnumeric.h +- cp libircclient.so $(DESTDIR)@prefix@/lib/ +- cp libircclient.a $(DESTDIR)@prefix@/lib/ ++install: install-headers install-static install-shared ++install-headers: ++ $(INSTALL) -d $(DESTDIR)@prefix@/include ++ $(INSTALL) -m0644 ../include/libircclient.h $(DESTDIR)@prefix@/include/libircclient.h ++ $(INSTALL) -m0644 ../include/libirc_errors.h $(DESTDIR)@prefix@/include/libirc_errors.h ++ $(INSTALL) -m0644 ../include/libirc_events.h $(DESTDIR)@prefix@/include/libirc_events.h ++ $(INSTALL) -m0644 ../include/libirc_options.h $(DESTDIR)@prefix@/include/libirc_options.h ++ $(INSTALL) -m0644 ../include/libirc_rfcnumeric.h $(DESTDIR)@prefix@/include/libirc_rfcnumeric.h ++install-shared: ++ $(INSTALL) -d $(DESTDIR)@libdir@ ++ $(INSTALL) -m0755 libircclient.so $(DESTDIR)@libdir@/libircclient.so.$(APIVERSION) ++ $(LN) libircclient.so.$(APIVERSION) $(DESTDIR)@libdir@/libircclient.so ++install-static: ++ $(INSTALL) -d $(DESTDIR)@libdir@ ++ $(INSTALL) -m0644 libircclient.a $(DESTDIR)@libdir@/libircclient.a + + libircclient.so: libircclient.o +- $(CC) -shared -s -o libircclient.so libircclient.o @LIBS@ ++ $(CC) $(CFLAGS) -shared -Wl,-soname,libircclient.so.$(APIVERSION) -o libircclient.so libircclient.o $(LDFLAGS) @LIBS@ + + libircclient.dll: libircclient.o + $(CC) -shared -s -o libircclient.dll -Wl,-out-implib,libircclient.lib libircclient.o libircclient.def -lkernel32 -lwsock32 @LIBS@ diff --git a/net-libs/libircclient/files/libircclient-1.6-static.patch b/net-libs/libircclient/files/libircclient-1.6-static.patch @@ -0,0 +1,12 @@ +--- libircclient-1.6.orig/src/Makefile.in ++++ libircclient-1.6/src/Makefile.in +@@ -9,6 +9,9 @@ + DESTDIR= + APIVERSION = 1 + ++prefix = @prefix@ ++exec_prefix = @exec_prefix@ ++ + OBJS = libircclient.o + + all: @TARGET@ diff --git a/net-libs/libircclient/files/libircclient-1.8-build.patch b/net-libs/libircclient/files/libircclient-1.8-build.patch @@ -0,0 +1,13 @@ +--- libircclient-1.7.orig/configure.in ++++ libircclient-1.7/configure.in +@@ -61,9 +61,7 @@ + AC_CHECK_LIB(socket, socket, AC_DEFINE(HAVE_SOCKET) LIBS="$LIBS -lsocket") + + if test "$use_debug" = "yes"; then +- CFLAGS="${CFLAGS} -g -DENABLE_DEBUG" +-else +- CFLAGS="${CFLAGS} -O3" ++ CFLAGS="${CFLAGS} -DENABLE_DEBUG" + fi + + # Choosing the target diff --git a/net-libs/libircclient/files/libircclient-1.8-include.patch b/net-libs/libircclient/files/libircclient-1.8-include.patch @@ -0,0 +1,10 @@ +--- libircclient-1.6.orig/include/libircclient.h ++++ libircclient-1.6/include/libircclient.h +@@ -130,6 +130,7 @@ + #define IN_INCLUDE_LIBIRC_H + #include "libirc_errors.h" + #include "libirc_events.h" ++#include "libirc_rfcnumeric.h" + #include "libirc_options.h" + #undef IN_INCLUDE_LIBIRC_H + diff --git a/net-libs/libircclient/files/libircclient-1.8-shared.patch b/net-libs/libircclient/files/libircclient-1.8-shared.patch @@ -0,0 +1,50 @@ +--- libircclient-1.7.orig/src/Makefile.in ++++ libircclient-1.7/src/Makefile.in +@@ -1,8 +1,10 @@ + # $Id$ + CC = @CC@ +-CFLAGS = -Wall -DIN_BUILDING_LIBIRC @CFLAGS@ ++CFLAGS = -fPIC -Wall -DIN_BUILDING_LIBIRC @CFLAGS@ + AR=@AR@ cr + RANLIB=@RANLIB@ ++INSTALL=install ++LN=ln -sf + INCLUDES=-I../include + DESTDIR= + APIVERSION = 1 +@@ -15,19 +17,24 @@ + shared: libircclient.so + shared_mingw: libircclient.dll + +-install: +- -mkdir -p $(DESTDIR)@prefix@/include +- -mkdir -p $(DESTDIR)@libdir@ +- cp ../include/libircclient.h $(DESTDIR)@prefix@/include/libircclient.h +- cp ../include/libirc_errors.h $(DESTDIR)@prefix@/include/libirc_errors.h +- cp ../include/libirc_events.h $(DESTDIR)@prefix@/include/libirc_events.h +- cp ../include/libirc_options.h $(DESTDIR)@prefix@/include/libirc_options.h +- cp ../include/libirc_rfcnumeric.h $(DESTDIR)@prefix@/include/libirc_rfcnumeric.h +- cp libircclient.so $(DESTDIR)@libdir@/libircclient.so.$(APIVERSION) +- ln -fs libircclient.so.$(APIVERSION) $(DESTDIR)@libdir@/libircclient.so ++install: install-headers install-static install-shared ++install-headers: ++ $(INSTALL) -d $(DESTDIR)@prefix@/include ++ $(INSTALL) -m0644 ../include/libircclient.h $(DESTDIR)@prefix@/include/libircclient.h ++ $(INSTALL) -m0644 ../include/libirc_errors.h $(DESTDIR)@prefix@/include/libirc_errors.h ++ $(INSTALL) -m0644 ../include/libirc_events.h $(DESTDIR)@prefix@/include/libirc_events.h ++ $(INSTALL) -m0644 ../include/libirc_options.h $(DESTDIR)@prefix@/include/libirc_options.h ++ $(INSTALL) -m0644 ../include/libirc_rfcnumeric.h $(DESTDIR)@prefix@/include/libirc_rfcnumeric.h ++install-shared: ++ $(INSTALL) -d $(DESTDIR)@libdir@ ++ $(INSTALL) -m0755 libircclient.so $(DESTDIR)@libdir@/libircclient.so.$(APIVERSION) ++ $(LN) libircclient.so.$(APIVERSION) $(DESTDIR)@libdir@/libircclient.so ++install-static: ++ $(INSTALL) -d $(DESTDIR)@libdir@ ++ $(INSTALL) -m0644 libircclient.a $(DESTDIR)@libdir@/libircclient.a + + libircclient.so: libircclient.o +- $(CC) -shared -s -Wl,-soname,libircclient.so.$(APIVERSION) -o libircclient.so libircclient.o @LIBS@ ++ $(CC) $(CFLAGS) -shared -Wl,-soname,libircclient.so.$(APIVERSION) -o libircclient.so libircclient.o $(LDFLAGS) @LIBS@ + + libircclient.dll: libircclient.o + $(CC) -shared -s -o libircclient.dll -Wl,-out-implib,libircclient.lib libircclient.o libircclient.def -lkernel32 -lwsock32 @LIBS@ diff --git a/net-libs/libircclient/files/libircclient-1.8-static.patch b/net-libs/libircclient/files/libircclient-1.8-static.patch @@ -0,0 +1,12 @@ +--- libircclient-1.7.orig/src/Makefile.in ++++ libircclient-1.7/src/Makefile.in +@@ -9,6 +9,9 @@ + DESTDIR= + APIVERSION = 1 + ++prefix=@prefix@ ++exec_prefix=@exec_prefix@ ++ + OBJS = libircclient.o + + all: @TARGET@ diff --git a/net-libs/libircclient/libircclient-1.8.ebuild b/net-libs/libircclient/libircclient-1.8.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit autotools eutils + +DESCRIPTION="Small but powerful library implementing the client-server IRC protocol" +HOMEPAGE="http://www.ulduzsoft.com/libircclient/" +SRC_URI="mirror://sourceforge/libircclient/${P}.tar.gz" + +LICENSE="LGPL-2+" +SLOT="0" +KEYWORDS="amd64 ppc ~ppc64 x86" +IUSE="doc ipv6 ssl libressl static-libs threads" + +DEPEND=" + ssl? ( + !libressl? ( dev-libs/openssl:0 ) + libressl? ( dev-libs/libressl:0 ) + )" +RDEPEND=${DEPEND} + +src_prepare() { + epatch \ + "${FILESDIR}"/${P}-build.patch \ + "${FILESDIR}"/${P}-shared.patch \ + "${FILESDIR}"/${P}-static.patch \ + "${FILESDIR}"/${P}-include.patch + mv configure.in configure.ac || die + eautoconf +} + +src_configure() { + econf \ + $(use_enable threads) \ + $(use_enable ipv6) \ + $(use_enable ssl openssl) \ + $(use_enable ssl threads) +} + +src_compile() { + emake -C src $(usex static-libs "shared static" "shared") +} + +src_install() { + emake -C src DESTDIR="${D}" install-shared $(usex static-libs "install-static" "") + insinto /usr/include/libircclient + doins include/*.h + + dodoc Changelog THANKS + doman man/libircclient.1 +}