summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Harder <radhermit@gentoo.org>2011-09-15 05:32:01 +0000
committerTim Harder <radhermit@gentoo.org>2011-09-15 05:32:01 +0000
commit5b439f9076dc255cc0cd94dec73fd46b2e733401 (patch)
tree6ac0c11e59271e5316fc2999fe72b275a33bb6bd /dev-embedded
parentBig leechcraft bump, 0.4.90 (diff)
downloadgentoo-2-5b439f9076dc255cc0cd94dec73fd46b2e733401.tar.gz
gentoo-2-5b439f9076dc255cc0cd94dec73fd46b2e733401.tar.bz2
gentoo-2-5b439f9076dc255cc0cd94dec73fd46b2e733401.zip
Initial import from the msp430 overlay.
(Portage version: 2.2.0_alpha55/cvs/Linux x86_64)
Diffstat (limited to 'dev-embedded')
-rw-r--r--dev-embedded/msp430-libc/ChangeLog10
-rw-r--r--dev-embedded/msp430-libc/metadata.xml9
-rw-r--r--dev-embedded/msp430-libc/msp430-libc-20110612.ebuild43
3 files changed, 62 insertions, 0 deletions
diff --git a/dev-embedded/msp430-libc/ChangeLog b/dev-embedded/msp430-libc/ChangeLog
new file mode 100644
index 000000000000..fc4e4f273444
--- /dev/null
+++ b/dev-embedded/msp430-libc/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for dev-embedded/msp430-libc
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-embedded/msp430-libc/ChangeLog,v 1.1 2011/09/15 05:32:01 radhermit Exp $
+
+*msp430-libc-20110612 (15 Sep 2011)
+
+ 15 Sep 2011; Tim Harder <radhermit@gentoo.org> +msp430-libc-20110612.ebuild,
+ +metadata.xml:
+ Initial import from the msp430 overlay.
+
diff --git a/dev-embedded/msp430-libc/metadata.xml b/dev-embedded/msp430-libc/metadata.xml
new file mode 100644
index 000000000000..dd22bfef8ca6
--- /dev/null
+++ b/dev-embedded/msp430-libc/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>dev-embedded</herd>
+ <maintainer>
+ <email>radhermit@gentoo.org</email>
+ <name>Tim Harder</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/dev-embedded/msp430-libc/msp430-libc-20110612.ebuild b/dev-embedded/msp430-libc/msp430-libc-20110612.ebuild
new file mode 100644
index 000000000000..d6333d3191c7
--- /dev/null
+++ b/dev-embedded/msp430-libc/msp430-libc-20110612.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-embedded/msp430-libc/msp430-libc-20110612.ebuild,v 1.1 2011/09/15 05:32:01 radhermit Exp $
+
+EAPI="4"
+
+CHOST="msp430"
+CTARGET="msp430"
+
+DESCRIPTION="C library for MSP430 microcontrollers"
+HOMEPAGE="http://mspgcc.sourceforge.net"
+SRC_URI="mirror://sourceforge/mspgcc/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="crosscompile_opts_headers-only"
+
+DEPEND=">=sys-devel/crossdev-0.9.1"
+[[ ${CATEGORY/cross-} != ${CATEGORY} ]] \
+ && RDEPEND="!dev-embedded/msp430-libc" \
+ || RDEPEND=""
+
+S="${WORKDIR}/${P}/src"
+
+pkg_setup() {
+ ebegin "Checking for msp430-gcc"
+ if type -p msp430-gcc > /dev/null ; then
+ eend 0
+ else
+ eend 1
+
+ eerror
+ eerror "Failed to locate 'msp430-gcc' in \$PATH. You can install a MSP430 toolchain using:"
+ eerror " $ crossdev -t msp430"
+ eerror
+ die "MSP430 toolchain not found"
+ fi
+}
+
+src_install() {
+ emake PREFIX="${D}"/usr install
+}