summaryrefslogtreecommitdiff
path: root/net-libs/libircclient
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /net-libs/libircclient
reinit the tree, so we can have metadata
Diffstat (limited to 'net-libs/libircclient')
-rw-r--r--net-libs/libircclient/Manifest15
-rw-r--r--net-libs/libircclient/files/libircclient-1.6-build.patch13
-rw-r--r--net-libs/libircclient/files/libircclient-1.6-include.patch10
-rw-r--r--net-libs/libircclient/files/libircclient-1.6-shared.patch53
-rw-r--r--net-libs/libircclient/files/libircclient-1.6-static.patch12
-rw-r--r--net-libs/libircclient/files/libircclient-1.8-build.patch13
-rw-r--r--net-libs/libircclient/files/libircclient-1.8-include.patch10
-rw-r--r--net-libs/libircclient/files/libircclient-1.8-shared.patch50
-rw-r--r--net-libs/libircclient/files/libircclient-1.8-static.patch12
-rw-r--r--net-libs/libircclient/libircclient-1.6-r2.ebuild49
-rw-r--r--net-libs/libircclient/libircclient-1.8.ebuild48
-rw-r--r--net-libs/libircclient/metadata.xml11
12 files changed, 296 insertions, 0 deletions
diff --git a/net-libs/libircclient/Manifest b/net-libs/libircclient/Manifest
new file mode 100644
index 000000000000..a045c2d7a807
--- /dev/null
+++ b/net-libs/libircclient/Manifest
@@ -0,0 +1,15 @@
+AUX libircclient-1.6-build.patch 376 SHA256 84057216f2d1efcd83e01a40762769ea616ed0aa0f6564a563799309016817a3 SHA512 1dd6a8a7c71b331ab1fc6a5d5f0c204bcc0c09362271df1f3304f78291555f3cf7c4fba278123c4d12f59793e9cf8cc867aae365aef82a51bb2b019c804b558b WHIRLPOOL cfe4975c43b3ca7984b9e4bfd888266ef3f061c14bfa27994992aafaea99ddfbb9d4fab6587ea4fa44002c02d2501090b169f704af62a94b0d3ac82cc6955153
+AUX libircclient-1.6-include.patch 289 SHA256 3378f4e8cda60ec99696915910bcbd4b61816e9870f54d7adc95fe4ade7433dd SHA512 62e3c1cfe8843eb16efe9e803785ba759100e3cf4c82b7f9f2fe11bd92a5fe9ad85707ef21c6231e3ee23f6e283711f643db76e79699574b3fb01eb893977d02 WHIRLPOOL dd12d5410a4f7d2a50d6fe16e73c2ea3f6d829be26c0899f8d0f9aab9b0ad4c9460df697e53aa6ee6acb9458720c2d74a03f6e60425ec968d43c6771708a1a20
+AUX libircclient-1.6-shared.patch 2286 SHA256 d65301d303d4db244b3ed1732be37889dd9b3e5736b374be62e0179f88229b0a SHA512 aa0cb079d206748c68ac5fbd066f78271b15f76e06a443c38ea54d35e1e2ccffb500cddd4d6a361c094b199ded876d7b47a1d08ebadbc48ea57d2bbefabf3f30 WHIRLPOOL 24aa695c459c5b50d0920fd605ccf9db2f1c06077173b8d97eb1db0290382f32fbdab56887c280924b54c31507f07a6ac05f23c3f7d7c252ccadcc48a0d9d25b
+AUX libircclient-1.6-static.patch 213 SHA256 858ebe3da96e25a3925353796f1b06d33d1859c5d795105dcca849f591e8dde1 SHA512 b370de10c348928dc75c1844b2c9f02b832ef4f44a6c7ab887e1ede35e8dbcc7fcfd427e472e35ffebc33fa98556d1cbac25be233c4ed4d5d267912c12ee9397 WHIRLPOOL a81a549fb5d32d4b28d89b50cc66d80b8df592e4b6cfe95e4a6d40e11367a1965cb33c726dbbc054603153749445591a478110a332876d7c1b864e760159e8e7
+AUX libircclient-1.8-build.patch 340 SHA256 3306196346f113343986c057ff7255797c15ef3a04f8efcfdbcdfadfc0baab0d SHA512 44ab22464672b1f5e5ff8266ce3b4ebd8356175da2803a6f8cfc2b1e581f03c5a96f2a12a4b0bcef7bce4aeb8b6c9e31a0f149ffb2ac1b200d040e734dbbb640 WHIRLPOOL 38b3abfd748163f2144bfda796192c77cd750d11b9567049de73dd68ebab52abb2012a7fd272ae5465d4cdd2ff4362925ca7f173c776f52656cecf485d63b9db
+AUX libircclient-1.8-include.patch 289 SHA256 3378f4e8cda60ec99696915910bcbd4b61816e9870f54d7adc95fe4ade7433dd SHA512 62e3c1cfe8843eb16efe9e803785ba759100e3cf4c82b7f9f2fe11bd92a5fe9ad85707ef21c6231e3ee23f6e283711f643db76e79699574b3fb01eb893977d02 WHIRLPOOL dd12d5410a4f7d2a50d6fe16e73c2ea3f6d829be26c0899f8d0f9aab9b0ad4c9460df697e53aa6ee6acb9458720c2d74a03f6e60425ec968d43c6771708a1a20
+AUX libircclient-1.8-shared.patch 2348 SHA256 fd13c719277ad67fa3b69817e3f2be5edf4efabcb4a026a353894a49be46bc70 SHA512 e61b6c2d56be6cefb4320a93dae96d2fb0dbaf9818246ba1b9be88ab21d3302108d4cfb650cf0db564c50b2913d67ac24183221f2f522eab21097cbbbb37b642 WHIRLPOOL aa872bc2328463df08933795161504d975227a5e05c106bb74d8965da912d6d32b40f5d3dbe1c9da6310463e4af3e1307c4aa81a84934de44a536ade98087bb9
+AUX libircclient-1.8-static.patch 209 SHA256 69ae2cd1eaa37bf58ebd7b7b80cee83168c529ed61e1ac37ed0bd88d031f6ae4 SHA512 b1161ce28e5a8d668c852ee0ac336c186426a9467156c66ebe4805a722297ec225cc6b859c13003741d05a15ced1ccfaca0a20d98bf0bf933fc84fc1a97d8827 WHIRLPOOL 39eb77673cbe6c70456017c47303d241e7e7f60e01d42e0a00fb20557d6d6fcb3e0677d73fe1e2e735303a490b4599a1dd071544cdc5c320f4fef696407e34c7
+DIST libircclient-1.6.tar.gz 392788 SHA256 6c511923023398bcd7627cf3305054befacf6874203cb0de36bdbe658779e953 SHA512 94a68f27fcb12c918fa347d4ee44747e08e016245048c81f179b9a45081bd336c329e7185a3bc46deb28c9c77e1eff5dc53de7e723b1ed5ee2c1d3cc57ce0548 WHIRLPOOL f0958c14f923b97e38d230e3d9a27aa08ef9162c0749ef0defb7b107083b27f3458dc652944672cae76527258b788045dcc040d33f055df70a5cab8e16da9ca1
+DIST libircclient-1.8.tar.gz 291803 SHA256 2cf8523ac683588f2785b08159a2df3e4d15939ee655c0024aa86334149de8f6 SHA512 f19e4b55cf49091ab2c83ff3d5cace2252daad6bf23cb61b7677b9c6055fe8a8a7d891f6e1e5962481c836f47b7dcd35ef563c8807737ac81e3c4cee253cfc4a WHIRLPOOL 39550aa403445ca333aeeca2108c6a5e67cbf2eb1f53d313aa4e970f39b702f3862698a0ce7956ad0c93034d9b0f59313b695a7666910872eb9505dd2e895e1b
+EBUILD libircclient-1.6-r2.ebuild 1097 SHA256 900cd6064579b29e2bcb18e5631021db70e9217b0f3c669d4513862e90fef3c7 SHA512 afa58d5fc2e91249fb9f97e3b366be1729714c0af38fcc93482cf8d2c7d23def5f47a387ec90596475174a7282e6c3540d7d8a5b3dd1c649ec84289f290b2919 WHIRLPOOL 6f65d5fec9afdc8cce5236e5e751930ab78aeffc61e8e7bfac0b356098df746850c0395d544fcbe6f4b25bd627abfba47f4968e783e2823d66a3a496e11754da
+EBUILD libircclient-1.8.ebuild 1135 SHA256 136fb1420d23a9c4a338241e33c06a800f38a3ce8a51ad54cdc4e3e08fa7cc53 SHA512 c638d79b35913a4c095ce6a8b2b7122bed056fa0dd01242837067fe1273181d898970961647afeed42311a9cccfb1c6cdf00f0af4f33b6bdcbe899fa76517d03 WHIRLPOOL 6c0ca6aafcfe3ae261daaf9e99718eaf936445114a6d9582e9eaba48c31b85d10697192ae0cd6a3f956f7c55bd1c45b5c499b7e6dbeb2561b9c8429fd3af603a
+MISC ChangeLog 2986 SHA256 129a5b80e22cf72d56258bff6ec11121c3211a87966b7fc488c7d9533eb17fd5 SHA512 dcddac4e5c4f2f740a83f2fdd3a5c4cdb93af9525d03a058aba61f0a2cc8ba75ed788a41f0126d5f1112d661d1baf95121bacdce07d12530db48fa1548a1e87b WHIRLPOOL 0dbc11a63e2a6ba372ea665f24149aa909901fb7deb841ce07b660b287f9ebfcca05c6968f2fd34244bce0c7c8e0f58686661d3837d658772d70f6497b923ec5
+MISC ChangeLog-2015 4265 SHA256 d3d12df1e9a1a03d805b5035145bae27b9d38fb4e399797ab8a4327ae5122b77 SHA512 d6e22732fcf46daa00a0b5c91b08bdcf5d28127c44c9ac843cef3b4c190ed8b83ea63b835b1d247b410c703bc6c65509fe7536a80b2c7257bb69495daa18b4e7 WHIRLPOOL e94fa0a493de2a3f32e59dd73c70ee5c74e6236f14ccb3dc7303cc078f06493e97ef4e3eca75fef964e2bdb301324b2b62016a552eb373050eb893b0116da4a2
+MISC metadata.xml 335 SHA256 14fcc84073ed083210dcf8db8cfdb23295eeb7f92e70b41e1c89fb81839313a5 SHA512 af62ea7ba30a57f3271bded0d53a9122693e992d1050667701ba54bb33d6851b6ddabecf5f54bbdf8aebb212bd3e6a5999a8e8c1b2bbdd6666243ccb24a6182b WHIRLPOOL 856ed3aa653303c14ce1eb945ea2469df7ecf0ce7307ba66993c9ee330f61da28674f34277c425e96369e318261064adfce03ffe04228df09e9ec97e40cb764e
diff --git a/net-libs/libircclient/files/libircclient-1.6-build.patch b/net-libs/libircclient/files/libircclient-1.6-build.patch
new file mode 100644
index 000000000000..d3d6c0f3edf9
--- /dev/null
+++ 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
new file mode 100644
index 000000000000..c5bce1dfd947
--- /dev/null
+++ 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
new file mode 100644
index 000000000000..44fe9ded64b6
--- /dev/null
+++ 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
new file mode 100644
index 000000000000..4ecbb3362223
--- /dev/null
+++ 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
new file mode 100644
index 000000000000..86ea64efd55a
--- /dev/null
+++ 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
new file mode 100644
index 000000000000..c5bce1dfd947
--- /dev/null
+++ 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
new file mode 100644
index 000000000000..1fbc0e693502
--- /dev/null
+++ 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
new file mode 100644
index 000000000000..b820a19c73d1
--- /dev/null
+++ 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.6-r2.ebuild b/net-libs/libircclient/libircclient-1.6-r2.ebuild
new file mode 100644
index 000000000000..1f6a2f5bbe59
--- /dev/null
+++ b/net-libs/libircclient/libircclient-1.6-r2.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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 x86"
+IUSE="doc ipv6 ssl static-libs threads"
+
+DEPEND="ssl? ( dev-libs/openssl )"
+
+src_prepare() {
+ epatch \
+ "${FILESDIR}"/${P}-build.patch \
+ "${FILESDIR}"/${P}-shared.patch \
+ "${FILESDIR}"/${P}-include.patch \
+ "${FILESDIR}"/${P}-static.patch
+ 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}" $(usex static-libs "install" "install-shared")
+ insinto /usr/include/libircclient
+ doins include/*.h
+
+ dodoc Changelog THANKS
+ if use doc ; then
+ doman doc/man/man3/*
+ dohtml doc/html/*
+ fi
+}
diff --git a/net-libs/libircclient/libircclient-1.8.ebuild b/net-libs/libircclient/libircclient-1.8.ebuild
new file mode 100644
index 000000000000..ae8c3dd134df
--- /dev/null
+++ b/net-libs/libircclient/libircclient-1.8.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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 sparc x86"
+IUSE="doc ipv6 ssl static-libs threads"
+
+DEPEND="ssl? ( dev-libs/openssl: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
+}
diff --git a/net-libs/libircclient/metadata.xml b/net-libs/libircclient/metadata.xml
new file mode 100644
index 000000000000..a9199d52a252
--- /dev/null
+++ b/net-libs/libircclient/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">libircclient</remote-id>
+ </upstream>
+</pkgmetadata>