summaryrefslogtreecommitdiff
blob: 2a8f83a73c54b360714d4b069110c8c6f66edf4f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# 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.19.ebuild,v 1.1 2012/03/13 06:53:55 radhermit Exp $

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="${EPREFIX}"/usr install
	dodoc AUTHORS ChangeLog README
}