| 1 |
# Copyright 1999-2009 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/net-irc/eiwic/eiwic-1.1.3.ebuild,v 1.5 2009/02/09 16:58:10 angelos Exp $
|
| 4 |
|
| 5 |
inherit autotools eutils multilib flag-o-matic
|
| 6 |
|
| 7 |
DESCRIPTION="A modular IRC bot written in C"
|
| 8 |
HOMEPAGE="http://lordi.styleliga.org/eiwic/"
|
| 9 |
SRC_URI="http://lordi.styleliga.org/eiwic/${P}.tar.gz"
|
| 10 |
|
| 11 |
LICENSE="GPL-2"
|
| 12 |
SLOT="0"
|
| 13 |
KEYWORDS="amd64 ~x86"
|
| 14 |
IUSE="debug doc ipv6 rss"
|
| 15 |
|
| 16 |
DEPEND="rss? ( media-libs/raptor )"
|
| 17 |
RDEPEND="${DEPEND}"
|
| 18 |
|
| 19 |
src_unpack() {
|
| 20 |
unpack ${A}
|
| 21 |
cd "${S}"
|
| 22 |
sed -i "/^set MODULE_PATH/s:modules:/usr/$(get_libdir)/eiwic:" sample.conf
|
| 23 |
sed -i "/^load MODULE/s:$:.so:" sample.conf
|
| 24 |
epatch "${FILESDIR}"/${P}-ldflags.patch
|
| 25 |
eautoreconf
|
| 26 |
}
|
| 27 |
|
| 28 |
src_compile() {
|
| 29 |
econf \
|
| 30 |
$(use_enable debug vv-debug) \
|
| 31 |
$(use_enable ipv6)
|
| 32 |
emake || die "emake failed"
|
| 33 |
}
|
| 34 |
|
| 35 |
src_install() {
|
| 36 |
emake DESTDIR="${D}" install || die "install failed"
|
| 37 |
dodoc AUTHORS ChangeLog README NEWS TODO sample.conf
|
| 38 |
|
| 39 |
if use doc; then
|
| 40 |
dohtml doc/*
|
| 41 |
fi
|
| 42 |
}
|
| 43 |
|
| 44 |
pkg_postinst() {
|
| 45 |
echo
|
| 46 |
einfo "You need a configuration file to run eiwic"
|
| 47 |
einfo "A sample configuration was installed to"
|
| 48 |
einfo "/usr/share/doc/${PF}/"
|
| 49 |
echo
|
| 50 |
if use debug; then
|
| 51 |
einfo "For debugging options please see eiwic -h"
|
| 52 |
echo
|
| 53 |
fi
|
| 54 |
}
|