diff options
author | Samuli Suominen <ssuominen@gentoo.org> | 2010-07-06 20:06:19 +0000 |
---|---|---|
committer | Samuli Suominen <ssuominen@gentoo.org> | 2010-07-06 20:06:19 +0000 |
commit | 2cdc4b51554b16fcc67b3149457dba287e6d1841 (patch) | |
tree | cdf5d581a1c52d22dbba7b0e577386cce9d8c7f4 /sys-apps/dtc | |
parent | Skip tests because they don't work at the upstream level. Patch by David Abbott (diff) | |
download | gentoo-2-2cdc4b51554b16fcc67b3149457dba287e6d1841.tar.gz gentoo-2-2cdc4b51554b16fcc67b3149457dba287e6d1841.tar.bz2 gentoo-2-2cdc4b51554b16fcc67b3149457dba287e6d1841.zip |
Respect environment flags wrt #241986 by Diego E. Pettenò.
(Portage version: 2.2_rc67/cvs/Linux x86_64)
Diffstat (limited to 'sys-apps/dtc')
-rw-r--r-- | sys-apps/dtc/ChangeLog | 8 | ||||
-rw-r--r-- | sys-apps/dtc/dtc-1.0.0.ebuild | 27 | ||||
-rw-r--r-- | sys-apps/dtc/files/dtc-1.0.0-Makefile.patch | 25 |
3 files changed, 47 insertions, 13 deletions
diff --git a/sys-apps/dtc/ChangeLog b/sys-apps/dtc/ChangeLog index 54c74d3326a0..32a1dae567bb 100644 --- a/sys-apps/dtc/ChangeLog +++ b/sys-apps/dtc/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for sys-apps/dtc -# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/dtc/ChangeLog,v 1.4 2008/02/20 23:01:54 coldwind Exp $ +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/dtc/ChangeLog,v 1.5 2010/07/06 20:06:19 ssuominen Exp $ + + 06 Jul 2010; Samuli Suominen <ssuominen@gentoo.org> dtc-1.0.0.ebuild, + +files/dtc-1.0.0-Makefile.patch: + Respect environment flags wrt #241986 by Diego E. Pettenò. 20 Feb 2008; Santiago M. Mola <coldwind@gentoo.org> dtc-1.0.0.ebuild: Add ~amd64 wrt bug #209995 diff --git a/sys-apps/dtc/dtc-1.0.0.ebuild b/sys-apps/dtc/dtc-1.0.0.ebuild index f1eddb80fb12..9e182031094c 100644 --- a/sys-apps/dtc/dtc-1.0.0.ebuild +++ b/sys-apps/dtc/dtc-1.0.0.ebuild @@ -1,8 +1,9 @@ -# Copyright 1999-2008 Gentoo Foundation +# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/dtc/dtc-1.0.0.ebuild,v 1.5 2008/02/20 23:01:54 coldwind Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-apps/dtc/dtc-1.0.0.ebuild,v 1.6 2010/07/06 20:06:19 ssuominen Exp $ -inherit eutils +EAPI=2 +inherit eutils toolchain-funcs DESCRIPTION="Utility to pre-compile Open Firmware device-trees for otherwise device-tree-less devices such as the PS3" HOMEPAGE="http://www.t2-project.org/packages/dtc.html" @@ -12,16 +13,20 @@ LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ppc ppc64 ~x86" IUSE="" -S="${WORKDIR}/${PN}" -src_compile () { - emake PREFIX="/usr" LIBDIR="/usr/$(get_libdir)" +S=${WORKDIR}/${PN} + +src_prepare() { + epatch "${FILESDIR}"/${P}-Makefile.patch +} + +src_compile() { + tc-export AR CC + emake PREFIX="/usr" LIBDIR="/usr/$(get_libdir)" || die } -src_install () { - make DESTDIR="${D}" \ - PREFIX="/usr" \ - LIBDIR="/usr/$(get_libdir)" \ - install +src_install() { + emake DESTDIR="${D}" PREFIX="/usr" LIBDIR="/usr/$(get_libdir)" \ + install || die dodoc Documentation/manual.txt } diff --git a/sys-apps/dtc/files/dtc-1.0.0-Makefile.patch b/sys-apps/dtc/files/dtc-1.0.0-Makefile.patch new file mode 100644 index 000000000000..5e7ad6eb6a0a --- /dev/null +++ b/sys-apps/dtc/files/dtc-1.0.0-Makefile.patch @@ -0,0 +1,25 @@ +Respect environment flags per http://bugs.gentoo.org/241986 + +--- Makefile ++++ Makefile +@@ -44,9 +44,8 @@ + endef + + +-CPPFLAGS = -I libfdt +-CFLAGS = -Wall -g +-LDFLAGS = -Llibfdt ++CPPFLAGS += -Ilibfdt ++CFLAGS += -Wall -Llibfdt + + BISON = bison + +@@ -64,7 +63,7 @@ + VECHO = : + else + VECHO = echo " " +-ARFLAGS = rc ++ARFLAGS ?= rc + .SILENT: + endif + |