summaryrefslogtreecommitdiff
blob: 3444bf5c7f296cc52458670a0834883d2ca64f75 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/eclass/64-bit.eclass,v 1.7 2005/07/11 15:08:06 swegener Exp $

# Recognize 64-bit arches...
# Example:
#      64-bit && epatch ${P}-64bit.patch
#

64-bit() {
	[[ ${PN} != "R" && ${PN} != "rxvt-unicode" ]] && die "DO NOT USE THIS ECLASS"

	case "${ARCH}" in
		alpha|*64) return 0 ;;
		*)         return 1 ;;
	esac
}