summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2011-06-15 21:19:11 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2011-06-15 21:19:11 +0000
commitff2d4f96a9c368416f007dbc723a7ecc01239215 (patch)
tree4ce937b68d0572f13856598c3ce7f03b763d1c82 /sys-apps/dtc/dtc-1.3.0.ebuild
parentVersion bump (diff)
downloadgentoo-2-ff2d4f96a9c368416f007dbc723a7ecc01239215.tar.gz
gentoo-2-ff2d4f96a9c368416f007dbc723a7ecc01239215.tar.bz2
gentoo-2-ff2d4f96a9c368416f007dbc723a7ecc01239215.zip
Version bump; remove -Werror and pre-defined CFLAGS; bump to EAPI=4; use parallel make for tests as well.
(Portage version: 2.2.0_alpha41/cvs/Linux x86_64)
Diffstat (limited to 'sys-apps/dtc/dtc-1.3.0.ebuild')
-rw-r--r--sys-apps/dtc/dtc-1.3.0.ebuild46
1 files changed, 46 insertions, 0 deletions
diff --git a/sys-apps/dtc/dtc-1.3.0.ebuild b/sys-apps/dtc/dtc-1.3.0.ebuild
new file mode 100644
index 000000000000..0d3d18300180
--- /dev/null
+++ b/sys-apps/dtc/dtc-1.3.0.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2011 Gentoo Foundation
+# 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
+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 ~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
+}