blob: 1bdd4c322876fad87ca7dabce50a9e2b3a78b7d5 (
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
|
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-devel/gecc/gecc-20021019.ebuild,v 1.6 2003/02/28 13:18:14 liquidx Exp $
# comprehensive list of any and all USE flags leveraged in the build,
# with the exception of any ARCH specific flags, i.e. ppc sparc sparc64
# x86 alpha - this is a required variable
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
}
|