1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 DESCRIPTION="IPv6 address calculator"
8 HOMEPAGE="http://www.deepspace6.net/projects/ipv6calc.html"
9 SRC_URI="ftp://ftp.bieringer.de/pub/linux/IPv6/ipv6calc/${P}.tar.gz"
13 KEYWORDS="~alpha amd64 hppa ppc sparc x86 ~amd64-linux ~x86-linux"
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
28 myconf=$(use_enable geoip)
29 myconf+=" --with-geoip-db=${EPREFIX}/usr/share/GeoIP"
32 --disable-bundled-getopt \
33 --disable-bundled-md5 \
35 --enable-dynamic-load \
39 --disable-ip2location \
44 # Disable default CFLAGS (-O2 and -g)
45 emake DEFAULT_CFLAGS=""
49 if [[ ${EUID} -eq 0 ]]; then
50 # Disable tests that fail as root
51 echo true > ipv6logstats/test_ipv6logstats.sh
57 emake DESTDIR="${D}" install
58 dodoc ChangeLog CREDITS README TODO USAGE