1 |
commit: d0612febff6859d90f20ab854fba0943a62fe4ef |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Apr 20 00:31:18 2021 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Apr 20 01:20:26 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d0612feb |
7 |
|
8 |
app-editors/levee: port to EAPI 7 |
9 |
|
10 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
11 |
|
12 |
app-editors/levee/files/levee-3.4o-darwin.patch | 4 +-- |
13 |
app-editors/levee/files/levee-3.5-glibc210.patch | 25 +++++++---------- |
14 |
app-editors/levee/files/levee-3.5a-QA.patch | 5 ++-- |
15 |
app-editors/levee/levee-3.5a.ebuild | 34 +++++++++++++----------- |
16 |
4 files changed, 32 insertions(+), 36 deletions(-) |
17 |
|
18 |
diff --git a/app-editors/levee/files/levee-3.4o-darwin.patch b/app-editors/levee/files/levee-3.4o-darwin.patch |
19 |
index 9481b1a3ade..0af6f799496 100644 |
20 |
--- a/app-editors/levee/files/levee-3.4o-darwin.patch |
21 |
+++ b/app-editors/levee/files/levee-3.4o-darwin.patch |
22 |
@@ -1,5 +1,5 @@ |
23 |
---- unixcall.c.orig 2007-03-18 17:46:05 +0100 |
24 |
-+++ unixcall.c 2007-03-18 17:51:13 +0100 |
25 |
+--- a/unixcall.c |
26 |
++++ b/unixcall.c |
27 |
@@ -77,6 +77,13 @@ |
28 |
static int ioset = 0; |
29 |
static struct termios old; |
30 |
|
31 |
diff --git a/app-editors/levee/files/levee-3.5-glibc210.patch b/app-editors/levee/files/levee-3.5-glibc210.patch |
32 |
index 51cc829cda2..f290613d263 100644 |
33 |
--- a/app-editors/levee/files/levee-3.5-glibc210.patch |
34 |
+++ b/app-editors/levee/files/levee-3.5-glibc210.patch |
35 |
@@ -1,6 +1,5 @@ |
36 |
-diff -NrU5 levee-3.5.original/editcor.c levee-3.5/editcor.c |
37 |
---- levee-3.5.original/editcor.c 2009-07-21 22:58:18.000000000 +0000 |
38 |
-+++ levee-3.5/editcor.c 2009-07-21 23:07:21.000000000 +0000 |
39 |
+--- a/editcor.c |
40 |
++++ b/editcor.c |
41 |
@@ -183,11 +183,11 @@ |
42 |
|
43 |
strcpy(scratch, "/tmp/lv.XXXXXX"); |
44 |
@@ -14,9 +13,8 @@ diff -NrU5 levee-3.5.original/editcor.c levee-3.5/editcor.c |
45 |
if ( (tf = mkstemp(scratch)) < 0 ) { |
46 |
prints("[tempfile error]"); |
47 |
return FALSE; |
48 |
-diff -NrU5 levee-3.5.original/extern.h levee-3.5/extern.h |
49 |
---- levee-3.5.original/extern.h 2009-07-21 22:58:18.000000000 +0000 |
50 |
-+++ levee-3.5/extern.h 2009-07-21 23:02:39.000000000 +0000 |
51 |
+--- a/extern.h |
52 |
++++ b/extern.h |
53 |
@@ -195,11 +195,11 @@ |
54 |
extern exec_type PROC editcore(); |
55 |
|
56 |
@@ -30,9 +28,8 @@ diff -NrU5 levee-3.5.original/extern.h levee-3.5/extern.h |
57 |
extern bool PROC pushb(),pushi(),pushmem(),uputcmd(), delete_to_undo(); |
58 |
extern bool PROC ok_to_scroll(), move_to_undo(); |
59 |
|
60 |
-diff -NrU5 levee-3.5.original/main.c levee-3.5/main.c |
61 |
---- levee-3.5.original/main.c 2009-07-21 22:58:18.000000000 +0000 |
62 |
-+++ levee-3.5/main.c 2009-07-21 23:09:52.000000000 +0000 |
63 |
+--- a/main.c |
64 |
++++ b/main.c |
65 |
@@ -251,11 +251,11 @@ |
66 |
println(); |
67 |
|
68 |
@@ -46,9 +43,8 @@ diff -NrU5 levee-3.5.original/main.c levee-3.5/main.c |
69 |
if (mode == E_VISUAL && zotscreen && noquit) { /*ask for more*/ |
70 |
prints(" [more]"); |
71 |
if ((ch=peekc()) == 13 || ch == ' ' || ch == ':') |
72 |
-diff -NrU5 levee-3.5.original/misc.c levee-3.5/misc.c |
73 |
---- levee-3.5.original/misc.c 2009-07-21 22:58:18.000000000 +0000 |
74 |
-+++ levee-3.5/misc.c 2009-07-21 23:09:10.000000000 +0000 |
75 |
+--- a/misc.c |
76 |
++++ b/misc.c |
77 |
@@ -19,11 +19,11 @@ |
78 |
*/ |
79 |
#include "levee.h" |
80 |
@@ -62,9 +58,8 @@ diff -NrU5 levee-3.5.original/misc.c levee-3.5/misc.c |
81 |
int len; |
82 |
char flag; |
83 |
|
84 |
-diff -NrU5 levee-3.5.original/move.c levee-3.5/move.c |
85 |
---- levee-3.5.original/move.c 2009-07-21 22:58:18.000000000 +0000 |
86 |
-+++ levee-3.5/move.c 2009-07-21 23:10:26.000000000 +0000 |
87 |
+--- a/move.c |
88 |
++++ b/move.c |
89 |
@@ -158,11 +158,11 @@ |
90 |
case FSEARCH: |
91 |
case BSEARCH: |
92 |
|
93 |
diff --git a/app-editors/levee/files/levee-3.5a-QA.patch b/app-editors/levee/files/levee-3.5a-QA.patch |
94 |
index 7e37c76b34a..f6553813d8c 100644 |
95 |
--- a/app-editors/levee/files/levee-3.5a-QA.patch |
96 |
+++ b/app-editors/levee/files/levee-3.5a-QA.patch |
97 |
@@ -1,6 +1,5 @@ |
98 |
-diff -NrU5 levee-3.5a.original/configure.inc levee-3.5a/configure.inc |
99 |
---- levee-3.5a.original/configure.inc 2009-08-12 19:51:26.000000000 +0000 |
100 |
-+++ levee-3.5a/configure.inc 2009-08-12 20:13:41.000000000 +0000 |
101 |
+--- a/configure.inc |
102 |
++++ b/configure.inc |
103 |
@@ -1074,11 +1074,11 @@ |
104 |
else |
105 |
PROG_INSTALL="$DEST" |
106 |
|
107 |
diff --git a/app-editors/levee/levee-3.5a.ebuild b/app-editors/levee/levee-3.5a.ebuild |
108 |
index 3f4400b4c76..e5a02aa046f 100644 |
109 |
--- a/app-editors/levee/levee-3.5a.ebuild |
110 |
+++ b/app-editors/levee/levee-3.5a.ebuild |
111 |
@@ -1,8 +1,9 @@ |
112 |
# Copyright 1999-2021 Gentoo Authors |
113 |
# Distributed under the terms of the GNU General Public License v2 |
114 |
|
115 |
-EAPI=5 |
116 |
-inherit toolchain-funcs epatch |
117 |
+EAPI=7 |
118 |
+ |
119 |
+inherit toolchain-funcs |
120 |
|
121 |
DESCRIPTION="Really tiny vi clone, for things like rescue disks" |
122 |
HOMEPAGE="http://www.pell.chi.il.us/~orc/Code/" |
123 |
@@ -11,34 +12,35 @@ SRC_URI="http://www.pell.chi.il.us/~orc/Code/levee/${P}.tar.gz" |
124 |
LICENSE="levee" |
125 |
SLOT="0" |
126 |
KEYWORDS="amd64 ppc sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~sparc-solaris ~x86-solaris" |
127 |
-IUSE="" |
128 |
|
129 |
RDEPEND=" |
130 |
!app-text/lv |
131 |
sys-libs/ncurses:0= |
132 |
" |
133 |
-DEPEND=" |
134 |
- ${RDEPEND} |
135 |
- virtual/pkgconfig |
136 |
-" |
137 |
+DEPEND="${RDEPEND}" |
138 |
+BDEPEND="virtual/pkgconfig" |
139 |
|
140 |
-src_prepare() { |
141 |
- epatch "${FILESDIR}"/${PN}-3.4o-darwin.patch |
142 |
- epatch "${FILESDIR}"/${P}-QA.patch |
143 |
- epatch "${FILESDIR}"/${PN}-3.5-glibc210.patch |
144 |
-} |
145 |
+PATCHES=( |
146 |
+ "${FILESDIR}"/${PN}-3.4o-darwin.patch |
147 |
+ "${FILESDIR}"/${P}-QA.patch |
148 |
+ "${FILESDIR}"/${PN}-3.5-glibc210.patch |
149 |
+) |
150 |
|
151 |
src_configure() { |
152 |
export AC_CPP_PROG=$(tc-getCPP) |
153 |
- export AC_PATH=${PATH} |
154 |
+ export AC_PATH="${PATH}" |
155 |
export AC_LIBDIR="$($(tc-getPKG_CONFIG) --libs ncurses)" |
156 |
- ./configure.sh --prefix="${PREFIX}"/usr || die "configure failed" |
157 |
+ |
158 |
+ ./configure.sh \ |
159 |
+ --prefix="${PREFIX}"/usr || die "configure failed" |
160 |
} |
161 |
|
162 |
src_compile() { |
163 |
- emake CFLAGS="${CFLAGS} -Wall -Wextra ${LDFLAGS}" CC=$(tc-getCC) |
164 |
+ emake \ |
165 |
+ CFLAGS="${CFLAGS} -Wall -Wextra ${LDFLAGS}" \ |
166 |
+ CC=$(tc-getCC) |
167 |
} |
168 |
|
169 |
src_install() { |
170 |
- emake PREFIX="${D}${EPREFIX}" install |
171 |
+ emake PREFIX="${D}/${EPREFIX}" install |
172 |
} |