1 |
commit: 227c43f85e2ae65102e1e1dc79dd97e51815a9dd |
2 |
Author: David Seifert <soap <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Aug 30 22:25:25 2020 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Aug 30 22:25:25 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=227c43f8 |
7 |
|
8 |
dev-util/csup: Port to EAPI 7 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/730700 |
11 |
Package-Manager: Portage-3.0.4, Repoman-3.0.1 |
12 |
Signed-off-by: David Seifert <soap <AT> gentoo.org> |
13 |
|
14 |
dev-util/csup/csup-20060318-r1.ebuild | 23 +++++-------- |
15 |
.../csup/files/csup-20060318-respectflags.patch | 38 +++++++++++++--------- |
16 |
2 files changed, 32 insertions(+), 29 deletions(-) |
17 |
|
18 |
diff --git a/dev-util/csup/csup-20060318-r1.ebuild b/dev-util/csup/csup-20060318-r1.ebuild |
19 |
index 2c033c7d93e..109a7dc21dc 100644 |
20 |
--- a/dev-util/csup/csup-20060318-r1.ebuild |
21 |
+++ b/dev-util/csup/csup-20060318-r1.ebuild |
22 |
@@ -1,9 +1,9 @@ |
23 |
# Copyright 1999-2020 Gentoo Authors |
24 |
# Distributed under the terms of the GNU General Public License v2 |
25 |
|
26 |
-EAPI=6 |
27 |
+EAPI=7 |
28 |
|
29 |
-inherit toolchain-funcs eutils |
30 |
+inherit toolchain-funcs |
31 |
|
32 |
DESCRIPTION="A rewrite of CVSup" |
33 |
HOMEPAGE="http://www.mu.org/~mux/csup.html" |
34 |
@@ -13,31 +13,26 @@ LICENSE="BSD" |
35 |
SLOT="0" |
36 |
KEYWORDS="~amd64 ~ppc ~x86" |
37 |
|
38 |
-DEPEND=" |
39 |
+RDEPEND=" |
40 |
sys-libs/zlib:0= |
41 |
dev-libs/openssl:0=" |
42 |
- |
43 |
-RDEPEND=" |
44 |
- ${DEPEND}" |
45 |
- |
46 |
-DEPEND=" |
47 |
- ${DEPEND} |
48 |
- >=sys-devel/bison-2.1" |
49 |
+DEPEND="${RDEPEND}" |
50 |
+BDEPEND=">=sys-devel/bison-2.1" |
51 |
|
52 |
S="${WORKDIR}/${PN}" |
53 |
|
54 |
-PATCHES=( "${FILESDIR}/${P}-respectflags.patch") |
55 |
+PATCHES=( "${FILESDIR}"/${P}-respectflags.patch ) |
56 |
|
57 |
src_compile() { |
58 |
# unable to work with yacc, but bison is ok. |
59 |
emake \ |
60 |
CC="$(tc-getCC)" \ |
61 |
- PREFIX=/usr \ |
62 |
+ PREFIX="${EPREFIX}"/usr \ |
63 |
YACC=bison |
64 |
} |
65 |
|
66 |
src_install() { |
67 |
- dobin "${PN}" |
68 |
- doman "${PN}.1" |
69 |
+ dobin csup |
70 |
+ doman csup.1 |
71 |
einstalldocs |
72 |
} |
73 |
|
74 |
diff --git a/dev-util/csup/files/csup-20060318-respectflags.patch b/dev-util/csup/files/csup-20060318-respectflags.patch |
75 |
index c95a974c75e..541622df577 100644 |
76 |
--- a/dev-util/csup/files/csup-20060318-respectflags.patch |
77 |
+++ b/dev-util/csup/files/csup-20060318-respectflags.patch |
78 |
@@ -1,22 +1,22 @@ |
79 |
-Index: csup/GNUmakefile |
80 |
-=================================================================== |
81 |
---- csup.orig/GNUmakefile |
82 |
-+++ csup/GNUmakefile |
83 |
-@@ -21,7 +21,7 @@ WARNS= -Wall -W -Wno-unused-parameter -W |
84 |
+--- a/GNUmakefile |
85 |
++++ b/GNUmakefile |
86 |
+@@ -21,22 +21,22 @@ |
87 |
-Wcast-align -Wunused-parameter -Wchar-subscripts -Winline \ |
88 |
-Wnested-externs -Wredundant-decls -Wno-format-y2k |
89 |
|
90 |
-CFLAGS+= -g -O -pipe -DNDEBUG -I$(PREFIX)/include |
91 |
-+CFLAGS+= -I$(PREFIX)/include |
92 |
++CPPFLAGS+= -DNDEBUG -I$(PREFIX)/include |
93 |
ifeq ($(UNAME), Linux) |
94 |
- CFLAGS+= -D_XOPEN_SOURCE -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 |
95 |
+- CFLAGS+= -D_XOPEN_SOURCE -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 |
96 |
++ CPPFLAGS+= -D_XOPEN_SOURCE -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 |
97 |
endif |
98 |
-@@ -29,14 +29,14 @@ ifeq ($(UNAME), Darwin) |
99 |
- CFLAGS+= -DHAVE_FFLAGS |
100 |
+ ifeq ($(UNAME), Darwin) |
101 |
+- CFLAGS+= -DHAVE_FFLAGS |
102 |
++ CPPFLAGS+= -DHAVE_FFLAGS |
103 |
endif |
104 |
CFLAGS+= $(WARNS) |
105 |
-LDFLAGS= -L$(PREFIX)/lib -lcrypto -lz -lpthread |
106 |
-+LIBS= -L$(PREFIX)/lib -lcrypto -lz -lpthread |
107 |
++LIBS= -lcrypto -lz -lpthread |
108 |
|
109 |
.PHONY: all clean install |
110 |
|
111 |
@@ -28,11 +28,19 @@ Index: csup/GNUmakefile |
112 |
|
113 |
config.c: parse.h |
114 |
|
115 |
-Index: csup/Makefile |
116 |
-=================================================================== |
117 |
---- csup.orig/Makefile |
118 |
-+++ csup/Makefile |
119 |
-@@ -11,7 +11,7 @@ SRCS= attrstack.c config.c detailer.c di |
120 |
+@@ -49,9 +49,6 @@ |
121 |
+ clean: |
122 |
+ rm -f csup $(OBJS) parse.c parse.h token.c csup.1.gz |
123 |
+ |
124 |
+-%.o: %.c |
125 |
+- $(CC) $(CFLAGS) -c -o $@ $< |
126 |
+- |
127 |
+ %.c: %.y |
128 |
+ $(YACC) -d -o $@ $< |
129 |
+ |
130 |
+--- a/Makefile |
131 |
++++ b/Makefile |
132 |
+@@ -11,7 +11,7 @@ |
133 |
globtree.c idcache.c keyword.c lister.c main.c misc.c mux.c parse.y \ |
134 |
pathcomp.c proto.c status.c stream.c threads.c token.l updater.c |