summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2011-12-21 21:02:15 +0000
committerMike Frysinger <vapier@gentoo.org>2011-12-21 21:02:15 +0000
commite34d27e6e3e87b4fa6d92309302b7f41cbbe201c (patch)
treeb71d2c5f525a921449fedec6c1093d6777fd632c /dev-embedded
parentrestore BINUTILS_VER support a bit for releases (for msp430-binutils), and al... (diff)
downloadgentoo-2-e34d27e6e3e87b4fa6d92309302b7f41cbbe201c.tar.gz
gentoo-2-e34d27e6e3e87b4fa6d92309302b7f41cbbe201c.tar.bz2
gentoo-2-e34d27e6e3e87b4fa6d92309302b7f41cbbe201c.zip
Use more common code from toolchain-binutils.eclass.
(Portage version: 2.2.0_alpha81/cvs/Linux x86_64)
Diffstat (limited to 'dev-embedded')
-rw-r--r--dev-embedded/msp430-binutils/ChangeLog6
-rw-r--r--dev-embedded/msp430-binutils/msp430-binutils-2.21.1_p20111205.ebuild19
2 files changed, 13 insertions, 12 deletions
diff --git a/dev-embedded/msp430-binutils/ChangeLog b/dev-embedded/msp430-binutils/ChangeLog
index 6dfbbfee68bf..db6d07d728b5 100644
--- a/dev-embedded/msp430-binutils/ChangeLog
+++ b/dev-embedded/msp430-binutils/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for dev-embedded/msp430-binutils
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-embedded/msp430-binutils/ChangeLog,v 1.2 2011/12/10 22:50:54 radhermit Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-embedded/msp430-binutils/ChangeLog,v 1.3 2011/12/21 21:02:15 vapier Exp $
+
+ 21 Dec 2011; Mike Frysinger <vapier@gentoo.org>
+ msp430-binutils-2.21.1_p20111205.ebuild:
+ Use more common code from toolchain-binutils.eclass.
10 Dec 2011; Tim Harder <radhermit@gentoo.org>
msp430-binutils-2.21.1_p20111205.ebuild:
diff --git a/dev-embedded/msp430-binutils/msp430-binutils-2.21.1_p20111205.ebuild b/dev-embedded/msp430-binutils/msp430-binutils-2.21.1_p20111205.ebuild
index 06c5c1adcd04..3e815488ec2f 100644
--- a/dev-embedded/msp430-binutils/msp430-binutils-2.21.1_p20111205.ebuild
+++ b/dev-embedded/msp430-binutils/msp430-binutils-2.21.1_p20111205.ebuild
@@ -1,23 +1,20 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-embedded/msp430-binutils/msp430-binutils-2.21.1_p20111205.ebuild,v 1.2 2011/12/10 22:50:54 radhermit Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-embedded/msp430-binutils/msp430-binutils-2.21.1_p20111205.ebuild,v 1.3 2011/12/21 21:02:15 vapier Exp $
-EAPI="4"
+BINUTILS_VER=${PV%_p*}
inherit toolchain-binutils
-MY_PV="${PV%_p*}"
DESCRIPTION="Tools necessary to build programs for MSP430 microcontrollers"
-SRC_URI="mirror://gnu/binutils/binutils-${MY_PV}.tar.bz2
- http://dev.gentoo.org/~radhermit/distfiles/${P}.patch.bz2"
-KEYWORDS="~amd64 ~x86"
+SRC_URI+=" http://dev.gentoo.org/~radhermit/distfiles/${P}.patch.bz2"
-S="${WORKDIR}/binutils-${MY_PV}"
+KEYWORDS="~amd64 ~x86"
-pkg_pretend() {
+pkg_setup() {
is_cross || die "Only cross-compile builds are supported"
}
-src_prepare() {
- epatch "${WORKDIR}"/${P}.patch
-}
+PATCHES=(
+ "${WORKDIR}"/${P}.patch
+)