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