Lines 2-29
Link Here
|
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/emech/emech-3.0.2.ebuild,v 1.6 2009/06/06 21:45:19 cla Exp $ |
3 |
# $Header: /var/cvsroot/gentoo-x86/net-irc/emech/emech-3.0.2.ebuild,v 1.6 2009/06/06 21:45:19 cla Exp $ |
4 |
|
4 |
|
5 |
inherit toolchain-funcs |
5 |
EAPI="5" |
|
|
6 |
|
7 |
inherit eutils |
6 |
|
8 |
|
7 |
DESCRIPTION="The EnergyMech is a UNIX compatible IRC bot programmed in the C language" |
9 |
DESCRIPTION="The EnergyMech is a UNIX compatible IRC bot programmed in the C language" |
8 |
HOMEPAGE="http://www.energymech.net/" |
10 |
HOMEPAGE="http://www.energymech.net/" |
9 |
SRC_URI="http://www.energymech.net/files/${P}.tar.gz" |
11 |
SRC_URI="http://www.energymech.net/files/${P}.tar.gz" |
10 |
LICENSE="GPL-2" |
12 |
LICENSE="GPL-2" |
11 |
SLOT="0" |
13 |
SLOT="0" |
12 |
KEYWORDS="ppc x86 ~amd64" |
14 |
KEYWORDS="ppc x86" |
13 |
IUSE="debug session tcl" |
15 |
IUSE="debug session tcl" |
14 |
|
16 |
|
15 |
DEPEND="" |
17 |
DEPEND="" |
|
|
18 |
RDEPEND="${DEPEND}" |
16 |
|
19 |
|
17 |
src_unpack() { |
20 |
src_prepare() { |
18 |
unpack ${A} |
|
|
19 |
|
20 |
sed -i \ |
21 |
sed -i \ |
21 |
-e 's: "help/":"/usr/share/energymech/help/":' \ |
22 |
-e 's: "help/":"/usr/share/energymech/help/":' \ |
22 |
-e 's: "messages/":"/usr/share/energymech/messages/":' \ |
23 |
-e 's: "messages/":"/usr/share/energymech/messages/":' \ |
23 |
"${S}"/src/config.h.in |
24 |
"${S}"/src/config.h.in |
24 |
} |
25 |
} |
25 |
|
26 |
|
26 |
src_compile() { |
27 |
src_configure() { |
27 |
./configure \ |
28 |
./configure \ |
28 |
--with-alias \ |
29 |
--with-alias \ |
29 |
--with-botnet \ |
30 |
--with-botnet \ |
Lines 53-71
Link Here
|
53 |
$(use_with session) \ |
54 |
$(use_with session) \ |
54 |
$(use_with debug) \ |
55 |
$(use_with debug) \ |
55 |
|| die "./configure failed" |
56 |
|| die "./configure failed" |
56 |
emake -C src CC="$(tc-getCC)" OPTIMIZE="${CFLAGS}" || die "emake failed" |
|
|
57 |
} |
57 |
} |
58 |
|
58 |
|
59 |
src_install() { |
59 |
src_compile() { |
60 |
dobin src/energymech || die "dobin failed" |
60 |
emake -C src CC="$(tc-getCC)" OPTIMIZE="${CFLAGS}" LFLAGS="${LDFLAGS}" |
|
|
61 |
} |
61 |
|
62 |
|
|
|
63 |
src_install() { |
64 |
dobin src/energymech |
65 |
|
62 |
insinto /usr/share/energymech/help |
66 |
insinto /usr/share/energymech/help |
63 |
doins help/* || die "doins failed" |
67 |
doins help/* |
64 |
|
68 |
|
65 |
insinto /usr/share/energymech/messages |
69 |
insinto /usr/share/energymech/messages |
66 |
doins messages/*.txt || die "doins failed" |
70 |
doins messages/*.txt |
67 |
|
71 |
|
68 |
dodoc sample.* README* TODO VERSIONS CREDITS checkmech || die "dodoc failed" |
72 |
dodoc sample.* README* TODO VERSIONS CREDITS checkmech |
69 |
} |
73 |
} |
70 |
|
74 |
|
71 |
pkg_postinst() { |
75 |
pkg_postinst() { |