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

Collapse All | Expand All

(-)a/sys-libs/zlib/zlib-1.2.4.ebuild (-7 / +20 lines)
Lines 2-8 Link Here
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/sys-libs/zlib/zlib-1.2.4.ebuild,v 1.2 2010/03/19 02:23:53 vapier Exp $
3
# $Header: /var/cvsroot/gentoo-x86/sys-libs/zlib/zlib-1.2.4.ebuild,v 1.2 2010/03/19 02:23:53 vapier Exp $
4
4
5
inherit eutils toolchain-funcs
5
inherit eutils multilib toolchain-funcs
6
6
7
DESCRIPTION="Standard (de)compression library"
7
DESCRIPTION="Standard (de)compression library"
8
HOMEPAGE="http://www.zlib.net/"
8
HOMEPAGE="http://www.zlib.net/"
Lines 34-42 Link Here
34
	tc-export AR CC RANLIB RC DLLWRAP
34
	tc-export AR CC RANLIB RC DLLWRAP
35
	case ${CHOST} in
35
	case ${CHOST} in
36
	*-mingw*|mingw*)
36
	*-mingw*|mingw*)
37
		emake -f win32/Makefile.gcc prefix=/usr || die
37
		sed -e 's|@prefix@|/usr|g' \
38
			-e 's|@exec_prefix@|${prefix}|g' \
39
			-e 's|@libdir@|${exec_prefix}/'$(get_libdir)'|g' \
40
			-e 's|@includedir@|${prefix}/include|g' \
41
			-e 's|@VERSION@|'${PV}'|g' \
42
			zlib.pc.in > zlib.pc
43
		emake -f win32/Makefile.gcc prefix=/usr STRIP=true || die
38
		;;
44
		;;
39
	*)	# not an autoconf script, so cant use econf
45
	*)	# not an autoconf script, so can't use econf
40
		./configure --shared --prefix=/usr --libdir=/usr/$(get_libdir) || die
46
		./configure --shared --prefix=/usr --libdir=/usr/$(get_libdir) || die
41
		emake || die
47
		emake || die
42
		;;
48
		;;
Lines 44-57 Link Here
44
}
50
}
45
51
46
src_install() {
52
src_install() {
47
	emake install DESTDIR="${D}" || die
48
	dodoc FAQ README ChangeLog doc/*.txt
49
50
	case ${CHOST} in
53
	case ${CHOST} in
51
	*-mingw*|mingw*)
54
	*-mingw*|mingw*)
52
		dobin zlib1.dll || die
55
		dobin zlib1.dll || die
53
		dolib libz.dll.a || die
56
		dolib libz.dll.a || die
57
58
		insinto /usr/include
59
		doins zconf.h zlib.h || die
60
61
		insinto /usr/$(get_libdir)/pkgconfig
62
		doins zlib.pc || die
54
		;;
63
		;;
55
	*) gen_usr_ldscript -a z ;;
64
	*)
65
		emake install DESTDIR="${D}" || die
66
		gen_usr_ldscript -a z ;;
56
	esac
67
	esac
68
69
	dodoc FAQ README ChangeLog doc/*.txt || die
57
}
70
}

Return to bug 310307