summaryrefslogtreecommitdiff
blob: ea4205f57186427b007e907be3c6ebc2f7374612 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-apps/setarch/setarch-2.0.ebuild,v 1.9 2007/10/09 14:53:34 angelos Exp $

inherit eutils

DESCRIPTION="change reported architecture in new program environment and set personality flags"
HOMEPAGE="http://www.gentoo.org/"
SRC_URI="mirror://gentoo/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="-* amd64 ia64 mips ppc ppc64 s390 sparc x86"
IUSE=""

RDEPEND="!sys-apps/linux32
	!sys-devel/mips32
	!sys-devel/sparc32
	!sys-devel/ppc32"

src_unpack() {
	unpack ${A}
	cd "${S}"
	cp "${FILESDIR}"/Makefile . || die
	epatch "${FILESDIR}"/${PN}-1.8-linux-headers.patch
	epatch "${FILESDIR}"/${PN}-1.9-links.patch
}

src_install() {
	emake install DESTDIR="${D}" || die
}