You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-embedded/mspdebug/mspdebug-0.21.ebuild

34 lines
812 B

# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-embedded/mspdebug/mspdebug-0.21.ebuild,v 1.1 2012/11/26 09:57:28 radhermit Exp $
EAPI=5
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 "s:-O1 \(.*\) -ggdb:\1:" Makefile || die
}
src_compile() {
emake CC="$(tc-getCC)" $(usex readline "" "WITHOUT_READLINE=1")
}
src_install() {
emake DESTDIR="${ED}" PREFIX="${EPREFIX}"/usr install
dodoc AUTHORS ChangeLog README
}