summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Mende <angelos@gentoo.org>2007-05-31 21:44:39 +0000
committerChristoph Mende <angelos@gentoo.org>2007-05-31 21:44:39 +0000
commit2e482aaa155eca6e166f271e12fa82354e57d852 (patch)
tree8be4ee0b0ed73ab96f1feb0f46e496d72a085c51 /net-irc/eiwic/eiwic-1.1.3.ebuild
parentAdded local use flag rss for net-irc/eiwic (diff)
downloadgentoo-2-2e482aaa155eca6e166f271e12fa82354e57d852.tar.gz
gentoo-2-2e482aaa155eca6e166f271e12fa82354e57d852.tar.bz2
gentoo-2-2e482aaa155eca6e166f271e12fa82354e57d852.zip
Initial import
(Portage version: 2.1.2.7)
Diffstat (limited to 'net-irc/eiwic/eiwic-1.1.3.ebuild')
-rw-r--r--net-irc/eiwic/eiwic-1.1.3.ebuild59
1 files changed, 59 insertions, 0 deletions
diff --git a/net-irc/eiwic/eiwic-1.1.3.ebuild b/net-irc/eiwic/eiwic-1.1.3.ebuild
new file mode 100644
index 000000000000..45f4305f16e9
--- /dev/null
+++ b/net-irc/eiwic/eiwic-1.1.3.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-irc/eiwic/eiwic-1.1.3.ebuild,v 1.1 2007/05/31 21:44:39 angelos Exp $
+
+inherit multilib flag-o-matic
+
+DESCRIPTION="A modular IRC bot written in C"
+HOMEPAGE="http://lordi.styleliga.org/eiwic/"
+SRC_URI="http://lordi.styleliga.org/eiwic/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="debug doc ipv6 rss"
+
+DEPEND="rss? ( media-libs/raptor )"
+RDEPEND="${DEPEND}"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ if use debug; then
+ strip-flags
+ append-flags -ggdb
+ fi
+
+ sed -i "/^set MODULE_PATH/s:modules:/usr/$(get_libdir)/modules:" sample.conf
+ sed -i "/^load MODULE/s:$:.so:" sample.conf
+}
+
+src_compile() {
+ econf \
+ $(use_enable debug vv-debug) \
+ $(use_enable ipv6) \
+ || die "econf failed"
+ emake || die "emake failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "install failed"
+ dodoc AUTHORS ChangeLog README NEWS TODO sample.conf
+
+ if use doc; then
+ dohtml doc/*
+ fi
+}
+
+pkg_postinst() {
+ echo
+ einfo "You need a configuration file to run eiwic"
+ einfo "A sample configuration was installed to"
+ einfo "/usr/share/doc/${PF}/"
+ echo
+ if use debug; then
+ einfo "For debugging options please see eiwic -h"
+ echo
+ fi
+}