blob: 3d18cb4be7fa0e8bb5a53f5216ae8de653967e82 (
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
47
48
49
50
51
52
53
54
55
56
57
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-irc/oer-mysql/oer-mysql-1.0.43.ebuild,v 1.2 2005/09/11 14:01:00 swegener Exp $
inherit fixheadtails versionator
MY_PN="oer+MySQL"
DESCRIPTION="Free to use GPL'd IRC bot"
HOMEPAGE="http://oer.equnet.org/"
SRC_URI="http://oer.equnet.org/testing/${MY_PN}-$(replace_version_separator 2 -).tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86 ~ppc"
IUSE="debug static"
RDEPEND="virtual/libc
>=dev-db/mysql-3.23.52-r1"
DEPEND="${RDEPEND}
>=sys-apps/sed-4"
S=${WORKDIR}/${MY_PN}-dist
src_unpack() {
unpack ${A}
ht_fix_file ${S}/configure
}
src_compile() {
econf \
--with-mysql=/usr \
$(use_enable debug) \
$(use_enable static) \
|| die "econf failed"
sed -i -e "s:-O2:${CFLAGS}:" Makefile
emake mycrypt || die "emake mycrypt failed"
emake || die "emake failed"
sed -i \
-e 's:CRYPT=./mycrypt:CRYPT=/usr/lib/oer/mycrypt:' \
-e 's:sample-configuration/oer+MySQL.conf:oer+MySQL.conf:' \
-e 's:$CURRDIR/scripts/:/usr/share/oer/scripts/:' \
${S}/pre_install.sh
}
src_install() {
dobin oer+MySQL || die "dobin failed"
insinto /usr/share/oer
doins -r scripts || die "doins failed"
exeinto /usr/share/oer
doexe tools/*.pl pre_install.sh || die "doexe failed"
exeinto /usr/lib/oer
doexe mycrypt || die "doexe failed"
}
|