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-dialup/radiusclient-ng/files/, net-dialup/radiusclient-ng/
Date: Sat, 27 Feb 2021 01:00:37
Message-Id: 1614387617.e0cd13956a3b5c9c552f936d1e67e229d0fae5e9.sam@gentoo
1 commit: e0cd13956a3b5c9c552f936d1e67e229d0fae5e9
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Sat Feb 27 00:55:04 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Sat Feb 27 01:00:17 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e0cd1395
7
8 net-dialup/radiusclient-ng: port to EAPI 7
9
10 Package-Manager: Portage-3.0.15, Repoman-3.0.2
11 Signed-off-by: Sam James <sam <AT> gentoo.org>
12
13 .../radiusclient-ng-0.5.6-cross-compile.patch | 4 ++--
14 .../radiusclient-ng-0.5.6-r1.ebuild | 22 +++++++++++++++-------
15 2 files changed, 17 insertions(+), 9 deletions(-)
16
17 diff --git a/net-dialup/radiusclient-ng/files/radiusclient-ng-0.5.6-cross-compile.patch b/net-dialup/radiusclient-ng/files/radiusclient-ng-0.5.6-cross-compile.patch
18 index ff11d841bce..4fd5c720359 100644
19 --- a/net-dialup/radiusclient-ng/files/radiusclient-ng-0.5.6-cross-compile.patch
20 +++ b/net-dialup/radiusclient-ng/files/radiusclient-ng-0.5.6-cross-compile.patch
21 @@ -3,8 +3,8 @@ Fix by Bertrand Jacquin <beber AT meleeweb.net>
22 Gentoo bugreport: https://bugs.gentoo.org/show_bug.cgi?id=373365
23 Upstream bugreport: https://developer.berlios.de/bugs/?func=detailbug&bug_id=18190&group_id=1208
24
25 ---- configure.in.orig 2011-06-28 16:26:10.000000000 +0200
26 -+++ configure.in 2011-06-28 16:26:12.000000000 +0200
27 +--- a/configure.in
28 ++++ b/configure.in
29 @@ -104,32 +104,40 @@
30 AC_CHECK_FUNCS(flock fcntl uname gethostname sysinfo getdomainname)
31 AC_CHECK_FUNCS(stricmp random rand snprintf vsnprintf)
32
33 diff --git a/net-dialup/radiusclient-ng/radiusclient-ng-0.5.6-r1.ebuild b/net-dialup/radiusclient-ng/radiusclient-ng-0.5.6-r1.ebuild
34 index cc56f4a6630..ab13afb9151 100644
35 --- a/net-dialup/radiusclient-ng/radiusclient-ng-0.5.6-r1.ebuild
36 +++ b/net-dialup/radiusclient-ng/radiusclient-ng-0.5.6-r1.ebuild
37 @@ -1,10 +1,9 @@
38 -# Copyright 1999-2017 Gentoo Foundation
39 +# Copyright 1999-2021 Gentoo Authors
40 # Distributed under the terms of the GNU General Public License v2
41
42 -EAPI=5
43 +EAPI=7
44
45 -AUTOTOOLS_AUTORECONF=1
46 -inherit autotools-utils eutils toolchain-funcs
47 +inherit autotools toolchain-funcs
48
49 DESCRIPTION="RadiusClient NextGeneration - library for RADIUS clients"
50 HOMEPAGE="https://sourceforge.net/projects/radiusclient-ng.berlios/"
51 @@ -13,7 +12,6 @@ SRC_URI="mirror://sourceforge/${PN}.berlios/${P}.tar.gz"
52 LICENSE="BSD"
53 SLOT="0"
54 KEYWORDS="amd64 ~ppc ~sparc x86"
55 -IUSE="static-libs"
56
57 DEPEND="!net-dialup/radiusclient
58 !net-dialup/freeradius-client"
59 @@ -22,14 +20,24 @@ RDEPEND="${DEPEND}"
60 DOCS=( BUGS CHANGES README )
61 HTML_DOCS=( doc/instop.html )
62
63 -PATCHES=( "${FILESDIR}/${P}-cross-compile.patch" )
64 +PATCHES=(
65 + "${FILESDIR}/${P}-cross-compile.patch"
66 +)
67
68 src_prepare() {
69 + default
70 +
71 + mv configure.{in,ac} || die
72 +
73 + eautoreconf
74 +}
75 +
76 +src_configure() {
77 # bug #373365
78 if tc-is-cross-compiler ; then
79 export ac_cv_file__dev_urandom=yes
80 export ac_cv_struct_utsname=no
81 fi
82
83 - autotools-utils_src_prepare
84 + econf
85 }