summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2004-12-06 06:01:55 +0000
committerMike Frysinger <vapier@gentoo.org>2004-12-06 06:01:55 +0000
commitdbd2c723366fa0fa4144ee83513dcf8a4494e168 (patch)
tree8e80eab047561df889c1ee65d743d36e11e8edfe /sys-libs/zlib
parentcross-compile fixes (Manifest recommit) (diff)
downloadgentoo-2-dbd2c723366fa0fa4144ee83513dcf8a4494e168.tar.gz
gentoo-2-dbd2c723366fa0fa4144ee83513dcf8a4494e168.tar.bz2
gentoo-2-dbd2c723366fa0fa4144ee83513dcf8a4494e168.zip
cross-compile fixes
Diffstat (limited to 'sys-libs/zlib')
-rw-r--r--sys-libs/zlib/zlib-1.2.1-r3.ebuild18
-rw-r--r--sys-libs/zlib/zlib-1.2.2.ebuild14
2 files changed, 15 insertions, 17 deletions
diff --git a/sys-libs/zlib/zlib-1.2.1-r3.ebuild b/sys-libs/zlib/zlib-1.2.1-r3.ebuild
index 98df485d32de..bf9a2dd6678e 100644
--- a/sys-libs/zlib/zlib-1.2.1-r3.ebuild
+++ b/sys-libs/zlib/zlib-1.2.1-r3.ebuild
@@ -1,8 +1,8 @@
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-libs/zlib/zlib-1.2.1-r3.ebuild,v 1.13 2004/11/12 14:55:58 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/zlib/zlib-1.2.1-r3.ebuild,v 1.14 2004/12/06 06:01:55 vapier Exp $
-inherit eutils flag-o-matic
+inherit eutils flag-o-matic toolchain-funcs
DESCRIPTION="Standard (de)compression library"
HOMEPAGE="http://www.gzip.org/zlib/"
@@ -14,8 +14,6 @@ KEYWORDS="alpha amd64 arm hppa ia64 mips ppc ppc64 s390 sh sparc x86"
IUSE="build"
RDEPEND="virtual/libc"
-DEPEND="${RDEPEND}
- >=sys-devel/binutils-2.14.90.0.6"
src_unpack() {
unpack ${A}
@@ -36,19 +34,22 @@ src_unpack() {
}
src_compile() {
+ export CC="$(tc-getCC)" AR="$(tc-getAR) rc" RANLIB="$(tc-getRANLIB)"
+
./configure --shared --prefix=/usr --libdir=/$(get_libdir) || die
emake || die
- make test || die
./configure --prefix=/usr --libdir=/$(get_libdir) || die
emake || die
}
+src_test() {
+ make test || die
+}
+
src_install() {
einstall libdir=${D}/$(get_libdir) || die
- rm ${D}/$(get_libdir)/libz.a
- into /usr
- dodir /usr/include
+ rm "${D}"/$(get_libdir)/libz.a
insinto /usr/include
doins zconf.h zlib.h
@@ -61,7 +62,6 @@ src_install() {
# we don't need the static lib in /lib
# as it's only for compiling against
- into /usr
dolib libz.a
# all the shared libs go into /lib
diff --git a/sys-libs/zlib/zlib-1.2.2.ebuild b/sys-libs/zlib/zlib-1.2.2.ebuild
index 13a095bbf2a2..9a75ad1a486a 100644
--- a/sys-libs/zlib/zlib-1.2.2.ebuild
+++ b/sys-libs/zlib/zlib-1.2.2.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-libs/zlib/zlib-1.2.2.ebuild,v 1.2 2004/11/12 14:55:58 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/zlib/zlib-1.2.2.ebuild,v 1.3 2004/12/06 06:01:55 vapier Exp $
inherit eutils flag-o-matic
@@ -35,19 +35,18 @@ src_unpack() {
}
src_compile() {
+ export CC="$(tc-getCC)" AR="$(tc-getAR) rc" RANLIB="$(tc-getRANLIB)"
./configure --shared --prefix=/usr --libdir=/$(get_libdir) || die
emake || die
- make test || die
+}
- ./configure --prefix=/usr --libdir=/$(get_libdir) || die
- emake || die
+src_test() {
+ make test || die
}
src_install() {
einstall libdir=${D}/$(get_libdir) || die
- rm ${D}/$(get_libdir)/libz.a
- into /usr
- dodir /usr/include
+ rm "${D}"/$(get_libdir)/libz.a
insinto /usr/include
doins zconf.h zlib.h
@@ -60,7 +59,6 @@ src_install() {
# we don't need the static lib in /lib
# as it's only for compiling against
- into /usr
dolib libz.a
# all the shared libs go into /lib