summaryrefslogtreecommitdiff
blob: d87d32a4cb9a0a71d548a6b3d7a49af05d29de90 (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
# Copyright 1999-2020 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=7

EGIT_REPO_URI="https://github.com/utzig/lm4tools.git"

inherit eutils toolchain-funcs git-r3

DESCRIPTION="Provides lm4flash and lmicdiusb for developing on the TI Stellaris Launchpad"
HOMEPAGE="https://github.com/utzig/lm4tools"

LICENSE="GPL-2+ MIT"
SLOT="0"
IUSE=""

RDEPEND="virtual/libusb:1"
DEPEND="${RDEPEND}
	virtual/pkgconfig"

src_prepare () {
	sed -e "s:gcc:$(tc-getCC):" -i lm4flash/Makefile || die
	default
}

src_compile () {
	CC=$(tc-getCC) emake -C lmicdiusb
	emake -C lm4flash
}

src_install () {
	dobin lm4flash/lm4flash
	dobin lmicdiusb/lmicdi
	dodoc README.md lmicdiusb/{README,commands.txt}
}