Ver Fonte

package/perl-digest-sha1: new package

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Bernd Kuhls há 10 anos atrás
pai
commit
5088ed7855

+ 1 - 0
package/Config.in

@@ -504,6 +504,7 @@ if BR2_PACKAGE_PERL
 menu "Perl libraries/modules"
 	source "package/perl-datetime-tiny/Config.in"
 	source "package/perl-digest-hmac/Config.in"
+	source "package/perl-digest-sha1/Config.in"
 	source "package/perl-encode-locale/Config.in"
 	source "package/perl-file-listing/Config.in"
 	source "package/perl-file-util/Config.in"

+ 10 - 0
package/perl-digest-sha1/Config.in

@@ -0,0 +1,10 @@
+config BR2_PACKAGE_PERL_DIGEST_SHA1
+	bool "perl-digest-sha1"
+	depends on !BR2_STATIC_LIBS
+	help
+	  Perl interface to the SHA-1 algorithm
+
+	  https://metacpan.org/release/Digest-SHA1
+
+comment "perl-digest-sha1 needs a toolchain w/ dynamic library"
+	depends on BR2_STATIC_LIBS

+ 3 - 0
package/perl-digest-sha1/perl-digest-sha1.hash

@@ -0,0 +1,3 @@
+# retrieved by scancpan from http://cpan.metacpan.org/
+md5    bd22388f268434f2b24f64e28bf1aa35 Digest-SHA1-2.13.tar.gz
+sha256 68c1dac2187421f0eb7abf71452a06f190181b8fc4b28ededf5b90296fb943cc Digest-SHA1-2.13.tar.gz

+ 13 - 0
package/perl-digest-sha1/perl-digest-sha1.mk

@@ -0,0 +1,13 @@
+################################################################################
+#
+# perl-digest-sha1
+#
+################################################################################
+
+PERL_DIGEST_SHA1_VERSION = 2.13
+PERL_DIGEST_SHA1_SOURCE = Digest-SHA1-$(PERL_DIGEST_SHA1_VERSION).tar.gz
+PERL_DIGEST_SHA1_SITE = $(BR2_CPAN_MIRROR)/authors/id/G/GA/GAAS
+PERL_DIGEST_SHA1_DEPENDENCIES = perl
+PERL_DIGEST_SHA1_LICENSE = Artistic or GPLv1+
+
+$(eval $(perl-package))