summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-embedded/msp430-binutils/msp430-binutils-2.21.1_p20111205.ebuild')
-rw-r--r--dev-embedded/msp430-binutils/msp430-binutils-2.21.1_p20111205.ebuild19
1 files changed, 8 insertions, 11 deletions
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
+)