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

(-)/usr/portage/sys-devel/gcc-config/gcc-config-1.3.10-r1.ebuild (-5 / +16 lines)
Lines 13-19 Link Here
13
13
14
LICENSE="GPL-2"
14
LICENSE="GPL-2"
15
SLOT="0"
15
SLOT="0"
16
KEYWORDS="~alpha amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
16
KEYWORDS="~alpha amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~ppc-macos ~s390 ~sh ~sparc ~x86"
17
IUSE=""
17
IUSE=""
18
18
19
DEPEND="virtual/libc
19
DEPEND="virtual/libc
Lines 21-34 Link Here
21
21
22
S=${WORKDIR}
22
S=${WORKDIR}
23
23
24
src_compile() {
24
src_unpack() {
25
	cp ${FILESDIR}/${PN}-${PV} ${WORKDIR}
26
	cp ${FILESDIR}/wrapper-${W_VER}.c ${WORKDIR}
27
	
28
	if use ppc-macos; then
29
		dosed "s:<wait.h>:<sys/wait.h>:" wrapper-${W_VER}.c
30
		dosed "s:/etc/init.d/functions.sh:/usr/lib/portage/bin/functions.sh:" ${PN}-${PV}
31
	fi
32
		
33
	dosed "s:PORTAGE-VERSION:${PVR}:" ${PN}-${PV}
34
}
35
36
src_compile() { 
25
	$(tc-getCC) -O2 -Wall -o wrapper \
37
	$(tc-getCC) -O2 -Wall -o wrapper \
26
		${FILESDIR}/wrapper-${W_VER}.c || die "compile wrapper"
38
		wrapper-${W_VER}.c || die "compile wrapper"
27
}
39
}
28
40
29
src_install() {
41
src_install() {
30
	newbin ${FILESDIR}/${PN}-${PV} ${PN} || die "install gcc-config"
42
	newbin ${PN}-${PV} ${PN} || die "install gcc-config"
31
	dosed "s:PORTAGE-VERSION:${PVR}:" /usr/bin/${PN}
32
43
33
	exeinto /usr/lib/misc
44
	exeinto /usr/lib/misc
34
	newexe wrapper gcc-config || die "install wrapper"
45
	newexe wrapper gcc-config || die "install wrapper"

Return to bug 79911