You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-perl/Net-Telnet-Cisco/Net-Telnet-Cisco-1.110.0.eb...

33 lines
865 B

# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
DIST_AUTHOR=VINSWORLD
DIST_VERSION=1.11
inherit perl-module
DESCRIPTION="Automate telnet sessions w/ routers&switches"
SLOT="0"
KEYWORDS="~alpha amd64 ~hppa ~ia64 ~mips ~ppc ppc64 sparc x86"
IUSE="test"
RESTRICT="!test? ( test )"
RDEPEND=">=dev-perl/Net-Telnet-3.20.0"
DEPEND="${RDEPEND}
virtual/perl-ExtUtils-MakeMaker
test? ( dev-perl/TermReadKey )
"
PATCHES=( "${FILESDIR}/${PN}-1.11-no-interactive-test.patch" )
PERL_RM_FILES=( "t/02-pod-coverage.t" )
src_test() {
if [[ -z $CISCO_TEST_ROUTER ]]; then
elog "Comprehensive testing requires a configured, network accessible Cisco Router"
elog "to test against. For details, see:"
elog "https://wiki.gentoo.org/wiki/Project:Perl/maint-notes/${CATEGORY}/${PN}"
fi
perl-module_src_test
}