[Buildroot] [PATCH 11/17] perl-package-stash: new package

François Perrad francois.perrad at gadz.org
Sat Aug 11 19:37:48 UTC 2018


2018-08-11 20:27 GMT+02:00 Christopher McCrory <chrismcc at gmail.com>:

> Signed-off-by: Christopher McCrory <chrismcc at gmail.com>
> ---
>  DEVELOPERS                                         |  1 +
>  package/Config.in                                  |  1 +
>  package/perl-package-stash/Config.in               |  8 ++++++++
>  package/perl-package-stash/perl-package-stash.hash |  6 ++++++
>  package/perl-package-stash/perl-package-stash.mk   | 15 +++++++++++++++
>  5 files changed, 31 insertions(+)
>  create mode 100644 package/perl-package-stash/Config.in
>  create mode 100644 package/perl-package-stash/perl-package-stash.hash
>  create mode 100644 package/perl-package-stash/perl-package-stash.mk
>
> diff --git a/DEVELOPERS b/DEVELOPERS
> index 9d7d38ea75..ce2e31461a 100644
> --- a/DEVELOPERS
> +++ b/DEVELOPERS
> @@ -499,6 +499,7 @@ F:  package/perl-mime-tools
>  F:     package/perl-module-implementation
>  F:     package/perl-module-runtime
>  F:     package/perl-number-bytes-human
> +F:     package/perl-package-stash
>  F:     package/perl-params-util
>  F:     package/perl-sub-install
>  F:     package/perl-sys-meminfo
> diff --git a/package/Config.in b/package/Config.in
> index 1008a651ec..57b22af90e 100644
> --- a/package/Config.in
> +++ b/package/Config.in
> @@ -726,6 +726,7 @@ menu "Perl libraries/modules"
>         source "package/perl-net-telnet/Config.in"
>         source "package/perl-netaddr-ip/Config.in"
>         source "package/perl-number-bytes-human/Config.in"
> +       source "package/perl-package-stash/Config.in"
>         source "package/perl-params-util/Config.in"
>         source "package/perl-path-tiny/Config.in"
>         source "package/perl-sub-install/Config.in"
> diff --git a/package/perl-package-stash/Config.in
> b/package/perl-package-stash/Config.in
> new file mode 100644
> index 0000000000..755850f7b6
> --- /dev/null
> +++ b/package/perl-package-stash/Config.in
> @@ -0,0 +1,8 @@
> +config BR2_PACKAGE_PERL_PACKAGE_STASH
> +       bool "perl-package-stash"
> +       select BR2_PACKAGE_PERL_DIST_CHECKCONFLICTS
> +       select BR2_PACKAGE_PERL_MODULE_IMPLEMENTATION
> +       help
> +         routines for manipulating stashes
> +
> +         http://metacpan.org/release/Package-Stash
> diff --git a/package/perl-package-stash/perl-package-stash.hash
> b/package/perl-package-stash/perl-package-stash.hash
> new file mode 100644
> index 0000000000..4d9b202879
> --- /dev/null
> +++ b/package/perl-package-stash/perl-package-stash.hash
> @@ -0,0 +1,6 @@
> +# retrieved by scancpan from http://cpan.metacpan.org/
> +md5    7e47a8261312e1cf3d12bd2007916b66 Package-Stash-0.37.tar.gz
> +sha256 06ab05388f9130cd377c0e1d3e3bafeed6ef6a1e22104571a9e1d7bfac787b2c
> Package-Stash-0.37.tar.gz
> +
> +# computed by scancpan
> +sha256 b4e0637ed96008ddcbf7e0ddeb73967df3d0b4dc62a6b7fdb86eac37018cb12e
> LICENSE
> diff --git a/package/perl-package-stash/perl-package-stash.mk
> b/package/perl-package-stash/perl-package-stash.mk
> new file mode 100644
> index 0000000000..0da733dcbe
> --- /dev/null
> +++ b/package/perl-package-stash/perl-package-stash.mk
> @@ -0,0 +1,15 @@
> +###########################################################
> #####################
> +#
> +# perl-package-stash
> +#
> +###########################################################
> #####################
> +
> +PERL_PACKAGE_STASH_VERSION = 0.37
> +PERL_PACKAGE_STASH_SOURCE = Package-Stash-$(PERL_PACKAGE_
> STASH_VERSION).tar.gz
> +PERL_PACKAGE_STASH_SITE = $(BR2_CPAN_MIRROR)/authors/id/D/DO/DOY
> +PERL_PACKAGE_STASH_DEPENDENCIES = host-perl-dist-checkconflicts
> perl-dist-checkconflicts perl-module-implementation
> +PERL_TEMPLATE_TOOLKIT_CONF_OPTS += TT_XS_ENABLE=n
>
This line (copy&pasted from perl-template-toolkit.mk) has no side effect
here.

Package-Stash and Package-Stash-XS are two separated modules.
They just supply the same feature, with different implementations, one pure
perl and another native XS.
And you could install both or only your prefered without modification of
files generated by scancpan.

François


> +PERL_PACKAGE_STASH_LICENSE = Artistic or GPL-1.0+
> +PERL_PACKAGE_STASH_LICENSE_FILES = LICENSE
> +
> +$(eval $(perl-package))
> --
> 2.14.4
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20180811/f58756b8/attachment-0002.html>


More information about the buildroot mailing list