Gentoo Archives: gentoo-commits

From: Marek Szuba <marecki@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-embedded/lpc21isp/files/, dev-embedded/lpc21isp/
Date: Tue, 23 Nov 2021 23:40:23
Message-Id: 1637710730.5113fc7c5d5620e25f6253bec25495613dfaaedc.marecki@gentoo
1 commit: 5113fc7c5d5620e25f6253bec25495613dfaaedc
2 Author: Marek Szuba <marecki <AT> gentoo <DOT> org>
3 AuthorDate: Tue Nov 23 23:38:39 2021 +0000
4 Commit: Marek Szuba <marecki <AT> gentoo <DOT> org>
5 CommitDate: Tue Nov 23 23:38:50 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5113fc7c
7
8 dev-embedded/lpc21isp: add 1.97, drop 1.85
9
10 EAPI 5 -> 8 + fix hard-coded CC=gcc assignment.
11
12 Closes: https://bugs.gentoo.org/722604
13 Signed-off-by: Marek Szuba <marecki <AT> gentoo.org>
14
15 dev-embedded/lpc21isp/Manifest | 2 +-
16 .../files/lpc21isp-1.97-makefile-tc-vars.patch | 11 +++++++++++
17 .../{lpc21isp-1.85.ebuild => lpc21isp-1.97.ebuild} | 20 +++++++++-----------
18 3 files changed, 21 insertions(+), 12 deletions(-)
19
20 diff --git a/dev-embedded/lpc21isp/Manifest b/dev-embedded/lpc21isp/Manifest
21 index 93f2bf182722..675d272fbf03 100644
22 --- a/dev-embedded/lpc21isp/Manifest
23 +++ b/dev-embedded/lpc21isp/Manifest
24 @@ -1 +1 @@
25 -DIST lpc21isp_185.tar.gz 54735 BLAKE2B 0ba04fca994891ccd68a2d6b6c981bb6e2cf91a70eaa2ba576eccaad328591665b53ad551d349a59c7b86e2636504c09276a16f3f5a34953d643b4f1fa4628ff SHA512 585c8f02771fc68719c8a5e6cc4253854dce4f4e0047df8a1d57db273cb51c9d4fcbe1066b079aaec54d7ca189e90710647b95fdb320729753967c265b1ac954
26 +DIST lpc21isp-1.97.tar.gz 62171 BLAKE2B 0c01e35c4006f6b106651629f82a025fa15810e0b809adc8d672d1e8a8bde0e81b897bfd2fab88b770ac5527ded537567c1e8b3eb16f938752c56779f5435aa3 SHA512 bd4644352b9d4f3c24f93d8fe68274e2d238d9c91d3d0d6a0c06b878d31099cada772b35ce94885bccd309f5e2e56bc881a0a5302901349046a51537cfebb795
27
28 diff --git a/dev-embedded/lpc21isp/files/lpc21isp-1.97-makefile-tc-vars.patch b/dev-embedded/lpc21isp/files/lpc21isp-1.97-makefile-tc-vars.patch
29 new file mode 100644
30 index 000000000000..18e6d21fe19c
31 --- /dev/null
32 +++ b/dev-embedded/lpc21isp/files/lpc21isp-1.97-makefile-tc-vars.patch
33 @@ -0,0 +1,11 @@
34 +--- a/Makefile
35 ++++ b/Makefile
36 +@@ -1,7 +1,7 @@
37 + all: lpc21isp
38 +
39 + GLOBAL_DEP = adprog.h lpc21isp.h lpcprog.h lpcterm.h
40 +-CC = gcc
41 ++CC ?= gcc
42 +
43 + ifneq ($(findstring(freebsd, $(OSTYPE))),)
44 + CFLAGS+=-D__FREEBSD__
45
46 diff --git a/dev-embedded/lpc21isp/lpc21isp-1.85.ebuild b/dev-embedded/lpc21isp/lpc21isp-1.97.ebuild
47 similarity index 50%
48 rename from dev-embedded/lpc21isp/lpc21isp-1.85.ebuild
49 rename to dev-embedded/lpc21isp/lpc21isp-1.97.ebuild
50 index fd08a385c1e2..5c201608ac52 100644
51 --- a/dev-embedded/lpc21isp/lpc21isp-1.85.ebuild
52 +++ b/dev-embedded/lpc21isp/lpc21isp-1.97.ebuild
53 @@ -1,25 +1,23 @@
54 -# Copyright 1999-2013 Gentoo Foundation
55 +# Copyright 1999-2021 Gentoo Authors
56 # Distributed under the terms of the GNU General Public License v2
57
58 -EAPI=5
59 +EAPI=8
60
61 -inherit versionator
62 -
63 -MY_PN="${PN}_$(delete_all_version_separators)"
64 +MY_P="${PN}_$(ver_rs 1- '')"
65
66 DESCRIPTION="In-circuit programming (ISP) tool for the NXP microcontrollers"
67 HOMEPAGE="https://sourceforge.net/projects/lpc21isp/"
68 -SRC_URI="mirror://sourceforge/${PN}/${MY_PN}.tar.gz"
69 +SRC_URI="mirror://sourceforge/project/${PN}/${PN}/${PV}/${MY_P}.tar.gz -> ${P}.tar.gz"
70
71 -LICENSE="LGPL-3"
72 +LICENSE="LGPL-3+"
73 SLOT="0"
74 KEYWORDS="~amd64 ~x86"
75 -IUSE=""
76
77 -DEPEND=""
78 -RDEPEND=""
79 +PATCHES=(
80 + "${FILESDIR}"/${PN}-1.97-makefile-tc-vars.patch
81 +)
82
83 -S=${WORKDIR}
84 +S="${WORKDIR}"/${MY_P}
85
86 src_install() {
87 dobin lpc21isp