net-libs/libircclient: Bump to version 1.10
authorLars Wendler <polynomial-c@gentoo.org>
Wed, 10 Oct 2018 10:38:39 +0000 (12:38 +0200)
committerLars Wendler <polynomial-c@gentoo.org>
Wed, 10 Oct 2018 10:39:46 +0000 (12:39 +0200)
Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
Package-Manager: Portage-2.3.51, Repoman-2.3.11

net-libs/libircclient/Manifest
net-libs/libircclient/files/libircclient-1.10-shared.patch [new file with mode: 0644]
net-libs/libircclient/libircclient-1.10.ebuild [new file with mode: 0644]

index f0e4047b35c5e2c19fd41dace575c24c868fc563..fbd05303369ec4e7c350571f741b97af4cd37d30 100644 (file)
@@ -1,2 +1,3 @@
+DIST libircclient-1.10.tar.gz 288863 BLAKE2B 28bcfb36553c04be28ef4ffc0cf5fe3af8538704997f628f311719d245a0629ff49bee2c512d29e4d43a24a2803cbafc99512ebda7d5c991d9ecb2f1786a9d24 SHA512 d677ceae0bfabc112671b351fb94d048399a7ad025ff33a2ff1ae6313382fcc78b64d499f2c882eb8b894abdde949562395819e4059fd14640dfae6757b0c259
 DIST libircclient-1.6.tar.gz 392788 BLAKE2B 143b080389442b4106715c4437e319a08ebfdf55cb8d2d510d4e10a68157f791d9ab01379c89facbcddc1e690cea39c8649cec65367d436ab57381633a1b9565 SHA512 94a68f27fcb12c918fa347d4ee44747e08e016245048c81f179b9a45081bd336c329e7185a3bc46deb28c9c77e1eff5dc53de7e723b1ed5ee2c1d3cc57ce0548
 DIST libircclient-1.8.tar.gz 291803 BLAKE2B 7fcbf8e8466ac95ca5a27475551af45f828b29385b28071d02271deae03d6bbd3589e86efe56b1fe5020be7894e699534ef1e3a2f2fedca1909e4d8e0c04d067 SHA512 f19e4b55cf49091ab2c83ff3d5cace2252daad6bf23cb61b7677b9c6055fe8a8a7d891f6e1e5962481c836f47b7dcd35ef563c8807737ac81e3c4cee253cfc4a
diff --git a/net-libs/libircclient/files/libircclient-1.10-shared.patch b/net-libs/libircclient/files/libircclient-1.10-shared.patch
new file mode 100644 (file)
index 0000000..33a1cc1
--- /dev/null
@@ -0,0 +1,50 @@
+--- libircclient-1.10/src/Makefile.in
++++ libircclient-1.10/src/Makefile.in
+@@ -1,8 +1,10 @@
+ # $Id: Makefile.in 137 2018-08-27 01:11:08Z gyunaev $
+ CC = @CC@
+-CFLAGS = -Wall -Wno-misleading-indentation -Wno-unused-function -Wno-nonnull -DIN_BUILDING_LIBIRC @CFLAGS@
++CFLAGS = -fPIC -Wall -Wno-misleading-indentation -Wno-unused-function -Wno-nonnull -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 @LDFLAGS@ @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/libircclient-1.10.ebuild b/net-libs/libircclient/libircclient-1.10.ebuild
new file mode 100644 (file)
index 0000000..d25e3c7
--- /dev/null
@@ -0,0 +1,53 @@
+# Copyright 1999-2018 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+inherit autotools
+
+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}
+
+PATCHES=(
+       "${FILESDIR}"/${PN}-1.8-build.patch
+       "${FILESDIR}"/${PN}-1.10-shared.patch
+       "${FILESDIR}"/${PN}-1.8-static.patch
+       "${FILESDIR}"/${PN}-1.8-include.patch
+)
+
+src_prepare() {
+       default
+       mv configure.in configure.ac || die
+       eautoconf
+}
+
+src_configure() {
+       local myeconfargs=(
+               $(use_enable threads)
+               $(use_enable ipv6)
+               $(use_enable ssl openssl)
+               $(use_enable ssl threads)
+       )
+       econf "${myeconfargs[@]}"
+}
+
+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
+}