diff options
Diffstat (limited to 'dev-embedded/mspdebug/mspdebug-0.21.ebuild')
-rw-r--r-- | dev-embedded/mspdebug/mspdebug-0.21.ebuild | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/dev-embedded/mspdebug/mspdebug-0.21.ebuild b/dev-embedded/mspdebug/mspdebug-0.21.ebuild new file mode 100644 index 000000000000..b4050fc0bbac --- /dev/null +++ b/dev-embedded/mspdebug/mspdebug-0.21.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit toolchain-funcs eutils + +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 "s:-O1 \(.*\) -ggdb:\1:" Makefile || die + epatch "${FILESDIR}"/${P}-glibc-2.17.patch +} + +src_compile() { + emake CC="$(tc-getCC)" LIBDIR=/usr/lib $(usex readline "" "WITHOUT_READLINE=1") +} + +src_install() { + emake DESTDIR="${ED}" LIBDIR=/usr/lib PREFIX=/usr install + dodoc AUTHORS ChangeLog README +} |