1 |
commit: a2cf9a7cef43fef557f78fe86c16034e2d165802 |
2 |
Author: David Seifert <soap <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jul 31 20:03:37 2022 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jul 31 20:03:37 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a2cf9a7c |
7 |
|
8 |
app-misc/tpipe: update EAPI 6 -> 8 |
9 |
|
10 |
Signed-off-by: David Seifert <soap <AT> gentoo.org> |
11 |
|
12 |
.../tpipe-1.6-Wimplicit-function-declaration.patch | 21 ++++++++++++++ |
13 |
app-misc/tpipe/files/tpipe-1.6-makefile.patch | 32 ++++++++++++++++++++++ |
14 |
.../{tpipe-1.6-r1.ebuild => tpipe-1.6-r2.ebuild} | 20 +++++++------- |
15 |
3 files changed, 63 insertions(+), 10 deletions(-) |
16 |
|
17 |
diff --git a/app-misc/tpipe/files/tpipe-1.6-Wimplicit-function-declaration.patch b/app-misc/tpipe/files/tpipe-1.6-Wimplicit-function-declaration.patch |
18 |
new file mode 100644 |
19 |
index 000000000000..9a8a094f06b7 |
20 |
--- /dev/null |
21 |
+++ b/app-misc/tpipe/files/tpipe-1.6-Wimplicit-function-declaration.patch |
22 |
@@ -0,0 +1,21 @@ |
23 |
+--- a/tap.c |
24 |
++++ b/tap.c |
25 |
+@@ -94,7 +94,7 @@ |
26 |
+ else |
27 |
+ n = strtoul(argv[1],NULL,0); |
28 |
+ |
29 |
+- if (!(n)&&(argv[1] != '\0')) { |
30 |
++ if (!(n)&&(*argv[1] != '\0')) { |
31 |
+ fprintf (stderr, "%s: Unreadable integer arg.; Assuming 1.\n",argv[0]); |
32 |
+ n = 1; |
33 |
+ } |
34 |
+--- a/tpipe.c |
35 |
++++ b/tpipe.c |
36 |
+@@ -41,6 +41,7 @@ |
37 |
+ |
38 |
+ #include <stdio.h> |
39 |
+ #include <string.h> /* strcmp() */ |
40 |
++#include <stdlib.h> |
41 |
+ |
42 |
+ #ifndef VERSION |
43 |
+ #define VERSION "1.6" |
44 |
|
45 |
diff --git a/app-misc/tpipe/files/tpipe-1.6-makefile.patch b/app-misc/tpipe/files/tpipe-1.6-makefile.patch |
46 |
new file mode 100644 |
47 |
index 000000000000..7ec3566b107f |
48 |
--- /dev/null |
49 |
+++ b/app-misc/tpipe/files/tpipe-1.6-makefile.patch |
50 |
@@ -0,0 +1,32 @@ |
51 |
+--- a/Makefile |
52 |
++++ b/Makefile |
53 |
+@@ -1,27 +1,16 @@ |
54 |
+ # Change values of variables to adapt. |
55 |
+-CC = gcc |
56 |
+ PRG1 = tpipe |
57 |
+ OBJS1 = $(PRG1).o |
58 |
+ PRG2 = tap |
59 |
+ OBJS2 =$(PRG2).o |
60 |
+-OPTFLAGS= -ansi -pedantic -O4 |
61 |
+-CFLAGS = -Wall $(OPTFLAGS) |
62 |
+-LDFLAGS = -L. |
63 |
++OPTFLAGS= -pedantic |
64 |
++CFLAGS += -Wall $(OPTFLAGS) |
65 |
+ PREFIX = /usr/local |
66 |
+ BINDIR = $(PREFIX)/bin |
67 |
+ MANDIR = $(PREFIX)/man/man1 |
68 |
+ |
69 |
+ all: $(PRG1) $(PRG2) |
70 |
+ |
71 |
+-.c.o: |
72 |
+- $(CC) -c $(CFLAGS) -o $@ $< |
73 |
+- |
74 |
+-$(PRG1): $(OBJS1) |
75 |
+- $(CC) $(CFLAGS) -o $(PRG1) $(OBJS1) $(LDFLAGS) $(LIBS) |
76 |
+- |
77 |
+-$(PRG2): $(OBJS2) |
78 |
+- $(CC) $(CFLAGS) -o $(PRG2) $(OBJS2) $(LDFLAGS) $(LIBS) |
79 |
+- |
80 |
+ clean: |
81 |
+ rm -f *~ *.o $(PRG1) $(PRG2) |
82 |
+ |
83 |
|
84 |
diff --git a/app-misc/tpipe/tpipe-1.6-r1.ebuild b/app-misc/tpipe/tpipe-1.6-r2.ebuild |
85 |
similarity index 62% |
86 |
rename from app-misc/tpipe/tpipe-1.6-r1.ebuild |
87 |
rename to app-misc/tpipe/tpipe-1.6-r2.ebuild |
88 |
index 034575fcdaa3..8b37b96a2605 100644 |
89 |
--- a/app-misc/tpipe/tpipe-1.6-r1.ebuild |
90 |
+++ b/app-misc/tpipe/tpipe-1.6-r2.ebuild |
91 |
@@ -1,7 +1,7 @@ |
92 |
-# Copyright 1999-2016 Gentoo Foundation |
93 |
+# Copyright 1999-2022 Gentoo Authors |
94 |
# Distributed under the terms of the GNU General Public License v2 |
95 |
|
96 |
-EAPI=6 |
97 |
+EAPI=8 |
98 |
|
99 |
inherit toolchain-funcs |
100 |
|
101 |
@@ -13,17 +13,17 @@ LICENSE="GPL-2" |
102 |
SLOT="0" |
103 |
KEYWORDS="amd64 ppc x86" |
104 |
|
105 |
-DOCS=( README.txt ) |
106 |
+PATCHES=( |
107 |
+ "${FILESDIR}"/${P}-makefile.patch |
108 |
+ "${FILESDIR}"/${P}-Wimplicit-function-declaration.patch |
109 |
+) |
110 |
|
111 |
-src_compile() { |
112 |
- emake OPTFLAGS="-ansi -pedantic ${CFLAGS}" \ |
113 |
- PREFIX=/usr \ |
114 |
- CC="$(tc-getCC)" \ |
115 |
- LDFLAGS="${LDFLAGS}" |
116 |
+src_configure() { |
117 |
+ tc-export CC |
118 |
} |
119 |
|
120 |
src_install() { |
121 |
- dobin "${PN}" |
122 |
- doman "${PN}.1" |
123 |
+ dobin tpipe |
124 |
einstalldocs |
125 |
+ doman tpipe.1 |
126 |
} |