1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
11 DESCRIPTION="A Serial port Perl Module"
14 KEYWORDS="~alpha amd64 ~arm hppa ia64 ~mips ppc sparc x86"
18 # If you run 'make test', you must make sure that nothing is plugged
20 # Doesn't sound wise to enable SRC_TEST="do" - mcummings
24 [[ -n "${DEVICE_SERIALPORT_PORT}" ]] && myconf+=( "TESTPORT=${DEVICE_SERIALPORT_PORT}" )
25 perl-module_src_configure
29 "Device::SerialPort ${DIST_VERSION}"
32 for dep in "${MODULES[@]}"; do
33 ebegin "Compile testing ${dep}"
34 perl -Mblib="${S}" -M"${dep} ()" -e1
35 eend $? || failed+=( "$dep" )
37 if [[ ${failed[@]} ]]; then
39 eerror "One or more modules failed compile:";
40 for dep in "${failed[@]}"; do
43 die "Failing due to module compilation errors";
45 if [[ -n "${DEVICE_SERIALPORT_PORT}" ]]; then
46 DIST_TEST="do"; # Parallel testing a serial port sounds unsmart.
49 ewarn "Functional tests are disabled without manual intervention."
50 ewarn "For details, read:"
51 ewarn "https://wiki.gentoo.org/wiki/Project:Perl/maint-notes/dev-perl/Device-SerialPort"