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-util/pscan/, dev-util/pscan/files/
Date: Wed, 21 Aug 2019 07:55:58
Message-Id: 1566374105.c5f52da183f75cb3fc2a1afdfadc7e1aa08109ba.soap@gentoo
1 commit: c5f52da183f75cb3fc2a1afdfadc7e1aa08109ba
2 Author: David Seifert <soap <AT> gentoo <DOT> org>
3 AuthorDate: Wed Aug 21 07:55:05 2019 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Wed Aug 21 07:55:05 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c5f52da1
7
8 dev-util/pscan: Port to EAPI 7
9
10 Package-Manager: Portage-2.3.71, Repoman-2.3.17
11 Signed-off-by: David Seifert <soap <AT> gentoo.org>
12
13 dev-util/pscan/Manifest | 2 +-
14 .../files/pscan-20000721-fix-build-system.patch | 20 ++++++++++++++++++++
15 dev-util/pscan/pscan-20000721-r1.ebuild | 21 +++++++++------------
16 3 files changed, 30 insertions(+), 13 deletions(-)
17
18 diff --git a/dev-util/pscan/Manifest b/dev-util/pscan/Manifest
19 index 3b1dc0e4df0..8acbd564f99 100644
20 --- a/dev-util/pscan/Manifest
21 +++ b/dev-util/pscan/Manifest
22 @@ -1 +1 @@
23 -DIST pscan.tar.gz 14555 BLAKE2B 8e1a8ea91bc2a1b323dc607f703565579e596a3001151609e46a09160766b3b913610a15b64859dc88031a3acf2e3c147dcbd7b033517d3786976ab3cb1bc9f4 SHA512 83196cc9c450217fc2287d38fd1a0b9d1d9951b8f6328b6b9f7f50b680f653b099af04d4c448f3cb2b2a96871eec8772557851e887faa2f41dc259f01c031e78
24 +DIST pscan-20000721.tar.gz 14555 BLAKE2B 8e1a8ea91bc2a1b323dc607f703565579e596a3001151609e46a09160766b3b913610a15b64859dc88031a3acf2e3c147dcbd7b033517d3786976ab3cb1bc9f4 SHA512 83196cc9c450217fc2287d38fd1a0b9d1d9951b8f6328b6b9f7f50b680f653b099af04d4c448f3cb2b2a96871eec8772557851e887faa2f41dc259f01c031e78
25
26 diff --git a/dev-util/pscan/files/pscan-20000721-fix-build-system.patch b/dev-util/pscan/files/pscan-20000721-fix-build-system.patch
27 new file mode 100644
28 index 00000000000..cd22fc2eb19
29 --- /dev/null
30 +++ b/dev-util/pscan/files/pscan-20000721-fix-build-system.patch
31 @@ -0,0 +1,20 @@
32 +--- a/Makefile
33 ++++ b/Makefile
34 +@@ -13,16 +13,10 @@
35 + #CC=gcc -Wall -g
36 + #LEX=flex
37 +
38 +-pscan: scanner.yy.o pscan.o
39 +- $(CC) scanner.yy.o pscan.o -o pscan
40 +-
41 +-scanner.yy.o: scanner.yy.c
42 +- $(CC) -c scanner.yy.c -o scanner.yy.o
43 ++pscan: scanner.yy.o
44 +
45 + scanner.yy.c: scanner.l
46 + $(LEX) -t scanner.l > scanner.yy.c
47 +
48 +-pscan.o: pscan.c pscan.h
49 +-
50 + clean:
51 + rm -f *.o *~ pscan scanner.yy.c core
52
53 diff --git a/dev-util/pscan/pscan-20000721-r1.ebuild b/dev-util/pscan/pscan-20000721-r1.ebuild
54 index 11c078d3650..e63242af2bd 100644
55 --- a/dev-util/pscan/pscan-20000721-r1.ebuild
56 +++ b/dev-util/pscan/pscan-20000721-r1.ebuild
57 @@ -1,34 +1,31 @@
58 -# Copyright 1999-2018 Gentoo Foundation
59 +# Copyright 1999-2019 Gentoo Authors
60 # Distributed under the terms of the GNU General Public License v2
61
62 -EAPI=0
63 +EAPI=7
64
65 inherit toolchain-funcs
66
67 DESCRIPTION="A limited problem scanner for C source files"
68 HOMEPAGE="http://www.striker.ottawa.on.ca/~aland/pscan/"
69 -# I wish upstream would version their files, even if it's only with a date
70 -SRC_URI="http://www.striker.ottawa.on.ca/~aland/pscan/pscan.tar.gz"
71 +SRC_URI="mirror://gentoo/pscan.tar.gz -> ${P}.tar.gz"
72
73 LICENSE="GPL-2"
74 SLOT="0"
75 KEYWORDS="amd64 ppc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
76 IUSE=""
77 -
78 # Does NOT contain a testsuite, but does contain a test.c that confuses src_test
79 RESTRICT="test"
80
81 -RDEPEND=""
82 -DEPEND="${RDEPEND}
83 - sys-devel/flex"
84 +BDEPEND="sys-devel/flex"
85
86 S="${WORKDIR}/${PN}"
87 +PATCHES=( "${FILESDIR}"/${P}-fix-build-system.patch )
88
89 -src_compile() {
90 - emake CC="$(tc-getCC) ${CFLAGS}" || die
91 +src_configure() {
92 + tc-export CC
93 }
94
95 src_install() {
96 - newbin pscan printf-scan || die
97 - dodoc README find_formats.sh test.c wu-ftpd.pscan || die
98 + newbin pscan printf-scan
99 + dodoc README find_formats.sh test.c wu-ftpd.pscan
100 }