Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-embedded/picasm/, dev-embedded/picasm/files/
Date: Wed, 16 Sep 2020 18:19:24
Message-Id: 1600280280.b40447c39470be93739c443eec590434df922b27.soap@gentoo
1 commit: b40447c39470be93739c443eec590434df922b27
2 Author: David Seifert <soap <AT> gentoo <DOT> org>
3 AuthorDate: Wed Sep 16 18:18:00 2020 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Wed Sep 16 18:18:00 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b40447c3
7
8 dev-embedded/picasm: Port to EAPI 7
9
10 Closes: https://bugs.gentoo.org/742194
11 Package-Manager: Portage-3.0.7, Repoman-3.0.1
12 Signed-off-by: David Seifert <soap <AT> gentoo.org>
13
14 .../picasm/files/picasm-1.14-makefile.patch | 27 ++++++++++++++++++++++
15 dev-embedded/picasm/picasm-1.14.ebuild | 23 +++++++++---------
16 2 files changed, 38 insertions(+), 12 deletions(-)
17
18 diff --git a/dev-embedded/picasm/files/picasm-1.14-makefile.patch b/dev-embedded/picasm/files/picasm-1.14-makefile.patch
19 new file mode 100644
20 index 00000000000..0ac5bacd730
21 --- /dev/null
22 +++ b/dev-embedded/picasm/files/picasm-1.14-makefile.patch
23 @@ -0,0 +1,27 @@
24 +--- a/Makefile
25 ++++ b/Makefile
26 +@@ -5,21 +5,19 @@
27 + # See the file LICENSE for license terms.
28 + #
29 +
30 +-DEFS=-DBUILTIN_INCLUDE1=\"/usr/local/share/picasm/include\"
31 ++CPPFLAGS += -DBUILTIN_INCLUDE1=\"/usr/share/picasm/include\"
32 + #DEFS=-DBUILTIN_INCLUDE1=\"/home/trossi/bin/picasm-include\"
33 +
34 +-CC = gcc
35 +-CFLAGS = -Wall -Wshadow -W -Werror -O2 $(DEFS)
36 ++CFLAGS += -Wall -Wshadow -W
37 + RM = /bin/rm -f
38 +
39 + VERSION=114
40 +
41 +-OBJS = picasm.o config.o token.o symtab.o expr.o \
42 ++OBJS = config.o token.o symtab.o expr.o \
43 + pic12bit.o pic14bit.o pic16bit.o \
44 + util.o
45 +
46 + picasm: $(OBJS)
47 +- $(CC) $(CFLAGS) $(OBJS) -o $@
48 +
49 + clean:
50 + $(RM) picasm *.o examples/*.hex examples/*.lst
51
52 diff --git a/dev-embedded/picasm/picasm-1.14.ebuild b/dev-embedded/picasm/picasm-1.14.ebuild
53 index c8fa9d90d9a..b0ac54ba35e 100644
54 --- a/dev-embedded/picasm/picasm-1.14.ebuild
55 +++ b/dev-embedded/picasm/picasm-1.14.ebuild
56 @@ -1,12 +1,13 @@
57 -# Copyright 1999-2012 Gentoo Foundation
58 +# Copyright 1999-2020 Gentoo Authors
59 # Distributed under the terms of the GNU General Public License v2
60
61 -EAPI=4
62 +EAPI=7
63
64 -inherit toolchain-funcs flag-o-matic
65 +inherit toolchain-funcs
66
67 MY_PV="${PV//.}"
68 MY_P="${PN}${MY_PV}"
69 +
70 DESCRIPTION="An assembler and disassembler for 12 and 14-bit PIC chips"
71 HOMEPAGE="http://www.iki.fi/trossi/pic/"
72 SRC_URI="http://www.iki.fi/trossi/pic/${MY_P}.tar.bz2"
73 @@ -14,17 +15,13 @@ SRC_URI="http://www.iki.fi/trossi/pic/${MY_P}.tar.bz2"
74 LICENSE="MIT"
75 SLOT="0"
76 KEYWORDS="~amd64 x86"
77 -IUSE=""
78
79 -S=${WORKDIR}/${MY_P}
80 +S="${WORKDIR}/${MY_P}"
81
82 -src_prepare() {
83 - sed -i -e 's:$(CC):\0 $(LDFLAGS):' Makefile || die
84 -}
85 +PATCHES=( "${FILESDIR}"/${P}-makefile.patch )
86
87 -src_compile() {
88 - append-cflags -DBUILTIN_INCLUDE1=\\\"/usr/share/picasm/include\\\"
89 - emake CFLAGS="${CFLAGS}" CC="$(tc-getCC)"
90 +src_configure() {
91 + tc-export CC
92 }
93
94 src_install() {
95 @@ -34,8 +31,10 @@ src_install() {
96 insinto /usr/share/picasm/include
97 doins device_definitions/*.i
98
99 - dohtml picasm.html
100 docinto examples
101 dodoc examples/*.*
102 docompress -x /usr/share/doc/${PF}/examples
103 +
104 + docinto html
105 + dodoc picasm.html
106 }