2012-04-07 16:27:30 +04:00
|
|
|
# Copyright 1999-2012 Gentoo Foundation
|
2012-02-06 16:39:49 +04:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
2012-04-07 16:27:30 +04:00
|
|
|
# $Header: /var/cvsroot/gentoo-x86/net-irc/eiwic/eiwic-1.1.4.ebuild,v 1.6 2012/04/06 18:58:42 ssuominen Exp $
|
2012-02-06 16:39:49 +04:00
|
|
|
|
2012-04-07 16:27:30 +04:00
|
|
|
EAPI=4
|
|
|
|
inherit autotools eutils multilib
|
2012-02-06 16:39:49 +04:00
|
|
|
|
|
|
|
DESCRIPTION="A modular IRC bot written in C"
|
|
|
|
HOMEPAGE="https://github.com/lordi/Eiwic"
|
|
|
|
SRC_URI="mirror://gentoo/${P}.tar.gz"
|
|
|
|
|
|
|
|
LICENSE="GPL-2"
|
|
|
|
SLOT="0"
|
|
|
|
KEYWORDS="amd64 x86"
|
2012-04-07 16:27:30 +04:00
|
|
|
IUSE="debug doc ipv6"
|
2012-02-06 16:39:49 +04:00
|
|
|
|
2012-04-07 16:27:30 +04:00
|
|
|
DOCS="AUTHORS ChangeLog README NEWS TODO sample.conf"
|
2012-02-06 16:39:49 +04:00
|
|
|
|
2012-04-07 16:27:30 +04:00
|
|
|
src_prepare() {
|
2012-02-06 16:39:49 +04:00
|
|
|
epatch "${FILESDIR}"/${PN}-1.1.3-ldflags.patch
|
2012-04-07 16:27:30 +04:00
|
|
|
|
|
|
|
sed -i \
|
|
|
|
-e "/^set MODULE_PATH/s:modules:/usr/$(get_libdir)/eiwic:" \
|
|
|
|
-e "/^load MODULE/s:$:.so:" \
|
|
|
|
sample.conf || die
|
|
|
|
|
2012-02-06 16:39:49 +04:00
|
|
|
eautoreconf
|
|
|
|
}
|
|
|
|
|
2012-04-07 16:27:30 +04:00
|
|
|
src_configure() {
|
|
|
|
export ac_cv_lib_raptor_raptor_init=no #409417
|
|
|
|
|
2012-02-06 16:39:49 +04:00
|
|
|
econf \
|
|
|
|
$(use_enable debug vv-debug) \
|
|
|
|
$(use_enable ipv6)
|
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
2012-04-07 16:27:30 +04:00
|
|
|
default
|
|
|
|
use doc && dohtml doc/*
|
2012-02-06 16:39:49 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
pkg_postinst() {
|
2012-04-07 16:27:30 +04:00
|
|
|
elog "You need a configuration file to run eiwic. A sample configuration"
|
|
|
|
elog "was installed to /usr/share/doc/${PF}"
|
2012-02-06 16:39:49 +04:00
|
|
|
}
|