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

Collapse All | Expand All

(-)zip-3.0.ebuild (-4 / +8 lines)
Lines 27-42 Link Here
27
	epatch "${FILESDIR}"/${PN}-3.0-pic.patch
27
	epatch "${FILESDIR}"/${PN}-3.0-pic.patch
28
	epatch "${FILESDIR}"/${PN}-3.0-exec-stack.patch
28
	epatch "${FILESDIR}"/${PN}-3.0-exec-stack.patch
29
	epatch "${FILESDIR}"/${PN}-3.0-build.patch
29
	epatch "${FILESDIR}"/${PN}-3.0-build.patch
30
	epatch "${FILESDIR}"/${PN}-3.0-force-largefile.patch
31
	epatch "${FILESDIR}"/${PN}-3.0-disable-unicode.patch
30
}
32
}
31
33
32
src_compile() {
34
src_compile() {
33
	use bzip2 || append-flags -DNO_BZIP2_SUPPORT
35
	local make_args=""
34
	use crypt || append-flags -DNO_CRYPT
36
	use bzip2 || make_args="${make_args} IZ_BZIP2=1"
35
	use unicode || append-flags -DNO_UNICODE_SUPPORT
37
	use crypt || append-cppflags -DNO_CRYPT
38
	use unicode || make_args="${make_args} DISABLE_UNICODE=1"
39
	tc-is-cross-compiler && make_args="${make_args} LARGEFILE_SUPPORTED=1"
36
	emake \
40
	emake \
37
		CC="$(tc-getCC)" \
41
		CC="$(tc-getCC)" \
38
		LOCAL_ZIP="${CFLAGS} ${CPPFLAGS}" \
42
		LOCAL_ZIP="${CFLAGS} ${CPPFLAGS}" \
39
		-f unix/Makefile generic \
43
		-f unix/Makefile generic ${make_args} \
40
		|| die
44
		|| die
41
}
45
}
42
46

Return to bug 435410