dev-embedded/lm4tools - 9999 (activehome)

Search

Install

Install this version:

emerge -a =dev-embedded/lm4tools-9999

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =dev-embedded/lm4tools-9999

Or alternatively:

emerge --autounmask-write -a =dev-embedded/lm4tools-9999

Package Information

Description:
Provides lm4flash and lmicdiusb for developing on the TI Stellaris Launchpad
Homepage:
https://github.com/utzig/lm4tools
License:
GPL-2+ MIT

Ebuild Details

Version EAPI Keywords Slot
9999 8 0
View Raw Ebuild
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit toolchain-funcs git-r3

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

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

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}
}

Inherited Eclasses

Dependencies

DEPEND

	virtual/libusb:1
	virtual/pkgconfig

RDEPEND

virtual/libusb:1