Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/rman/files/, app-text/rman/
Date: Mon, 28 Dec 2020 14:48:32
Message-Id: 1609166872.47a906a1763d185c40f5e12e351b6f553573817a.soap@gentoo
1 commit: 47a906a1763d185c40f5e12e351b6f553573817a
2 Author: Jakov Smolic <jakov.smolic <AT> sartura <DOT> hr>
3 AuthorDate: Mon Dec 28 14:47:52 2020 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Mon Dec 28 14:47:52 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=47a906a1
7
8 app-text/rman: Port to EAPI 7
9
10 Closes: https://bugs.gentoo.org/757570
11 Package-Manager: Portage-3.0.9, Repoman-3.0.1
12 Signed-off-by: Jakov Smolic <jakov.smolic <AT> sartura.hr>
13 Signed-off-by: David Seifert <soap <AT> gentoo.org>
14
15 app-text/rman/files/rman-3.2-format-security.patch | 5 -----
16 .../{rman-3.2-gentoo.diff => rman-3.2-gentoo.patch} | 5 ++---
17 app-text/rman/files/rman-3.2-ldflags.patch | 6 ++----
18 app-text/rman/rman-3.2-r1.ebuild | 16 +++++++---------
19 4 files changed, 11 insertions(+), 21 deletions(-)
20
21 diff --git a/app-text/rman/files/rman-3.2-format-security.patch b/app-text/rman/files/rman-3.2-format-security.patch
22 index 77070026bdb..4ea7740a682 100644
23 --- a/app-text/rman/files/rman-3.2-format-security.patch
24 +++ b/app-text/rman/files/rman-3.2-format-security.patch
25 @@ -1,8 +1,3 @@
26 - rman.c | 2 +-
27 - 1 file changed, 1 insertion(+), 1 deletion(-)
28 -
29 -diff --git a/rman.c b/rman.c
30 -index d09e547..e5fc88d 100644
31 --- a/rman.c
32 +++ b/rman.c
33 @@ -1372,7 +1372,7 @@ HTML(enum command cmd) {
34
35 diff --git a/app-text/rman/files/rman-3.2-gentoo.diff b/app-text/rman/files/rman-3.2-gentoo.patch
36 similarity index 69%
37 rename from app-text/rman/files/rman-3.2-gentoo.diff
38 rename to app-text/rman/files/rman-3.2-gentoo.patch
39 index ece1e3807e6..676d555ce37 100644
40 --- a/app-text/rman/files/rman-3.2-gentoo.diff
41 +++ b/app-text/rman/files/rman-3.2-gentoo.patch
42 @@ -1,6 +1,5 @@
43 -diff -urN rman-3.2.orig/Makefile rman-3.2/Makefile
44 ---- rman-3.2.orig/Makefile 2003-07-26 12:15:00.000000000 -0700
45 -+++ rman-3.2/Makefile 2005-07-12 01:01:37.000000000 -0700
46 +--- a/Makefile
47 ++++ b/Makefile
48 @@ -15,13 +15,8 @@
49 # this must be a directory that's in your bin PATH.
50 # MANDIR holds the man page.
51
52 diff --git a/app-text/rman/files/rman-3.2-ldflags.patch b/app-text/rman/files/rman-3.2-ldflags.patch
53 index 4a6f5f5d9ea..7f0745b2e0f 100644
54 --- a/app-text/rman/files/rman-3.2-ldflags.patch
55 +++ b/app-text/rman/files/rman-3.2-ldflags.patch
56 @@ -1,7 +1,5 @@
57 -Index: rman-3.2/Makefile
58 -===================================================================
59 ---- rman-3.2.orig/Makefile
60 -+++ rman-3.2/Makefile
61 +--- a/Makefile
62 ++++ b/Makefile
63 @@ -102,7 +102,7 @@ all: rman
64
65 # everyone but me zaps assertions with the -DNDEBUG flag
66
67 diff --git a/app-text/rman/rman-3.2-r1.ebuild b/app-text/rman/rman-3.2-r1.ebuild
68 index d57e0cb0ab0..e27b09503ee 100644
69 --- a/app-text/rman/rman-3.2-r1.ebuild
70 +++ b/app-text/rman/rman-3.2-r1.ebuild
71 @@ -1,9 +1,9 @@
72 # Copyright 1999-2020 Gentoo Authors
73 # Distributed under the terms of the GNU General Public License v2
74
75 -EAPI=5
76 +EAPI=7
77
78 -inherit eutils toolchain-funcs
79 +inherit toolchain-funcs
80
81 DESCRIPTION="PolyGlotMan man page translator AKA RosettaMan"
82 HOMEPAGE="https://sourceforge.net/projects/polyglotman/"
83 @@ -12,16 +12,14 @@ SRC_URI="mirror://sourceforge/polyglotman/${P}.tar.gz"
84 LICENSE="Artistic"
85 SLOT="0"
86 KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
87 -IUSE=""
88
89 RESTRICT="test"
90
91 -src_prepare() {
92 - epatch \
93 - "${FILESDIR}"/${P}-gentoo.diff \
94 - "${FILESDIR}"/${P}-ldflags.patch \
95 - "${FILESDIR}"/${P}-format-security.patch
96 -}
97 +PATCHES=(
98 + "${FILESDIR}"/${P}-gentoo.patch
99 + "${FILESDIR}"/${P}-ldflags.patch
100 + "${FILESDIR}"/${P}-format-security.patch
101 +)
102
103 src_compile() {
104 emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}"