summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-12-31 12:53:39 +0000
committerMike Frysinger <vapier@gentoo.org>2005-12-31 12:53:39 +0000
commite012fa13c6bb7de517e745244a4498ca5a2fc04f (patch)
treebf7d614c58585a74c50c474f9d61eea2285b3459 /app-arch/unzip
parentinitial import (diff)
downloadgentoo-2-e012fa13c6bb7de517e745244a4498ca5a2fc04f.tar.gz
gentoo-2-e012fa13c6bb7de517e745244a4498ca5a2fc04f.tar.bz2
gentoo-2-e012fa13c6bb7de517e745244a4498ca5a2fc04f.zip
use CHOST instead of ARCH/USERLAND
(Portage version: 2.1_pre3)
Diffstat (limited to 'app-arch/unzip')
-rw-r--r--app-arch/unzip/unzip-5.52-r1.ebuild13
-rw-r--r--app-arch/unzip/unzip-5.52.ebuild14
2 files changed, 17 insertions, 10 deletions
diff --git a/app-arch/unzip/unzip-5.52-r1.ebuild b/app-arch/unzip/unzip-5.52-r1.ebuild
index 4a2795fd98be..38aa53ee72ff 100644
--- a/app-arch/unzip/unzip-5.52-r1.ebuild
+++ b/app-arch/unzip/unzip-5.52-r1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-arch/unzip/unzip-5.52-r1.ebuild,v 1.1 2005/10/04 23:01:07 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-arch/unzip/unzip-5.52-r1.ebuild,v 1.2 2005/12/31 12:53:39 vapier Exp $
inherit eutils toolchain-funcs flag-o-matic
@@ -32,10 +32,13 @@ src_unpack() {
src_compile() {
local TARGET
- use x86 \
- && TARGET=linux_asm \
- || TARGET=linux_noasm
- use userland_Darwin && TARGET=macosx
+ case ${CHOST} in
+ i?86*-linux*) TARGET=linux_asm ;;
+ *-linux*) TARGET=linux_noasm ;;
+ *-freebsd*) TARGET=freebsd ;;
+ *-darwin*) TARGET=macosx ;;
+ *) die "Unknown target, you suck" ;;
+ esac
emake -f unix/Makefile ${TARGET} || die "emake failed"
}
diff --git a/app-arch/unzip/unzip-5.52.ebuild b/app-arch/unzip/unzip-5.52.ebuild
index e09029eee37a..d91c1581a65a 100644
--- a/app-arch/unzip/unzip-5.52.ebuild
+++ b/app-arch/unzip/unzip-5.52.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-arch/unzip/unzip-5.52.ebuild,v 1.10 2005/09/09 15:11:23 agriffis Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-arch/unzip/unzip-5.52.ebuild,v 1.11 2005/12/31 12:53:39 vapier Exp $
inherit eutils toolchain-funcs flag-o-matic
@@ -30,10 +30,14 @@ src_unpack() {
}
src_compile() {
- use x86 \
- && TARGET=linux \
- || TARGET=linux_noasm
- use userland_Darwin && TARGET=macosx
+ local TARGET
+ case ${CHOST} in
+ i?86*-linux*) TARGET=linux_asm ;;
+ *-linux*) TARGET=linux_noasm ;;
+ *-freebsd*) TARGET=freebsd ;;
+ *-darwin*) TARGET=macosx ;;
+ *) die "Unknown target, you suck" ;;
+ esac
emake -f unix/Makefile ${TARGET} || die "emake failed"
}