summaryrefslogtreecommitdiff
blob: 1814ae50a1bf93a56fb26f3e84556fd61685cc92 (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
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

MY_P="${PN}_$(ver_rs 1- '')"

DESCRIPTION="In-circuit programming (ISP) tool for the NXP microcontrollers"
HOMEPAGE="https://sourceforge.net/projects/lpc21isp/"
SRC_URI="https://downloads.sourceforge.net/project/${PN}/${PN}/${PV}/${MY_P}.tar.gz -> ${P}.tar.gz"

LICENSE="LGPL-3+"
SLOT="0"
KEYWORDS="~amd64 ~x86"

S="${WORKDIR}"/${MY_P}

src_prepare() {
	default

	# Upstream makefile has got DOS line endings so using patches there is fragile,
	# see Bug #827018.
	sed -i -e 's#^\(CC \?\)=#\1?=#' Makefile || die
}

src_install() {
	dobin lpc21isp
}