summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-misc/ipv6calc')
-rw-r--r--net-misc/ipv6calc/ipv6calc-4.0.0.ebuild9
1 files changed, 6 insertions, 3 deletions
diff --git a/net-misc/ipv6calc/ipv6calc-4.0.0.ebuild b/net-misc/ipv6calc/ipv6calc-4.0.0.ebuild
index 42eca99cbb18..15e5f6214b29 100644
--- a/net-misc/ipv6calc/ipv6calc-4.0.0.ebuild
+++ b/net-misc/ipv6calc/ipv6calc-4.0.0.ebuild
@@ -10,10 +10,14 @@ SRC_URI="https://github.com/pbiering/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux"
-IUSE="geoip test"
+IUSE="cgi geoip test"
RESTRICT="!test? ( test )"
RDEPEND="
+ cgi? (
+ dev-perl/URI
+ dev-perl/Digest-SHA1
+ )
dev-libs/openssl:=
geoip? ( >=dev-libs/geoip-1.4.7 )
"
@@ -21,8 +25,6 @@ DEPEND="${RDEPEND}
test? ( dev-perl/Digest-SHA1 )
"
-#dev-perl/URI is needed for web interface, that is not installed now
-
src_configure() {
# These options are broken. You can't disable them. That's
# okay because we want then force enabled.
@@ -44,6 +46,7 @@ src_configure() {
--disable-dbip2 \
--disable-external \
--disable-ip2location \
+ $(use_enable cgi mod_ipv6calc ) \
${myconf}
}