summaryrefslogtreecommitdiff
blob: 20b92fca92f42f6b3979631ce3d68983f8f7c878 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-irc/oer/oer-1.0.66.ebuild,v 1.2 2007/03/13 18:48:37 armin76 Exp $

inherit fixheadtails eutils versionator

DESCRIPTION="Free to use GPL'd IRC bot"
HOMEPAGE="http://oer.equnet.org/"
SRC_URI="http://oer.equnet.org/testing/${PN}-$(replace_version_separator 2 -).tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~ppc x86"
IUSE=""

DEPEND=""

S=${WORKDIR}/${PN}-dist

src_unpack() {
	unpack ${A}
	cd ${S}

	epatch ${FILESDIR}/1.0.64-basename.patch

	ht_fix_file configure
}

src_compile() {
	econf || die "econf failed"
	# Bad configure script is forcing CFLAGS, so we pass our own
	emake CFLAGS="${CFLAGS}" || die "emake failed"
}

src_install() {
	dobin oer || die "dobin failed"
	dodoc CHANGELOG HELP README THANKS || die "dodoc failed"
	docinto sample-configuration
	dodoc sample-configuration/* || die "dodoc failed"
}

pkg_postinst() {
	einfo
	einfo "You can find a sample configuration file set in"
	einfo "/usr/share/doc/${PF}/sample-configuration"
	einfo
}