1 # Copyright 1999-2017 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 DESCRIPTION="IPv6 address calculator"
7 HOMEPAGE="http://www.deepspace6.net/projects/ipv6calc.html"
8 SRC_URI="ftp://ftp.bieringer.de/pub/linux/IPv6/ipv6calc/${P}.tar.gz"
12 KEYWORDS="~alpha amd64 ~hppa ppc sparc x86 ~amd64-linux ~x86-linux"
13 IUSE="geoip libressl test"
16 !libressl? ( dev-libs/openssl:= )
17 libressl? ( dev-libs/libressl:= )
18 geoip? ( >=dev-libs/geoip-1.4.7 )
21 test? ( dev-perl/Digest-SHA1 )
24 #dev-perl/URI is needed for web interface, that is not installed now
27 # These options are broken. You can't disable them. That's
28 # okay because we want then force enabled.
29 # --disable-db-as-registry
30 # --disable-db-cc-registry
32 myconf=$(use_enable geoip)
33 myconf+=" --with-geoip-db=${EPREFIX}/usr/share/GeoIP"
36 --disable-bundled-getopt \
37 --disable-bundled-md5 \
39 --enable-dynamic-load \
45 --disable-ip2location \
50 # Disable default CFLAGS (-O2 and -g)
51 emake DEFAULT_CFLAGS=""
55 if [[ ${EUID} -eq 0 ]]; then
56 # Disable tests that fail as root
57 echo true > ipv6logstats/test_ipv6logstats.sh
63 emake DESTDIR="${D}" install
64 dodoc ChangeLog CREDITS README TODO USAGE