summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-embedded/mspdebug/mspdebug-0.20.ebuild')
-rw-r--r--dev-embedded/mspdebug/mspdebug-0.20.ebuild36
1 files changed, 36 insertions, 0 deletions
diff --git a/dev-embedded/mspdebug/mspdebug-0.20.ebuild b/dev-embedded/mspdebug/mspdebug-0.20.ebuild
new file mode 100644
index 000000000000..30689b5a8a96
--- /dev/null
+++ b/dev-embedded/mspdebug/mspdebug-0.20.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+inherit toolchain-funcs
+
+DESCRIPTION="A free debugger for use with MSP430 MCUs"
+HOMEPAGE="http://mspdebug.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="readline"
+
+DEPEND="readline? ( sys-libs/readline )
+ virtual/libusb:0"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ sed -i -e "s:-O1 \(.*\) -ggdb:\1:" Makefile
+}
+
+src_compile() {
+ local myflags
+ ! use readline && myflags="WITHOUT_READLINE=1"
+
+ emake CC="$(tc-getCC)" ${myflags}
+}
+
+src_install() {
+ emake DESTDIR="${ED}" PREFIX=/usr install
+ dodoc AUTHORS ChangeLog README
+}