blob: 5d91158ae73f0ec8043252dda104252994bb4ff3 [file] [log] [blame]
# Copyright 1999-2011 Gentoo Foundation
# Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-apps/dtc/dtc-1.3.0.ebuild,v 1.1 2011/06/15 21:19:11 flameeyes Exp $
EAPI=4
CROS_WORKON_PROJECT="chromiumos/third_party/dtc"
CROS_WORKON_LOCALNAME="dtc"
inherit toolchain-funcs cros-workon
DESCRIPTION="Open Firmware device-tree compiler"
HOMEPAGE="http://www.t2-project.org/packages/dtc.html"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
IUSE=""
RDEPEND=""
DEPEND="sys-devel/flex
sys-devel/bison"
src_configure() {
cros-workon_src_configure
}
src_compile() {
tc-export AR CC
emake PREFIX="/usr" LIBDIR="/usr/$(get_libdir)"
}
src_test() {
if ! use x86 && ! use amd64 ; then
einfo "Skipping tests on non-x86 platform..."
else
emake check
fi
}
src_install() {
emake DESTDIR="${D}" PREFIX="/usr" LIBDIR="/usr/$(get_libdir)" \
install
dodoc Documentation/manual.txt
}