blob: 2e50c0594d5c908e0465e82186f3ed7a36583083 (
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
|
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-devel/gecc/gecc-20021102.ebuild,v 1.1 2002/11/16 16:43:06 mjc Exp $
IUSE=""
DESCRIPTION="gecc is a tool to speed up compilation of C/C++ sources. It distributes the compilation on a cluster of compilation nodes. It also caches the object files to save some unneeded work."
HOMEPAGE="http://gecc.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
DEPEND="sys-devel/gcc"
RDEPEND="$DEPEND"
S="${WORKDIR}/${P}"
src_compile() {
# rm -rf test
econf || die "configure failed"
# patch -p0 < ${FILESDIR}/${P}-gentoo.diff || die
emake || die "make failed"
}
src_install() {
einstall || die "Install failed"
dodoc README
dodir /usr/bin/gecc_link
dosym /usr/bin/gecc /usr/bin/gecc_link/gcc
dosym /usr/bin/gecc /usr/bin/gecc_link/g++
dosym /usr/bin/gecc /usr/bin/gecc_link/c++
dosym /usr/bin/gecc /usr/bin/gecc_link/cc
insinto /etc/conf.d
newins ${FILESDIR}/conf.geccd geccd
insinto /etc/env.d
newins ${FILESDIR}/env.geccd 06geccd
exeinto /etc/init.d
newexe ${FILESDIR}/rc.geccd geccd
}
pkg_postinst() {
einfo
einfo "To use gecc for you local compiles you will need to add"
einfo "/usr/bin/gecc to the front of your path, and add geccd"
einfo "to your default runlevel"
einfo
}
|