commit: 37c1a35751a76b7b42303ed6462eca623e5b
Author: David Seifert gentoo org>
AuthorDate: Sun Jul 31 20:03:28 2022 +
Commit: David Seifert gentoo org>
CommitDate: Sun Jul 31 20:03:28 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=37c1a357
app-misc/mepl: update EAPI 6 -> 8
Signed-off-by: David Seifert gentoo.org>
app-misc/mepl/files/mepl-0.45-gcc433.patch | 31 +++---
app-misc/mepl/files/mepl-0.45-makefile.patch | 19 +
.../{mepl-0.45-r1.ebuild => mepl-0.45-r2.ebuild} | 22 ---
3 files changed, 58 insertions(+), 14 deletions(-)
diff --git a/app-misc/mepl/files/mepl-0.45-gcc433.patch
b/app-misc/mepl/files/mepl-0.45-gcc433.patch
index 0fd857a9ae30..baf26c03c4f4 100644
--- a/app-misc/mepl/files/mepl-0.45-gcc433.patch
+++ b/app-misc/mepl/files/mepl-0.45-gcc433.patch
@@ -1,11 +1,34 @@
a/mepl.c 2009-04-07 21:17:32.0 +0200
-+++ b/mepl.c 2009-04-07 21:16:48.0 +0200
+--- a/mepl.c
b/mepl.c
@@ -1,3 +1,4 @@
+#include
#define VERSION "0.45 Don Nov 25 19:13:58 CET 1999"
/* Version: @(#) mepl.c 0.45
- Autor: Frank Holtz --- mepl.c2009-04-07
21:08:18.0 +0200
-@@ -347,7 +347,7 @@
+ Autor: Frank Holtz
+@@ -18,11 +19,12 @@
+ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ */
+ #include
+-// #include #If you have problems to compile remove the "//"
++#include
+ #include
+ #include
+ #include
+ #include
++#include
+ #include
+ #include
+ #include
+@@ -93,7 +95,7 @@
+ int hex(unsigned char *);
+ int fget(int);
+
+-main(int argc, char *argv[])
++int main(int argc, char *argv[])
+ {
+ int i,z,j,k,error,errz,ic,resin,resout,n,pid,opt;
+ struct termios oldtio,newtio;
+@@ -346,7 +348,7 @@
errz=0;
do {
error=0;
diff --git a/app-misc/mepl/files/mepl-0.45-makefile.patch
b/app-misc/mepl/files/mepl-0.45-makefile.patch
new file mode 100644
index ..cbd89103719a
--- /dev/null
+++ b/app-misc/mepl/files/mepl-0.45-makefile.patch
@@ -0,0 +1,19 @@
+--- a/Makefile
b/Makefile
+@@ -13,14 +13,9 @@
+ initdir = /etc/rc.d/init.d
+ initdir2 = /etc/init.d
+
+-CC= gcc
+-CFLAGS= -DMEPLCONFIG=\"$(CONFIGFILE)\"
++CPPFLAGS += -DMEPLCONFIG=\"$(CONFIGFILE)\"
+
+-en: mepl.c
+- @echo "Type \"make de\" or \"make installde\" for german version."
+- @echo "Taper \"make fr\" ou \"make installfr\" pour la version
fran�aise."
+- @echo "Scrivi \"make it\" or \"make installit\" per la versione
italiana."
+- $(CC) $(CFLAGS) -o mepl mepl.c
++en: mepl
+
+ de: mepl.c
+ @echo "Type \"make en\" or \"make installen\" for english version."
diff --git a/app-misc/mepl/mepl-0.45-r1.ebuild
b/app-misc/mepl/mepl-0.45-r2.ebuild
similarity index 60%
rename from app-misc/mepl/mepl-0.45-r1.ebuild
rename to app-misc/mepl/mepl-0.45-r2.ebuild
index 260918797539..7a9c8a94b754 100644
--- a/app-misc/mepl/mepl-0.45-r1.ebuild
+++ b/app-misc/mepl/mepl-0.45-r2.ebuild
@@ -1,29 +1,31 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=6
+EAPI=8
inherit toolchain-funcs
DESCRIPTION="Self-employed-mode software for 3COM/USR message modems"
HOMEPAGE="https://web.archive.org/web/20031204100644/http://www.hof-berlin.de:80/mepl/;
SRC_URI="http://www.hof-berlin.de/mepl/mepl${PV}.tar.gz;
+S="${WORKDIR}/${PN}${PV}"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ~ppc x86"
-S="${WORKDIR}/${PN}${PV}"
-
-PATCHES=( "${FILESDIR}/${P}-gcc433.patch" )
+PATCHES=(
+ "${FILESDIR}"/${P}-makefile.patch
+ "${FILESDIR}"/${P}-gcc433.patch
+)
-src_compile() {
- emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}
-DMEPLCONFIG=\\\"/etc/mepl.conf\\\" ${LDFLAGS}" en
+src_configure() {
+ tc-export CC
}
src_install() {
- dobin "${PN}" "${PN}mail"
+ dobin mepl meplmail
insinto /etc
- doins "${PN}.conf"
- newman "${PN}.en" "${PN}.7"
+ doins mepl.conf
+ newman mepl.en mepl.7
}