diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2020-08-25 10:45:55 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2020-08-25 10:45:55 +0100 |
commit | 3cf7c3ef441822c889356fd1812ebf2944a59851 (patch) | |
tree | c513fe68548b40365c1c2ebfe35c58ad431cdd77 /dev-perl/Device-SerialPort | |
parent | 05b8b0e0af1d72e51a3ee61522941bf7605cd01c (diff) |
gentoo resync : 25.08.2020
Diffstat (limited to 'dev-perl/Device-SerialPort')
-rw-r--r-- | dev-perl/Device-SerialPort/Device-SerialPort-1.40.0-r3.ebuild | 59 | ||||
-rw-r--r-- | dev-perl/Device-SerialPort/Manifest | 1 |
2 files changed, 60 insertions, 0 deletions
diff --git a/dev-perl/Device-SerialPort/Device-SerialPort-1.40.0-r3.ebuild b/dev-perl/Device-SerialPort/Device-SerialPort-1.40.0-r3.ebuild new file mode 100644 index 000000000000..1964f6c577e6 --- /dev/null +++ b/dev-perl/Device-SerialPort/Device-SerialPort-1.40.0-r3.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DIST_AUTHOR=COOK +DIST_VERSION=1.04 +DIST_EXAMPLES=("eg/*") +inherit perl-module + +DESCRIPTION="A Serial port Perl Module" +# https://bugs.gentoo.org/734728 +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~sparc ~x86" + +#From the module: +# If you run 'make test', you must make sure that nothing is plugged +# into '/dev/ttyS1'! +# Doesn't sound wise to enable SRC_TEST="do" - mcummings + +src_configure() { + myconf=() + [[ -n "${DEVICE_SERIALPORT_PORT}" ]] && myconf+=( "TESTPORT=${DEVICE_SERIALPORT_PORT}" ) + perl-module_src_configure +} +src_compile() { + mymake=( + "OPTIMIZE=${CFLAGS}" + ) + perl-module_src_compile +} +src_test() { + local MODULES=( + "Device::SerialPort ${DIST_VERSION}" + ) + local failed=() + for dep in "${MODULES[@]}"; do + ebegin "Compile testing ${dep}" + perl -Mblib="${S}" -M"${dep} ()" -e1 + eend $? || failed+=( "$dep" ) + done + if [[ ${failed[@]} ]]; then + echo + eerror "One or more modules failed compile:"; + for dep in "${failed[@]}"; do + eerror " ${dep}" + done + die "Failing due to module compilation errors"; + fi + if [[ -n "${DEVICE_SERIALPORT_PORT}" ]]; then + DIST_TEST="do"; # Parallel testing a serial port sounds unsmart. + perl-module_src_test; + else + ewarn "Functional tests are disabled without manual intervention." + ewarn "For details, read:" + ewarn " https://wiki.gentoo.org/wiki/Project:Perl/maint-notes/${CATEGORY}/${PN}#Tests" + fi +} diff --git a/dev-perl/Device-SerialPort/Manifest b/dev-perl/Device-SerialPort/Manifest index 53607eb63b5c..617c75426f06 100644 --- a/dev-perl/Device-SerialPort/Manifest +++ b/dev-perl/Device-SerialPort/Manifest @@ -1,3 +1,4 @@ DIST Device-SerialPort-1.04.tar.gz 98706 BLAKE2B a9ba70e57548efb6fd63869a534a54f066151965b3750d22ac9c24df7fe783ec59fbb623ca7c1d9d5db5cc2a62cac4446efb0cbf2f8b973b3ade818b38d5cc80 SHA512 4b25a7d29091322d516e0aa20693caabe95a8521b3fdc425d1c03e3312fb59a6883268db7eaf79b32586569502fb656c875dd2b6b1d7a4341d9bd6916e04ee44 EBUILD Device-SerialPort-1.40.0-r2.ebuild 1395 BLAKE2B 4542c146df8fdef6539b60bf1231009788acba943c5e7afed55c54ecd294146e3b5368a6c464278ee8320070ad47a3be492026d3e78b4288bdf8056c237238f2 SHA512 740c6f5e875c49f7b90bb190a091fcbc5f63ce48618ec31ea064a52f41b68d23850b07bdc117e95de3cbddb402095b585f2f55b86f69b8cb217082e928724dec +EBUILD Device-SerialPort-1.40.0-r3.ebuild 1518 BLAKE2B c7c8e9b4fdbcb63d733875f6dd2351ccb1bc0cfd68b0d3393806b4ddf48dc85e55ff0730aa12491de669fe086fde1d3f96a3430474ab148b10e3490e3d0b7f75 SHA512 287dffecb2277d97a306fe5c92754f4bf2c0e46ab59196a244d4411c69518b046ea1b862170741b6d2d891ee5e9c52dfa1d1667c15985c4a9bdf05b7776bb3ae MISC metadata.xml 406 BLAKE2B 46af1fef081586d3ade83ea92a603f3c0099b8a89a2693750c333fce7acb2d52cda7c27f7f26a3fba67bd82cd446177b0d436906054deb78ca13a3bc669c4bae SHA512 4033d17808f503aa81fb607db7f8dfd27bebad8b3c62527b63ef8d841d3b5176ed2359767689168731d6f25d6e511ba4f6f4828e3d37bcc53468c01117e5c032 |