Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 62307 | Differences between
and this patch

Collapse All | Expand All

(-)/usr/portage/app-arch/unzip/unzip-5.50-r2.ebuild (-2 / +8 lines)
Lines 10-16 Link Here
10
10
11
LICENSE="Info-ZIP"
11
LICENSE="Info-ZIP"
12
SLOT="0"
12
SLOT="0"
13
KEYWORDS="x86 ppc sparc mips alpha arm hppa amd64 ia64 ppc64 s390"
13
KEYWORDS="x86 ppc sparc mips alpha arm hppa amd64 ia64 ppc64 s390 macos"
14
IUSE=""
14
IUSE=""
15
15
16
RDEPEND="virtual/libc"
16
RDEPEND="virtual/libc"
Lines 22-28 Link Here
22
	cd ${S}
22
	cd ${S}
23
	epatch ${FILESDIR}/${P}-dotdot.patch
23
	epatch ${FILESDIR}/${P}-dotdot.patch
24
24
25
	sed -i \
25
	if [ ${ARCH} = macos ]; then
26
		SED=gsed
27
	else
28
		SED=sed
29
	fi
30
	${SED} -i \
26
		-e "s:-O3:${CFLAGS}:" \
31
		-e "s:-O3:${CFLAGS}:" \
27
		-e "s:CC=gcc LD=gcc:CC=${CC:-gcc} LD=${CC:-gcc}:" \
32
		-e "s:CC=gcc LD=gcc:CC=${CC:-gcc} LD=${CC:-gcc}:" \
28
		-e "s:-O :${CFLAGS} :" \
33
		-e "s:-O :${CFLAGS} :" \
Lines 35-40 Link Here
35
	use x86 \
40
	use x86 \
36
		&& TARGET=linux \
41
		&& TARGET=linux \
37
		|| TARGET=linux_noasm
42
		|| TARGET=linux_noasm
43
	use macos && TARGET=macosx
38
	emake -f unix/Makefile ${TARGET} || die "emake failed"
44
	emake -f unix/Makefile ${TARGET} || die "emake failed"
39
}
45
}
40
46

Return to bug 62307