net-libs/rpc2: update EAPI 6 -> 8

Closes: https://bugs.gentoo.org/716076
Closes: https://bugs.gentoo.org/725048
Signed-off-by: David Seifert <soap@gentoo.org>
This commit is contained in:
David Seifert 2022-07-02 15:15:56 +02:00
parent 8dc26a90c1
commit 33937f23c9
No known key found for this signature in database
GPG Key ID: CE36E117202E3842
3 changed files with 38 additions and 7 deletions

View File

@ -0,0 +1,10 @@
--- a/rpc2-src/rpc2b.c
+++ b/rpc2-src/rpc2b.c
@@ -42,6 +42,7 @@
#include <config.h>
#endif
+#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>

View File

@ -0,0 +1,21 @@
--- a/rp2gen/Makefile.in
+++ b/rp2gen/Makefile.in
@@ -198,7 +198,8 @@
CCDEPMODE = @CCDEPMODE@
# override any cross compilation target flags
-CFLAGS = -Wall
+AM_CFLAGS = -Wall
+CFLAGS = @CFLAGS@
CONFIG_DATE = @CONFIG_DATE@
CP = @CP@
CPP = @CPP@
@@ -225,7 +226,7 @@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
LD = @LD@
-LDFLAGS =
+LDFLAGS = @LDFLAGS@
LEX = @LEX@
LEXLIB = @LEXLIB@
LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@

View File

@ -1,7 +1,7 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
EAPI=8
DESCRIPTION="Remote procedure call package for IP/UDP (used by Coda)"
HOMEPAGE="http://www.coda.cs.cmu.edu/"
@ -10,17 +10,17 @@ SRC_URI="http://www.coda.cs.cmu.edu/pub/rpc2/src/${P}.tar.xz"
LICENSE="LGPL-2.1"
SLOT="1"
KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~sparc x86"
IUSE="static-libs"
RDEPEND=">=sys-libs/lwp-2.5"
DEPEND="${RDEPEND}"
src_configure() {
econf $(use_enable static-libs static)
}
PATCHES=(
"${FILESDIR}"/${P}-respect-flags.patch
"${FILESDIR}"/${P}-include.patch
)
src_install() {
default
dodoc README.ipv6
use static-libs || find "${ED}"/usr -name '*.la' -delete
find "${ED}" -type f -name '*.la' -delete || die
}