perl-device-serialport: new package
authorChristopher McCrory <chrismcc@gmail.com>
Fri, 10 Aug 2018 16:14:52 +0000 (09:14 -0700)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sun, 12 Aug 2018 21:37:23 +0000 (23:37 +0200)
Signed-off-by: Christopher McCrory <chrismcc@gmail.com>
Acked-by: Francois Perrad <francois.perrad@gadz.org>
[Thomas: add _LICENSE variable.]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
DEVELOPERS
package/Config.in
package/perl-device-serialport/Config.in [new file with mode: 0644]
package/perl-device-serialport/perl-device-serialport.hash [new file with mode: 0644]
package/perl-device-serialport/perl-device-serialport.mk [new file with mode: 0644]

index 3c80c20cf0bf46b8795f2eadbf5db6dcd9dd2040..a1c037aedb399967cb49859dec627f9bff6c63f1 100644 (file)
@@ -487,6 +487,7 @@ F:  package/perl-class-std/
 F:     package/perl-data-uuid/
 F:     package/perl-date-manip/
 F:     package/perl-dbi/
+F:     package/perl-device-serialport/
 
 N:     Clayton Shotwell <clayton.shotwell@rockwellcollins.com>
 F:     package/audit/
index 8d80c415606c093b895279ed4e00b1b8ef2a8235..23a5628f502deabb9877f2cc3fef4b78fbce0ea0 100644 (file)
@@ -677,6 +677,7 @@ menu "Perl libraries/modules"
        source "package/perl-date-manip/Config.in"
        source "package/perl-datetime-tiny/Config.in"
        source "package/perl-dbi/Config.in"
+       source "package/perl-device-serialport/Config.in"
        source "package/perl-digest-hmac/Config.in"
        source "package/perl-digest-md5/Config.in"
        source "package/perl-digest-sha1/Config.in"
diff --git a/package/perl-device-serialport/Config.in b/package/perl-device-serialport/Config.in
new file mode 100644 (file)
index 0000000..f14e979
--- /dev/null
@@ -0,0 +1,10 @@
+config BR2_PACKAGE_PERL_DEVICE_SERIALPORT
+       bool "perl-device-serialport"
+       depends on !BR2_STATIC_LIBS
+       help
+         Linux/POSIX emulation of Win32::SerialPort functions.
+
+         https://metacpan.org/release/Device-SerialPort
+
+comment "perl-device-serialport needs a toolchain w/ dynamic library"
+       depends on BR2_STATIC_LIBS
diff --git a/package/perl-device-serialport/perl-device-serialport.hash b/package/perl-device-serialport/perl-device-serialport.hash
new file mode 100644 (file)
index 0000000..35ddc13
--- /dev/null
@@ -0,0 +1,6 @@
+# retrieved by scancpan from http://cpan.metacpan.org/
+md5    82c698151f934eb28c65d1838cee7d9e Device-SerialPort-1.04.tar.gz
+sha256 d392567cb39b4ea606c0e0acafd8ed72320311b995336ece5fcefcf9b150e9d7 Device-SerialPort-1.04.tar.gz
+
+# computed by scancpan
+sha256 59432e84eca65c10c4b627f8af0b00833685856b68242b816aea2a38283a124c README
diff --git a/package/perl-device-serialport/perl-device-serialport.mk b/package/perl-device-serialport/perl-device-serialport.mk
new file mode 100644 (file)
index 0000000..a87a744
--- /dev/null
@@ -0,0 +1,13 @@
+################################################################################
+#
+# perl-device-serialport
+#
+################################################################################
+
+PERL_DEVICE_SERIALPORT_VERSION = 1.04
+PERL_DEVICE_SERIALPORT_SOURCE = Device-SerialPort-$(PERL_DEVICE_SERIALPORT_VERSION).tar.gz
+PERL_DEVICE_SERIALPORT_SITE = $(BR2_CPAN_MIRROR)/authors/id/C/CO/COOK
+PERL_DBI_LICENSE = Artistic or GPL-1.0+
+PERL_DEVICE_SERIALPORT_LICENSE_FILES = README
+
+$(eval $(perl-package))