Diff ipv6calc-3.2.0 with a ipv6calc-4.0.0

/usr/portage/net-misc/ipv6calc/ipv6calc-4.0.0.ebuild 2023-10-09 14:52:34.656368480 +0300
1
# Copyright 1999-2021 Gentoo Authors
1
# Copyright 1999-2022 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4 4
EAPI="8"
......
10 10
LICENSE="GPL-2"
11 11
SLOT="0"
12 12
KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux"
13
IUSE="geoip test"
13
IUSE="cgi geoip test"
14 14
RESTRICT="!test? ( test )"
15 15

  
16 16
RDEPEND="
17
	cgi? (
18
		dev-perl/URI
19
		dev-perl/Digest-SHA1
20
	)
17 21
	dev-libs/openssl:=
18 22
	geoip? ( >=dev-libs/geoip-1.4.7 )
19 23
"
......
21 25
	test? ( dev-perl/Digest-SHA1 )
22 26
"
23 27

  
24
#dev-perl/URI is needed for web interface, that is not installed now
25

  
26 28
src_configure() {
27 29
	# These options are broken.  You can't disable them.  That's
28 30
	# okay because we want then force enabled.
29 31
	# --disable-db-as-registry
30 32
	# --disable-db-cc-registry
33
	local myeconfargs=(
34
		--disable-bundled-getopt
35
		--disable-bundled-md5
36
		--enable-shared
37
		--enable-dynamic-load
38
		--enable-db-ieee
39
		--enable-db-ipv4
40
		--enable-db-ipv6
41
		--disable-dbip
42
		--disable-dbip2
43
		--disable-external
44
		--disable-ip2location
45
		--enable-openssl-evp-md5
46
		--enable-openssl-md5
47
		$(use_enable geoip)
48
		$(use_enable cgi mod_ipv6calc )
49
	)
50

  
31 51
	if use geoip; then
32
		myconf=$(use_enable geoip)
33
		myconf+=" --with-geoip-db=${EPREFIX}/usr/share/GeoIP"
52
		myeconfargs+=( "--with-geoip-db=${EPREFIX}/usr/share/GeoIP" )
34 53
	fi
35
	econf \
36
		--disable-bundled-getopt \
37
		--disable-bundled-md5 \
38
		--enable-shared \
39
		--enable-dynamic-load \
40
		--enable-db-ieee \
41
		--enable-db-ipv4 \
42
		--enable-db-ipv6 \
43
		--disable-dbip \
44
		--disable-dbip2 \
45
		--disable-external \
46
		--disable-ip2location \
47
		${myconf}
54

  
55
	econf "${myeconfargs[@]}"
48 56
}
49 57

  
50 58
src_compile() {
Thank you!