diff options
author | Julian Ospald <hasufell@gentoo.org> | 2012-09-07 19:24:24 +0000 |
---|---|---|
committer | Julian Ospald <hasufell@gentoo.org> | 2012-09-07 19:24:24 +0000 |
commit | d6f354286506bbcdc48b855825d0d17cc2df33d3 (patch) | |
tree | 65a99642255bef54d80d40d8adac9d187e3647ec /net-libs | |
parent | Drop old (diff) | |
download | gentoo-2-d6f354286506bbcdc48b855825d0d17cc2df33d3.tar.gz gentoo-2-d6f354286506bbcdc48b855825d0d17cc2df33d3.tar.bz2 gentoo-2-d6f354286506bbcdc48b855825d0d17cc2df33d3.zip |
support shared libs
(Portage version: 2.2.0_alpha124/cvs/Linux x86_64)
Diffstat (limited to 'net-libs')
-rw-r--r-- | net-libs/libircclient/ChangeLog | 8 | ||||
-rw-r--r-- | net-libs/libircclient/files/libircclient-1.6-fpic.patch | 19 | ||||
-rw-r--r-- | net-libs/libircclient/libircclient-1.6-r1.ebuild | 50 |
3 files changed, 76 insertions, 1 deletions
diff --git a/net-libs/libircclient/ChangeLog b/net-libs/libircclient/ChangeLog index 1164329632ae..3eefc1e4335e 100644 --- a/net-libs/libircclient/ChangeLog +++ b/net-libs/libircclient/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for net-libs/libircclient # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-libs/libircclient/ChangeLog,v 1.6 2012/05/29 07:01:30 mr_bones_ Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-libs/libircclient/ChangeLog,v 1.7 2012/09/07 19:24:24 hasufell Exp $ + +*libircclient-1.6-r1 (07 Sep 2012) + + 07 Sep 2012; Julian Ospald <hasufell@gentoo.org> +libircclient-1.6-r1.ebuild, + +files/libircclient-1.6-fpic.patch: + support shared libs 29 May 2012; Michael Sterrett <mr_bones_@gentoo.org> -files/libircclient-1.3-build.patch, -libircclient-1.3.ebuild: diff --git a/net-libs/libircclient/files/libircclient-1.6-fpic.patch b/net-libs/libircclient/files/libircclient-1.6-fpic.patch new file mode 100644 index 000000000000..d191d37b738f --- /dev/null +++ b/net-libs/libircclient/files/libircclient-1.6-fpic.patch @@ -0,0 +1,19 @@ +--- libircclient-1.6/src/Makefile.in ++++ libircclient-1.6/src/Makefile.in +@@ -1,6 +1,6 @@ + # $Id: libircclient-1.6-fpic.patch,v 1.1 2012/09/07 19:24:24 hasufell Exp $ + CC = @CC@ +-CFLAGS = -Wall -DIN_BUILDING_LIBIRC @CFLAGS@ ++CFLAGS = -fPIC -Wall -DIN_BUILDING_LIBIRC @CFLAGS@ + AR=@AR@ cr + RANLIB=@RANLIB@ + INCLUDES=-I../include +@@ -26,7 +26,7 @@ + cp libircclient.a $(DESTDIR)@prefix@/lib/ + + libircclient.so: libircclient.o +- $(CC) -shared -s -o libircclient.so libircclient.o @LIBS@ ++ $(CC) $(CFLAGS) -shared -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.6-r1.ebuild b/net-libs/libircclient/libircclient-1.6-r1.ebuild new file mode 100644 index 000000000000..f67ef4128cc4 --- /dev/null +++ b/net-libs/libircclient/libircclient-1.6-r1.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-libs/libircclient/libircclient-1.6-r1.ebuild,v 1.1 2012/09/07 19:24:24 hasufell Exp $ + +EAPI=4 +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 ~x86" +IUSE="doc ipv6 ssl static threads" + +DEPEND="ssl? ( dev-libs/openssl )" + +src_prepare() { + epatch \ + "${FILESDIR}"/${P}-build.patch \ + "${FILESDIR}"/${P}-fpic.patch \ + "${FILESDIR}"/${P}-include.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 "shared static" "shared") +} + +src_install() { + insinto /usr/include/libircclient + doins include/*.h + dolib.so src/libircclient.so + use static && dolib.a src/libircclient.a + + dodoc Changelog THANKS + if use doc ; then + doman doc/man/man3/* + dohtml doc/html/* + fi +} |