Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-im/cpop/, net-im/cpop/files/
Date: Mon, 19 Apr 2021 19:12:53
Message-Id: 1618859538.1fd49fddace78ca42521b9d54f7cd775fdd7bc44.sam@gentoo
1 commit: 1fd49fddace78ca42521b9d54f7cd775fdd7bc44
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Mon Apr 19 18:53:41 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Mon Apr 19 19:12:18 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1fd49fdd
7
8 net-im/cpop: port to EAPI 7
9
10 Signed-off-by: Sam James <sam <AT> gentoo.org>
11
12 net-im/cpop/cpop-0.0.4-r1.ebuild | 11 ++++-------
13 .../cpop/files/cpop-0.0.4-implicit-exit_memset_strlen.patch | 12 ++++++------
14 2 files changed, 10 insertions(+), 13 deletions(-)
15
16 diff --git a/net-im/cpop/cpop-0.0.4-r1.ebuild b/net-im/cpop/cpop-0.0.4-r1.ebuild
17 index 04b26d3a6a1..9315a2381ea 100644
18 --- a/net-im/cpop/cpop-0.0.4-r1.ebuild
19 +++ b/net-im/cpop/cpop-0.0.4-r1.ebuild
20 @@ -1,9 +1,7 @@
21 # Copyright 1999-2021 Gentoo Authors
22 # Distributed under the terms of the GNU General Public License v2
23
24 -EAPI=5
25 -
26 -inherit epatch
27 +EAPI=7
28
29 DESCRIPTION="GTK+ network popup message client. Compatible with the jpop protocol"
30 HOMEPAGE="http://www.draxil.uklinux.net/hip/index.pl?page=cpop"
31 @@ -12,15 +10,14 @@ SRC_URI="mirror://gentoo/${P}.tar.gz"
32 LICENSE="GPL-2"
33 SLOT="0"
34 KEYWORDS="~amd64 ~ppc ~x86"
35 -IUSE=""
36
37 RDEPEND="dev-libs/glib:2
38 x11-libs/gtk+:2"
39 DEPEND="${RDEPEND}"
40
41 -src_prepare() {
42 - epatch "${FILESDIR}"/${P}-implicit-exit_memset_strlen.patch
43 -}
44 +PATCHES=(
45 + "${FILESDIR}"/${P}-implicit-exit_memset_strlen.patch
46 +)
47
48 src_install() {
49 emake DESTDIR="${D}" install
50
51 diff --git a/net-im/cpop/files/cpop-0.0.4-implicit-exit_memset_strlen.patch b/net-im/cpop/files/cpop-0.0.4-implicit-exit_memset_strlen.patch
52 index 3ce224c2910..d47bfcde9d8 100644
53 --- a/net-im/cpop/files/cpop-0.0.4-implicit-exit_memset_strlen.patch
54 +++ b/net-im/cpop/files/cpop-0.0.4-implicit-exit_memset_strlen.patch
55 @@ -5,8 +5,8 @@ pop_gui_client.c:58:4: warning: incompatible implicit declaration of built-in fu
56 pop_gui_client.c:72:27: warning: incompatible implicit declaration of built-in function ‘strlen’
57 pop_gui_client.c:128:3: warning: incompatible implicit declaration of built-in function ‘exit’
58
59 ---- pop_client.c
60 -+++ pop_client.c
61 +--- a/pop_client.c
62 ++++ b/pop_client.c
63 @@ -1,11 +1,11 @@
64 #include <stdio.h>
65 +#include <stdlib.h>
66 @@ -20,16 +20,16 @@ pop_gui_client.c:128:3: warning: incompatible implicit declaration of built-in f
67 #include <netdb.h>
68 #include "pop_common.h"
69 #include "pop_client.h"
70 ---- pop_common.c
71 -+++ pop_common.c
72 +--- a/pop_common.c
73 ++++ b/pop_common.c
74 @@ -1,4 +1,5 @@
75 #include <stdio.h>
76 +#include <stdlib.h>
77 void errquit(char *message)
78 {
79 perror(message);
80 ---- pop_gui_client.c
81 -+++ pop_gui_client.c
82 +--- a/pop_gui_client.c
83 ++++ b/pop_gui_client.c
84 @@ -1,3 +1,5 @@
85 +#include <stdlib.h>
86 +#include <string.h>