blob: 3ea96bc5d330b9292d7fc1095d5e2e53fbea76eb (
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=4
inherit toolchain-funcs
MY_P="${PN}-v${PV}"
DESCRIPTION="Open Firmware device-trees compiler"
HOMEPAGE="http://www.t2-project.org/packages/dtc.html"
SRC_URI="http://www.jdl.com/software/${MY_P}.tgz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 arm ppc ppc64 x86"
IUSE=""
RDEPEND=""
DEPEND="sys-devel/flex
sys-devel/bison"
S=${WORKDIR}/${MY_P}
src_prepare() {
sed -i -e "s:CFLAGS =:CFLAGS +=:" \
-e "s:CPPFLAGS =:CPPFLAGS +=:" \
-e "s:-Werror::" \
-e "s:-g -Os::" \
Makefile || die
}
src_compile() {
tc-export AR CC
emake PREFIX="/usr" LIBDIR="/usr/$(get_libdir)"
}
src_test() {
emake check
}
src_install() {
emake DESTDIR="${D}" PREFIX="/usr" LIBDIR="/usr/$(get_libdir)" \
install
dodoc Documentation/manual.txt
}
|