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-misc/mepl/files/, app-misc/mepl/
Date: Sun, 31 Jul 2022 20:03:55
Message-Id: 1659297808.37c1a35751a76b7b42303e3333d6462eca623e5b.soap@gentoo
1 commit: 37c1a35751a76b7b42303e3333d6462eca623e5b
2 Author: David Seifert <soap <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jul 31 20:03:28 2022 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Sun Jul 31 20:03:28 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=37c1a357
7
8 app-misc/mepl: update EAPI 6 -> 8
9
10 Signed-off-by: David Seifert <soap <AT> gentoo.org>
11
12 app-misc/mepl/files/mepl-0.45-gcc433.patch | 31 +++++++++++++++++++---
13 app-misc/mepl/files/mepl-0.45-makefile.patch | 19 +++++++++++++
14 .../{mepl-0.45-r1.ebuild => mepl-0.45-r2.ebuild} | 22 ++++++++-------
15 3 files changed, 58 insertions(+), 14 deletions(-)
16
17 diff --git a/app-misc/mepl/files/mepl-0.45-gcc433.patch b/app-misc/mepl/files/mepl-0.45-gcc433.patch
18 index 0fd857a9ae30..baf26c03c4f4 100644
19 --- a/app-misc/mepl/files/mepl-0.45-gcc433.patch
20 +++ b/app-misc/mepl/files/mepl-0.45-gcc433.patch
21 @@ -1,11 +1,34 @@
22 ---- a/mepl.c 2009-04-07 21:17:32.000000000 +0200
23 -+++ b/mepl.c 2009-04-07 21:16:48.000000000 +0200
24 +--- a/mepl.c
25 ++++ b/mepl.c
26 @@ -1,3 +1,4 @@
27 +#include <stdlib.h>
28 #define VERSION "0.45 Don Nov 25 19:13:58 CET 1999"
29 /* Version: @(#) mepl.c 0.45
30 - Autor: Frank Holtz <frank@××××××××××.de>--- mepl.c 2009-04-07 21:08:18.000000000 +0200
31 -@@ -347,7 +347,7 @@
32 + Autor: Frank Holtz <frank@××××××××××.de>
33 +@@ -18,11 +19,12 @@
34 + Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
35 + */
36 + #include <fcntl.h>
37 +-// #include <signal.h> #If you have problems to compile remove the "//"
38 ++#include <signal.h>
39 + #include <stdio.h>
40 + #include <string.h>
41 + #include <sys/time.h>
42 + #include <sys/types.h>
43 ++#include <sys/wait.h>
44 + #include <termios.h>
45 + #include <time.h>
46 + #include <unistd.h>
47 +@@ -93,7 +95,7 @@
48 + int hex(unsigned char *);
49 + int fget(int);
50 +
51 +-main(int argc, char *argv[])
52 ++int main(int argc, char *argv[])
53 + {
54 + int i,z,j,k,error,errz,ic,resin,resout,n,pid,opt;
55 + struct termios oldtio,newtio;
56 +@@ -346,7 +348,7 @@
57 errz=0;
58 do {
59 error=0;
60
61 diff --git a/app-misc/mepl/files/mepl-0.45-makefile.patch b/app-misc/mepl/files/mepl-0.45-makefile.patch
62 new file mode 100644
63 index 000000000000..cbd89103719a
64 --- /dev/null
65 +++ b/app-misc/mepl/files/mepl-0.45-makefile.patch
66 @@ -0,0 +1,19 @@
67 +--- a/Makefile
68 ++++ b/Makefile
69 +@@ -13,14 +13,9 @@
70 + initdir = /etc/rc.d/init.d
71 + initdir2 = /etc/init.d
72 +
73 +-CC = gcc
74 +-CFLAGS = -DMEPLCONFIG=\"$(CONFIGFILE)\"
75 ++CPPFLAGS += -DMEPLCONFIG=\"$(CONFIGFILE)\"
76 +
77 +-en: mepl.c
78 +- @echo "Type \"make de\" or \"make installde\" for german version."
79 +- @echo "Taper \"make fr\" ou \"make installfr\" pour la version française."
80 +- @echo "Scrivi \"make it\" or \"make installit\" per la versione italiana."
81 +- $(CC) $(CFLAGS) -o mepl mepl.c
82 ++en: mepl
83 +
84 + de: mepl.c
85 + @echo "Type \"make en\" or \"make installen\" for english version."
86
87 diff --git a/app-misc/mepl/mepl-0.45-r1.ebuild b/app-misc/mepl/mepl-0.45-r2.ebuild
88 similarity index 60%
89 rename from app-misc/mepl/mepl-0.45-r1.ebuild
90 rename to app-misc/mepl/mepl-0.45-r2.ebuild
91 index 260918797539..7a9c8a94b754 100644
92 --- a/app-misc/mepl/mepl-0.45-r1.ebuild
93 +++ b/app-misc/mepl/mepl-0.45-r2.ebuild
94 @@ -1,29 +1,31 @@
95 -# Copyright 1999-2018 Gentoo Foundation
96 +# Copyright 1999-2022 Gentoo Authors
97 # Distributed under the terms of the GNU General Public License v2
98
99 -EAPI=6
100 +EAPI=8
101
102 inherit toolchain-funcs
103
104 DESCRIPTION="Self-employed-mode software for 3COM/USR message modems"
105 HOMEPAGE="https://web.archive.org/web/20031204100644/http://www.hof-berlin.de:80/mepl/"
106 SRC_URI="http://www.hof-berlin.de/mepl/mepl${PV}.tar.gz"
107 +S="${WORKDIR}/${PN}${PV}"
108
109 LICENSE="GPL-2"
110 SLOT="0"
111 KEYWORDS="amd64 ~ppc x86"
112
113 -S="${WORKDIR}/${PN}${PV}"
114 -
115 -PATCHES=( "${FILESDIR}/${P}-gcc433.patch" )
116 +PATCHES=(
117 + "${FILESDIR}"/${P}-makefile.patch
118 + "${FILESDIR}"/${P}-gcc433.patch
119 +)
120
121 -src_compile() {
122 - emake CC="$(tc-getCC)" CFLAGS="${CFLAGS} -DMEPLCONFIG=\\\"/etc/mepl.conf\\\" ${LDFLAGS}" en
123 +src_configure() {
124 + tc-export CC
125 }
126
127 src_install() {
128 - dobin "${PN}" "${PN}mail"
129 + dobin mepl meplmail
130 insinto /etc
131 - doins "${PN}.conf"
132 - newman "${PN}.en" "${PN}.7"
133 + doins mepl.conf
134 + newman mepl.en mepl.7
135 }