public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: net-nntp/newspost/files/, net-nntp/newspost/
@ 2021-04-20  1:21 Sam James
  0 siblings, 0 replies; only message in thread
From: Sam James @ 2021-04-20  1:21 UTC (permalink / raw
  To: gentoo-commits

commit:     ec5cfb01429f7ecb7ccf037517695d619ae8850a
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Tue Apr 20 00:50:38 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Apr 20 01:20:39 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ec5cfb01

net-nntp/newspost: port to EAPI 7

Signed-off-by: Sam James <sam <AT> gentoo.org>

 net-nntp/newspost/files/CAN-2005-0101.patch          |  4 ++--
 .../newspost/files/newspost-2.1.1-glibc-2.10.patch   | 20 ++++++++------------
 net-nntp/newspost/files/newspost-2.1.1-nntp.patch    |  8 ++++----
 net-nntp/newspost/newspost-2.1.1-r3.ebuild           | 17 ++++++++++-------
 4 files changed, 24 insertions(+), 25 deletions(-)

diff --git a/net-nntp/newspost/files/CAN-2005-0101.patch b/net-nntp/newspost/files/CAN-2005-0101.patch
index 2bfdfc2c190..c81936be61b 100644
--- a/net-nntp/newspost/files/CAN-2005-0101.patch
+++ b/net-nntp/newspost/files/CAN-2005-0101.patch
@@ -1,5 +1,5 @@
---- base/socket.c.orig  Tue Jan 18 11:08:02 2005
-+++ base/socket.c       Tue Jan 18 11:10:08 2005
+--- a/base/socket.c
++++ b/base/socket.c
 @@ -126,7 +126,7 @@
  
  	i = 0;

diff --git a/net-nntp/newspost/files/newspost-2.1.1-glibc-2.10.patch b/net-nntp/newspost/files/newspost-2.1.1-glibc-2.10.patch
index fdaa78cbefb..8778ab41c25 100644
--- a/net-nntp/newspost/files/newspost-2.1.1-glibc-2.10.patch
+++ b/net-nntp/newspost/files/newspost-2.1.1-glibc-2.10.patch
@@ -1,6 +1,5 @@
-diff -ur newspost-2.1.1.orig/base/newspost.c newspost-2.1.1/base/newspost.c
---- newspost-2.1.1.orig/base/newspost.c	2003-04-23 18:33:23.000000000 +0300
-+++ newspost-2.1.1/base/newspost.c	2009-08-06 14:46:41.000000000 +0300
+--- a/base/newspost.c
++++ b/base/newspost.c
 @@ -342,7 +342,7 @@
  	file = fopen(filename, "r");
  	if (file != NULL) {
@@ -10,9 +9,8 @@ diff -ur newspost-2.1.1.orig/base/newspost.c newspost-2.1.1/base/newspost.c
  			if(line == NULL){
  				text_buffer = buff_add(text_buffer, "\r\n");
  				continue;
-diff -ur newspost-2.1.1.orig/base/utils.c newspost-2.1.1/base/utils.c
---- newspost-2.1.1.orig/base/utils.c	2009-08-06 14:44:35.000000000 +0300
-+++ newspost-2.1.1/base/utils.c	2009-08-06 14:45:20.000000000 +0300
+--- a/base/utils.c
++++ b/base/utils.c
 @@ -43,7 +43,7 @@
  	return NULL;
  }
@@ -22,9 +20,8 @@ diff -ur newspost-2.1.1.orig/base/utils.c newspost-2.1.1/base/utils.c
  	int c = fgetc(file);
  	buff = buff_free(buff);
  	while(TRUE){
-diff -ur newspost-2.1.1.orig/base/utils.h newspost-2.1.1/base/utils.h
---- newspost-2.1.1.orig/base/utils.h	2003-02-08 17:09:41.000000000 +0200
-+++ newspost-2.1.1/base/utils.h	2009-08-06 14:45:13.000000000 +0300
+--- a/base/utils.h
++++ b/base/utils.h
 @@ -26,7 +26,7 @@
  file_entry * file_entry_alloc();
  file_entry * file_entry_free(file_entry *fe);
@@ -34,9 +31,8 @@ diff -ur newspost-2.1.1.orig/base/utils.h newspost-2.1.1/base/utils.h
  Buff *buff_add(Buff *buff, char *data, ... );
  Buff * buff_free(Buff *buff);
  Buff *buff_create(Buff *buff, char *data, ... );
-diff -ur newspost-2.1.1.orig/ui/options.c newspost-2.1.1/ui/options.c
---- newspost-2.1.1.orig/ui/options.c	2003-04-23 18:33:33.000000000 +0300
-+++ newspost-2.1.1/ui/options.c	2009-08-06 14:46:31.000000000 +0300
+--- a/ui/options.c
++++ b/ui/options.c
 @@ -332,7 +332,7 @@
  		file = fopen(filename->data, "r");
  		if (file != NULL) {

diff --git a/net-nntp/newspost/files/newspost-2.1.1-nntp.patch b/net-nntp/newspost/files/newspost-2.1.1-nntp.patch
index 8779e8f36b4..7482d6203e0 100644
--- a/net-nntp/newspost/files/newspost-2.1.1-nntp.patch
+++ b/net-nntp/newspost/files/newspost-2.1.1-nntp.patch
@@ -1,5 +1,5 @@
---- newspost-2.1.1.orig/base/nntp.c
-+++ newspost-2.1.1/base/nntp.c
+--- a/base/nntp.c
++++ b/base/nntp.c
 @@ -26,6 +26,10 @@
  *** Public Routines
  **/
@@ -56,8 +56,8 @@
  	}
  	
  	buff = buff_add(buff, "From: %s\r\n", data->from->data);
---- newspost-2.1.1.orig/base/utils.c
-+++ newspost-2.1.1/base/utils.c
+--- a/base/utils.c
++++ b/base/utils.c
 @@ -44,7 +44,7 @@
  }
  

diff --git a/net-nntp/newspost/newspost-2.1.1-r3.ebuild b/net-nntp/newspost/newspost-2.1.1-r3.ebuild
index 0bcce1c68dc..b0633bc47a2 100644
--- a/net-nntp/newspost/newspost-2.1.1-r3.ebuild
+++ b/net-nntp/newspost/newspost-2.1.1-r3.ebuild
@@ -1,9 +1,9 @@
 # Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=5
+EAPI=7
 
-inherit epatch toolchain-funcs
+inherit toolchain-funcs
 
 DESCRIPTION="A usenet binary autoposter for unix"
 HOMEPAGE="http://newspost.unixcab.org/"
@@ -12,13 +12,16 @@ SRC_URI="http://newspost.unixcab.org/download/${P}.tar.gz"
 LICENSE="GPL-2"
 SLOT="0"
 KEYWORDS="amd64 ppc x86 ~amd64-linux ~x86-linux ~ppc-macos"
-IUSE=""
 
-src_prepare() {
+PATCHES=(
 	# Should fix some problems with unexpected server replies, cf. bug 185468
-	epatch "${FILESDIR}"/${P}-nntp.patch
-	epatch "${FILESDIR}"/CAN-2005-0101.patch
-	epatch "${FILESDIR}"/${P}-glibc-2.10.patch
+	"${FILESDIR}"/${P}-nntp.patch
+	"${FILESDIR}"/CAN-2005-0101.patch
+	"${FILESDIR}"/${P}-glibc-2.10.patch
+)
+
+src_prepare() {
+	default
 
 	sed -e "/-strip newspost/d" -i Makefile || die
 }


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2021-04-20  1:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-04-20  1:21 [gentoo-commits] repo/gentoo:master commit in: net-nntp/newspost/files/, net-nntp/newspost/ Sam James

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox