summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Sterrett <mr_bones_@gentoo.org>2012-01-15 00:48:37 +0000
committerMichael Sterrett <mr_bones_@gentoo.org>2012-01-15 00:48:37 +0000
commit7c03c1f23f10f6deae79a7c683f70a88563befd4 (patch)
tree6a15d9801c91769db57961ddd8e02a6c71646474 /net-libs
parentsys-kernel/genkernel: 3.4.23.1 (diff)
downloadgentoo-2-7c03c1f23f10f6deae79a7c683f70a88563befd4.tar.gz
gentoo-2-7c03c1f23f10f6deae79a7c683f70a88563befd4.tar.bz2
gentoo-2-7c03c1f23f10f6deae79a7c683f70a88563befd4.zip
initial commit with ebuild submitted by Michael (kensington) via bug #398669
(Portage version: 2.1.10.41/cvs/Linux i686)
Diffstat (limited to 'net-libs')
-rw-r--r--net-libs/libircclient/ChangeLog10
-rw-r--r--net-libs/libircclient/files/libircclient-1.3-build.patch36
-rw-r--r--net-libs/libircclient/libircclient-1.3.ebuild42
-rw-r--r--net-libs/libircclient/metadata.xml5
4 files changed, 93 insertions, 0 deletions
diff --git a/net-libs/libircclient/ChangeLog b/net-libs/libircclient/ChangeLog
new file mode 100644
index 000000000000..dfef269dc664
--- /dev/null
+++ b/net-libs/libircclient/ChangeLog
@@ -0,0 +1,10 @@
+# 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.1 2012/01/15 00:48:37 mr_bones_ Exp $
+
+*libircclient-1.3 (14 Jan 2012)
+
+ 14 Jan 2012; Michael Sterrett <mr_bones_@gentoo.org>
+ +libircclient-1.3.ebuild, +files/libircclient-1.3-build.patch, +metadata.xml:
+ initial commit with ebuild submitted by Michael (kensington) via bug #398669
+
diff --git a/net-libs/libircclient/files/libircclient-1.3-build.patch b/net-libs/libircclient/files/libircclient-1.3-build.patch
new file mode 100644
index 000000000000..cc5201ebd18a
--- /dev/null
+++ b/net-libs/libircclient/files/libircclient-1.3-build.patch
@@ -0,0 +1,36 @@
+--- configure.in
++++ configure.in
+@@ -49,22 +49,20 @@
+ AC_CHECK_LIB(socket, socket, AC_DEFINE(HAVE_SOCKET) LIBS="$LIBS -lsocket")
+
+ if test "$use_debug" = "yes"; then
+- CFLAGS="-g -DENABLE_DEBUG"
+-else
+- CFLAGS="-O3"
++ CFLAGS="${CFLAGS} -DENABLE_DEBUG"
+ fi
+
+ if test "$use_ipv6" = "yes"; then
+ AC_CHECK_FUNCS([getaddrinfo inet_pton])
+ AC_CHECK_LIB(nsl, getaddrinfo, AC_DEFINE(HAVE_GETADDRINFO) LIBS="$LIBS -lnsl")
+- CFLAGS="$CFLAGS -DENABLE_IPV6"
++ CFLAGS="${CFLAGS} -DENABLE_IPV6"
+ else
+ AC_CHECK_FUNCS([gethostbyname_r inet_ntoa])
+ AC_CHECK_LIB(nsl, inet_ntoa, AC_DEFINE(HAVE_INET_NTOA) LIBS="$LIBS -lnsl")
+ fi
+
+ if test "$use_threads" = "yes"; then
+- CFLAGS="$CFLAGS -DENABLE_THREADS -D_REENTRANT"
++ CFLAGS="${CFLAGS} -DENABLE_THREADS -D_REENTRANT"
+ fi
+
+
+--- src/Makefile.in
++++ src/Makefile.in
+@@ -34,4 +34,4 @@
+
+ .c.o:
+ @echo "Compiling $<"
+- @$(CC) $(CFLAGS) $(INCLUDES) -c -o $@ $<
++ $(CC) $(CFLAGS) $(LDFLAGS) $(INCLUDES) -c -o $@ $<
diff --git a/net-libs/libircclient/libircclient-1.3.ebuild b/net-libs/libircclient/libircclient-1.3.ebuild
new file mode 100644
index 000000000000..94ef1fa5dba4
--- /dev/null
+++ b/net-libs/libircclient/libircclient-1.3.ebuild
@@ -0,0 +1,42 @@
+# 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.3.ebuild,v 1.1 2012/01/15 00:48:37 mr_bones_ Exp $
+
+EAPI=4
+inherit autotools eutils
+
+DESCRIPTION="Small but powerful library implementing the client-server IRC protocol"
+HOMEPAGE="http://libircclient.sourceforge.net/"
+SRC_URI="mirror://sourceforge/libircclient/${P}.tar.gz"
+
+LICENSE="LGPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc ipv6 threads"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-build.patch
+ eautoconf
+}
+
+src_configure() {
+ econf \
+ $(use_enable ipv6) \
+ $(use_enable threads thread)
+}
+
+src_compile() {
+ emake -C src
+}
+
+src_install() {
+ insinto /usr/include/libircclient
+ doins include/*.h
+ dolib src/libircclient.a
+
+ dodoc Changelog THANKS
+ if use doc ; then
+ doman doc/man/man3/*
+ dohtml doc/html/*
+ fi
+}
diff --git a/net-libs/libircclient/metadata.xml b/net-libs/libircclient/metadata.xml
new file mode 100644
index 000000000000..d3c2cc926f0b
--- /dev/null
+++ b/net-libs/libircclient/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>games</herd>
+</pkgmetadata>