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

(-)zlib-1.2.5.ebuild.org (-11 / +15 lines)
Lines 19-26 RDEPEND="!<dev-libs/libxml2-2.7.7" #3096 Link Here
19
src_unpack() {
19
src_unpack() {
20
	unpack ${A}
20
	unpack ${A}
21
	cd "${S}"
21
	cd "${S}"
22
	epatch "${FILESDIR}"/${PN}-1.2.4-visibility-support.patch #149929
23
	epatch "${FILESDIR}"/${PN}-1.2.3-mingw-implib.patch #288212
24
	# trust exit status of the compiler rather than stderr #55434
22
	# trust exit status of the compiler rather than stderr #55434
25
	# -if test "`(...) 2>&1`" = ""; then
23
	# -if test "`(...) 2>&1`" = ""; then
26
	# +if (...) 2>/dev/null; then
24
	# +if (...) 2>/dev/null; then
Lines 30-36 src_unpack() { Link Here
30
src_compile() {
28
src_compile() {
31
	case ${CHOST} in
29
	case ${CHOST} in
32
	*-mingw*|mingw*)
30
	*-mingw*|mingw*)
33
		emake -f win32/Makefile.gcc prefix=/usr STRIP= PREFIX=${CHOST}- || die
31
		emake -f win32/Makefile.gcc STRIP=true PREFIX=${CHOST}- || die
34
		;;
32
		;;
35
	*)	# not an autoconf script, so cant use econf
33
	*)	# not an autoconf script, so cant use econf
36
		./configure --shared --prefix=/usr --libdir=/usr/$(get_libdir) || die
34
		./configure --shared --prefix=/usr --libdir=/usr/$(get_libdir) || die
Lines 40-53 src_compile() { Link Here
40
}
38
}
41
39
42
src_install() {
40
src_install() {
43
	emake install DESTDIR="${D}" LDCONFIG=: || die
44
	dodoc FAQ README ChangeLog doc/*.txt
45
46
	case ${CHOST} in
41
	case ${CHOST} in
47
	*-mingw*|mingw*)
42
		*-mingw*|mingw*)
48
		dobin zlib1.dll || die
43
			emake -f win32/Makefile.gcc install \
49
		dolib libz.dll.a || die
44
				BINARY_PATH="${D}/usr/bin" \
50
		;;
45
				LIBRARY_PATH="${D}/usr/$(get_libdir)" \
51
	*) gen_usr_ldscript -a z ;;
46
				INCLUDE_PATH="${D}/usr/include" \
47
				SHARED_MODE=1 \
48
				|| die
49
			;;
50
		*)
51
			emake install DESTDIR="${D}" LDCONFIG=: || die
52
			gen_usr_ldscript -a z
53
			;;
52
	esac
54
	esac
55
56
	dodoc FAQ README ChangeLog doc/*.txt
53
}
57
}

Return to bug 316343