Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 252000
Collapse All | Expand All

(-)oer-mysql-1.0.43.ebuild.orig (-4 / +8 lines)
Lines 1-4 Link Here
1
# Copyright 1999-2009 Gentoo Foundation
1
# Copyright 1999-2011 Gentoo Foundation
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/net-irc/oer-mysql/oer-mysql-1.0.43.ebuild,v 1.4 2009/09/23 18:45:25 patrick Exp $
3
# $Header: /var/cvsroot/gentoo-x86/net-irc/oer-mysql/oer-mysql-1.0.43.ebuild,v 1.4 2009/09/23 18:45:25 patrick Exp $
4
4
Lines 9-14 Link Here
9
DESCRIPTION="Free to use GPL'd IRC bot"
9
DESCRIPTION="Free to use GPL'd IRC bot"
10
HOMEPAGE="http://oer.equnet.org/"
10
HOMEPAGE="http://oer.equnet.org/"
11
SRC_URI="http://oer.equnet.org/testing/${MY_PN}-$(replace_version_separator 2 -).tar.gz"
11
SRC_URI="http://oer.equnet.org/testing/${MY_PN}-$(replace_version_separator 2 -).tar.gz"
12
12
LICENSE="GPL-2"
13
LICENSE="GPL-2"
13
SLOT="0"
14
SLOT="0"
14
KEYWORDS="x86 ~ppc"
15
KEYWORDS="x86 ~ppc"
Lines 22-38 Link Here
22
23
23
src_unpack() {
24
src_unpack() {
24
	unpack ${A}
25
	unpack ${A}
25
	ht_fix_file ${S}/configure
26
	ht_fix_file "${S}/configure"
26
}
27
}
27
28
28
src_compile() {
29
src_compile() {
30
	#252000 pre-stripped files
31
	sed -i -e 's|\(MYLDFLAGSADD.*CC=\)"-s"|\1\"\"|' configure || die
32
29
	econf \
33
	econf \
30
		--with-mysql=/usr \
34
		--with-mysql=/usr \
31
		$(use_enable debug) \
35
		$(use_enable debug) \
32
		$(use_enable static) \
36
		$(use_enable static) \
33
		|| die "econf failed"
37
		|| die "econf failed"
34
38
35
	sed  -i -e "s:-O2:${CFLAGS}:" Makefile
39
	sed -i -e "s:-O2:${CFLAGS}:" Makefile || die
36
40
37
	emake mycrypt || die "emake mycrypt failed"
41
	emake mycrypt || die "emake mycrypt failed"
38
	emake || die "emake failed"
42
	emake || die "emake failed"
Lines 41-47 Link Here
41
		-e 's:CRYPT=./mycrypt:CRYPT=/usr/lib/oer/mycrypt:' \
45
		-e 's:CRYPT=./mycrypt:CRYPT=/usr/lib/oer/mycrypt:' \
42
		-e 's:sample-configuration/oer+MySQL.conf:oer+MySQL.conf:' \
46
		-e 's:sample-configuration/oer+MySQL.conf:oer+MySQL.conf:' \
43
		-e 's:$CURRDIR/scripts/:/usr/share/oer/scripts/:' \
47
		-e 's:$CURRDIR/scripts/:/usr/share/oer/scripts/:' \
44
		${S}/pre_install.sh
48
		"${S}/pre_install.sh" || die
45
}
49
}
46
50
47
src_install() {
51
src_install() {

Return to bug 252000