/[gentoo-x86]/net-irc/miau/miau-0.6.6.ebuild
Gentoo

Contents of /net-irc/miau/miau-0.6.6.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Thu Feb 16 19:03:24 2012 UTC (2 years, 10 months ago) by phajdan.jr
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +3 -3 lines
x86 stable wrt bug #397153

(Portage version: 2.1.10.44/cvs/Linux i686)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-irc/miau/miau-0.6.6.ebuild,v 1.1 2011/05/24 17:46:03 cla Exp $
4
5 inherit eutils
6
7 DESCRIPTION="Persistent IRC bouncer with multi-client support - a fork of muh"
8 HOMEPAGE="http://miau.sourceforge.net/"
9 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
10 LICENSE="GPL-2"
11 SLOT="0"
12 KEYWORDS="~amd64 ~ppc x86"
13 IUSE="debug ipv6"
14
15 DEPEND=""
16 RDEPEND="${DEPEND}"
17
18 pkg_setup() {
19 if use ipv6; then
20 echo
21 ewarn "Enabling the ipv6 useflag will disable ipv4 entirely. Press"
22 ewarn "Ctrl+C now if you don't want this."
23 echo
24 ebeep 5
25 fi
26 }
27
28 src_compile() {
29 # --disable-debug seems to actually enabled it, using if use rather than
30 # use_enable to get around it.
31 if use debug; then
32 myconf="--enable-debug"
33 fi
34 econf \
35 --enable-dccbounce \
36 --enable-automode \
37 --enable-releasenick \
38 --enable-ctcp-replies \
39 --enable-mkpasswd \
40 --enable-uptime \
41 --enable-chanlog \
42 --enable-privlog \
43 --enable-onconnect \
44 --enable-empty-awaymsg \
45 $(use_enable ipv6) \
46 ${myconf} \
47 $(use_enable debug enduserdebug) \
48 $(use_enable debug pingstat) \
49 $(use_enable debug dumpstatus) \
50 || die "econf failed."
51 emake || die "emake failed."
52 }
53
54 src_install() {
55 emake install DESTDIR="${D}" || die "emake install failed."
56 dodoc AUTHORS ChangeLog TODO README || die "dodoc failed."
57
58 mv "${D}/usr/share/doc/miau/examples/miaurc" \
59 "${D}/usr/share/doc/${PF}/miaurc.sample"
60 rm -rf "${D}/usr/share/doc/miau"
61 }
62
63 pkg_postinst() {
64 echo
65 elog "You'll need to configure miau before running it."
66 elog "Put your config in ~/.miau/miaurc"
67 elog "You can use the sample config is in /usr/share/doc/${PF}/miaurc.sample"
68 elog "For more information, see the documentation."
69 echo
70 }

  ViewVC Help
Powered by ViewVC 1.1.20