Skip to contentSkip to conversation

perl/cpan stuff

PATCH New Francois Perrad 4 participants 7 messages Jun 16, 2014 – Jun 22, 2014

lore
Share & tools
lore
#0 lore raw

v2 cover perl/cpan stuff

v1 -> v2
remove leading whitespace in generated Config.in.

note: perl-mojolicious is generated by scancpan

Francois Perrad (2):
support/script/scancpan: populates Config.in with homepage
perl-mojolicious: new package

 package/Config.in                            |  1 +
 package/perl-mojolicious/Config.in           |  6 ++++++
 package/perl-mojolicious/perl-mojolicious.mk | 13 +++++++++++++
 support/scripts/scancpan                     |  6 ++++--
 4 files changed, 24 insertions(+), 2 deletions(-)
 create mode 100644 package/perl-mojolicious/Config.in
 create mode 100644 package/perl-mojolicious/perl-mojolicious.mk
Signature · 1 line
1.9.1
#1 lore raw

PATCH v2 1/2 support/script/scancpan: populates Config.in with homepage

---
 support/scripts/scancpan | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
support/scripts/scancpan +4 -2
index d8723f3..4be4754 100755
@@ -577,6 +577,7 @@ while (my ($distname, $dist) = each %dist) {
     mkdir $dirname unless -d $dirname;
     if ($need_target{$distname} && ($force || !-f $cfgname)) {
         my $abstract = $dist->{abstract};
+        my $homepage = $dist->{resources}->{homepage} || qq{https://metacpan.org/release/${distname}};
         say qq{write ${cfgname}} unless $quiet;
         open my $fh, q{>}, $cfgname;
         say {$fh} qq{config BR2_PACKAGE_${brname}};
@@ -585,8 +586,9 @@ while (my ($distname, $dist) = each %dist) {
             my $brdep = brname( fsname( $dep ) );
             say {$fh} qq{\tselect BR2_PACKAGE_${brdep}};
         }
-        say {$fh} qq{\thelp} if $abstract;
-        say {$fh} qq{\t  ${abstract}} if $abstract;
+        say {$fh} qq{\thelp};
+        say {$fh} qq{\t  ${abstract}\n} if $abstract;
+        say {$fh} qq{\t  ${homepage}};
         close $fh;
     }
     if ($force || !-f $mkname) {
Signature · 1 line
1.9.1
#2 lore raw

PATCH v2 1/2 support/script/scancpan: populates Config.in with homepage

Dear Francois Perrad,

Quoted 5 lines · Francois Perrad
---
 support/scripts/scancpan | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

Applied, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
#3 lore raw

PATCH v2 2/2 perl-mojolicious: new package

In reply to Francois Perrad
---
 package/Config.in                            |  1 +
 package/perl-mojolicious/Config.in           |  6 ++++++
 package/perl-mojolicious/perl-mojolicious.mk | 13 +++++++++++++
 3 files changed, 20 insertions(+)
 create mode 100644 package/perl-mojolicious/Config.in
 create mode 100644 package/perl-mojolicious/perl-mojolicious.mk
package/Config.in +1 -0
index f43e985..5e16ffa 100644
@@ -423,6 +423,7 @@ endif
 	source "package/perl/Config.in"
 if BR2_PACKAGE_PERL
 menu "Perl libraries/modules"
+source "package/perl-mojolicious/Config.in"
 endmenu
 endif
 	source "package/php/Config.in"
package/perl-mojolicious/Config.in new file +6 -0
new file mode 100644
index 0000000..766d109
@@ -0,0 +1,6 @@
+config BR2_PACKAGE_PERL_MOJOLICIOUS
+	bool "perl-mojolicious"
+	help
+	  Real-time web framework
+
+	  http://mojolicio.us
package/perl-mojolicious/perl-mojolicious.mk new file +13 -0
new file mode 100644
index 0000000..e4ced7e
@@ -0,0 +1,13 @@
+################################################################################
+#
+# perl-mojolicious
+#
+################################################################################
+
+PERL_MOJOLICIOUS_VERSION = 5.07
+PERL_MOJOLICIOUS_SOURCE = Mojolicious-$(PERL_MOJOLICIOUS_VERSION).tar.gz
+PERL_MOJOLICIOUS_SITE = $(BR2_CPAN_MIRROR)/authors/id/S/SR/SRI/
+PERL_MOJOLICIOUS_DEPENDENCIES = perl 
+PERL_MOJOLICIOUS_LICENSE = artistic_2
+
+$(eval $(perl-package))
Signature · 1 line
1.9.1
#4 lore raw

PATCH v2 2/2 perl-mojolicious: new package

Quoted 39 lines · Francois Perrad
---
 package/Config.in                            |  1 +
 package/perl-mojolicious/Config.in           |  6 ++++++
 package/perl-mojolicious/perl-mojolicious.mk | 13 +++++++++++++
 3 files changed, 20 insertions(+)
 create mode 100644 package/perl-mojolicious/Config.in
 create mode 100644 package/perl-mojolicious/perl-mojolicious.mk
package/Config.in +1 -0
index f43e985..5e16ffa 100644
@@ -423,6 +423,7 @@ endif
 	source "package/perl/Config.in"
 if BR2_PACKAGE_PERL
 menu "Perl libraries/modules"
+source "package/perl-mojolicious/Config.in"
 endmenu
 endif
 	source "package/php/Config.in"
package/perl-mojolicious/Config.in new file +6 -0
new file mode 100644
index 0000000..766d109
@@ -0,0 +1,6 @@
+config BR2_PACKAGE_PERL_MOJOLICIOUS
+	bool "perl-mojolicious"
+	help
+	  Real-time web framework
+
+	  http://mojolicio.us
package/perl-mojolicious/perl-mojolicious.mk new file +0 -0
new file mode 100644
index 0000000..e4ced7e

package/perl-mojolicious/perl-mojolicious.mk line 10

Quoted 10 lines
package/perl-mojolicious/perl-mojolicious.mk new file +10 -0
@@ -0,0 +1,13 @@
+################################################################################
+#
+# perl-mojolicious
+#
+################################################################################
+
+PERL_MOJOLICIOUS_VERSION = 5.07
+PERL_MOJOLICIOUS_SOURCE = Mojolicious-$(PERL_MOJOLICIOUS_VERSION).tar.gz
+PERL_MOJOLICIOUS_SITE = $(BR2_CPAN_MIRROR)/authors/id/S/SR/SRI/
+PERL_MOJOLICIOUS_DEPENDENCIES = perl 

There's still trailing whitespace here.

package/perl-mojolicious/perl-mojolicious.mk line 11

Quoted 1 line
package/perl-mojolicious/perl-mojolicious.mk new file +1 -0
+PERL_MOJOLICIOUS_LICENSE = artistic_2

artistic_2 is not in our list of licenses, and is also not a format that we
would typically use. We already have pv with Artistic-2.0, which is also what is used by spdx.

Regards,
Arnout

Quoted 3 lines
package/perl-mojolicious/perl-mojolicious.mk new file +2 -0
+
+$(eval $(perl-package))
Signature · 6 lines
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F
#5 lore raw

PATCH v2 2/2 perl-mojolicious: new package

In reply to Francois Perrad

Dear Francois Perrad,

Quoted 8 lines · Francois Perrad
---
 package/Config.in                            |  1 +
 package/perl-mojolicious/Config.in           |  6 ++++++
 package/perl-mojolicious/perl-mojolicious.mk | 13 +++++++++++++
 3 files changed, 20 insertions(+)
 create mode 100644 package/perl-mojolicious/Config.in
 create mode 100644 package/perl-mojolicious/perl-mojolicious.mk

Patch applied, with a few changes, see below.

package/Config.in endif · line 426

Quoted 10 lines
package/Config.in +1 -0
index f43e985..5e16ffa 100644
@@ -423,6 +423,7 @@ endif
 	source "package/perl/Config.in"
 if BR2_PACKAGE_PERL
 menu "Perl libraries/modules"
+source "package/perl-mojolicious/Config.in"

We now indent by one tab all "source" invocations in package/Config.in.

package/Config.in endif

Quoted 5 lines
package/Config.in +5 -0
+PERL_MOJOLICIOUS_VERSION = 5.07
+PERL_MOJOLICIOUS_SOURCE = Mojolicious-$(PERL_MOJOLICIOUS_VERSION).tar.gz
+PERL_MOJOLICIOUS_SITE = $(BR2_CPAN_MIRROR)/authors/id/S/SR/SRI/
+PERL_MOJOLICIOUS_DEPENDENCIES = perl 
+PERL_MOJOLICIOUS_LICENSE = artistic_2

As noted by Arnout, I removed the trailing whitespace after "perl", and I changed the license name to Artistic-2.0. If the license name "artistic_2" was automatically generated by the scancpan script, you might want to tune it to automatically change it to Artistic-2.0 in this case.

Thanks,

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
#6 lore raw

PATCH v2 2/2 perl-mojolicious: new package

In reply to Francois Perrad

Francois, All,

On 2014-06-16 21:35 +0200, Francois Perrad spake thusly:

Quoted 1 line

[--SNIP--]

package/perl-mojolicious/perl-mojolicious.mk line 7

Quoted 13 lines
package/perl-mojolicious/perl-mojolicious.mk new file +7 -0
new file mode 100644
index 0000000..e4ced7e
@@ -0,0 +1,13 @@
+################################################################################
+#
+# perl-mojolicious
+#
+################################################################################
+
+PERL_MOJOLICIOUS_VERSION = 5.07

5.07 is no longer available. There's now 5.08, and it seems only the latest version is ever available on CPAN. :-(

This is causing autobuild failures:

    http://autobuild.buildroot.net/results/358/358f531f2db90b9bc3b1e4e2158c68d2bf6587fc/

I'll send a patch bumping to 5.08 in a moment...

Regards,
Yann E. MORIN.

Quoted 13 lines
package/perl-mojolicious/perl-mojolicious.mk new file +6 -0
+PERL_MOJOLICIOUS_SOURCE = Mojolicious-$(PERL_MOJOLICIOUS_VERSION).tar.gz
+PERL_MOJOLICIOUS_SITE = $(BR2_CPAN_MIRROR)/authors/id/S/SR/SRI/
+PERL_MOJOLICIOUS_DEPENDENCIES = perl 
+PERL_MOJOLICIOUS_LICENSE = artistic_2
+
+$(eval $(perl-package))
Signature · 6 lines
1.9.1

_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
Signature · 6 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'