From c52dc680effb37f5aa4a1befdb175062fb44c51d Mon Sep 17 00:00:00 2001 From: fgiacomoni Date: Fri, 25 Jan 2019 10:00:31 +0100 Subject: [PATCH 1/8] Add new test and dependancies --- recipes/perl-http-server-simple/build.sh | 2 ++ recipes/perl-http-server-simple/meta.yaml | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/recipes/perl-http-server-simple/build.sh b/recipes/perl-http-server-simple/build.sh index 3408db5490b6a..a7dc94fb63779 100644 --- a/recipes/perl-http-server-simple/build.sh +++ b/recipes/perl-http-server-simple/build.sh @@ -19,3 +19,5 @@ else echo 'Unable to find Build.PL or Makefile.PL. You need to modify build.sh.' exit 1 fi + +chmod -R u+w $PREFIX/* \ No newline at end of file diff --git a/recipes/perl-http-server-simple/meta.yaml b/recipes/perl-http-server-simple/meta.yaml index f72ac6dc62597..88db11b51d701 100644 --- a/recipes/perl-http-server-simple/meta.yaml +++ b/recipes/perl-http-server-simple/meta.yaml @@ -8,20 +8,23 @@ source: build: - number: 1 + number: 2 requirements: host: - perl - perl-cgi + - perl-socket run: - perl - perl-cgi + - perl-socket test: imports: - HTTP::Server::Simple + - HTTP::Server::Simple::CGI about: home: https://metacpan.org/pod/HTTP::Server::Simple From 5b1e5dd629ba75ccfa3391c49c9853ab2764d00d Mon Sep 17 00:00:00 2001 From: fgiacomoni Date: Thu, 24 Jan 2019 10:53:35 +0100 Subject: [PATCH 2/8] init www-mechanize recipe --- recipes/perl-www-mechanize/build.sh | 7 ++++++ recipes/perl-www-mechanize/meta.yaml | 33 ++++++++++++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 recipes/perl-www-mechanize/build.sh create mode 100644 recipes/perl-www-mechanize/meta.yaml diff --git a/recipes/perl-www-mechanize/build.sh b/recipes/perl-www-mechanize/build.sh new file mode 100644 index 0000000000000..1e3ab849a5bde --- /dev/null +++ b/recipes/perl-www-mechanize/build.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +perl Makefile.PL INSTALLDIRS=site +make +make test +make install +chmod u+rw ${PREFIX}/bin/WWW-* diff --git a/recipes/perl-www-mechanize/meta.yaml b/recipes/perl-www-mechanize/meta.yaml new file mode 100644 index 0000000000000..c4213287c73e6 --- /dev/null +++ b/recipes/perl-www-mechanize/meta.yaml @@ -0,0 +1,33 @@ +package: + name: perl-www-mechanize + version: '1.91' + +source: + url: https://cpan.metacpan.org/authors/id/O/OA/OALDERS/WWW-Mechanize-1.91.tar.gz + sha256: eb887afa401cf8c7f5294fe00bcf890e76712a2c916327ecabc029b843256131 + +build: + number: 1 + +requirements: + build: + - {{ compiler('c') }} + host: + - perl + - perl-encode-locale + - perl-module-build + - perl-libwww-perl + + run: + - perl + - perl-encode-locale + - perl-libwww-perl + +test: + imports: + - WWW::Mechanize + +about: + home: https://metacpan.org/pod/WWW::Mechanize + license: Perl + summary: Handy web browsing in a Perl object From e14fd26bfbae2f08511fa3675a1af0defddbbc6c Mon Sep 17 00:00:00 2001 From: fgiacomoni Date: Thu, 24 Jan 2019 12:43:49 +0100 Subject: [PATCH 3/8] init html-form recipe dependancy --- recipes/perl-html-form/build.sh | 7 +++++++ recipes/perl-html-form/meta.yaml | 33 ++++++++++++++++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 recipes/perl-html-form/build.sh create mode 100644 recipes/perl-html-form/meta.yaml diff --git a/recipes/perl-html-form/build.sh b/recipes/perl-html-form/build.sh new file mode 100644 index 0000000000000..065eee7df790d --- /dev/null +++ b/recipes/perl-html-form/build.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +perl Makefile.PL INSTALLDIRS=site +make +make test +make install +chmod u+rw ${PREFIX}/bin/HTML-F* diff --git a/recipes/perl-html-form/meta.yaml b/recipes/perl-html-form/meta.yaml new file mode 100644 index 0000000000000..c54209cd6494e --- /dev/null +++ b/recipes/perl-html-form/meta.yaml @@ -0,0 +1,33 @@ +package: + name: perl-html-form + version: '6.03' + +source: + url: https://cpan.metacpan.org/authors/id/G/GA/GAAS/HTML-Form-6.03.tar.gz + sha256: 68c01d94f005d5ca9c4d55ad2a1bf3a8d034a5fc6db187d91a4c42f3fdc9fc36 + +build: + number: 1 + +requirements: + build: + - {{ compiler('c') }} + host: + - perl + - perl-encode-locale + - perl-module-build + - perl-libwww-perl + + run: + - perl + - perl-encode-locale + - perl-libwww-perl + +test: + imports: + - HTML::Form + +about: + home: https://metacpan.org/pod/HTML::Form + license: Perl + summary: Class that represents an HTML form element From 023ddc4acc158d63273d831ec97c7480f230f114 Mon Sep 17 00:00:00 2001 From: fgiacomoni Date: Fri, 25 Jan 2019 09:45:14 +0100 Subject: [PATCH 4/8] complete perl dependancies & fix sh --- recipes/perl-html-form/build.sh | 24 +++++++++++--- recipes/perl-html-form/meta.yaml | 57 +++++++++++++++++++++++--------- 2 files changed, 60 insertions(+), 21 deletions(-) diff --git a/recipes/perl-html-form/build.sh b/recipes/perl-html-form/build.sh index 065eee7df790d..5c5f8af4c7fb7 100644 --- a/recipes/perl-html-form/build.sh +++ b/recipes/perl-html-form/build.sh @@ -1,7 +1,21 @@ #!/bin/bash -perl Makefile.PL INSTALLDIRS=site -make -make test -make install -chmod u+rw ${PREFIX}/bin/HTML-F* +# If it has Build.PL use that, otherwise use Makefile.PL +if [ -f Build.PL ]; then + perl Build.PL + perl ./Build + perl ./Build test + # Make sure this goes in site + perl ./Build install --installdirs site +elif [ -f Makefile.PL ]; then + # Make sure this goes in site + perl Makefile.PL INSTALLDIRS=site + make + make test + make install +else + echo 'Unable to find Build.PL or Makefile.PL. You need to modify build.sh.' + exit 1 +fi + +chmod -R u+w $PREFIX/* diff --git a/recipes/perl-html-form/meta.yaml b/recipes/perl-html-form/meta.yaml index c54209cd6494e..dcf782f3c6371 100644 --- a/recipes/perl-html-form/meta.yaml +++ b/recipes/perl-html-form/meta.yaml @@ -1,33 +1,58 @@ +{% set name = "perl-html-form" %} +{% set version = "6.03" %} +{% set sha256 = "68c01d94f005d5ca9c4d55ad2a1bf3a8d034a5fc6db187d91a4c42f3fdc9fc36" %} + package: - name: perl-html-form - version: '6.03' + name: {{ name }} + version: {{ version }} source: url: https://cpan.metacpan.org/authors/id/G/GA/GAAS/HTML-Form-6.03.tar.gz - sha256: 68c01d94f005d5ca9c4d55ad2a1bf3a8d034a5fc6db187d91a4c42f3fdc9fc36 + sha256: {{ sha256 }} build: - number: 1 + number: 0 requirements: - build: - - {{ compiler('c') }} host: - perl - - perl-encode-locale - - perl-module-build - - perl-libwww-perl + - perl-cpan-meta-yaml + - perl-extutils-parsexs + - perl-data-dumper + - perl-extutils-cbuilder + - perl-file-temp + - perl-text-abbrev + - perl-text-parsewords + - perl-cpan-meta + - perl-version + - perl-module-metadata + - perl-extutils-manifest + - perl-file-path + - perl-perl-ostype + - perl-getopt-long + - perl-html-parser + - perl-http-message + - perl-uri run: - perl - - perl-encode-locale - - perl-libwww-perl - -test: - imports: - - HTML::Form + - perl-text-parsewords + - perl-cpan-meta + - perl-version + - perl-extutils-parsexs + - perl-data-dumper + - perl-module-metadata + - perl-extutils-cbuilder + - perl-extutils-manifest + - perl-file-path + - perl-perl-ostype + - perl-text-abbrev + - perl-getopt-long + - perl-html-parser + - perl-http-message + - perl-uri about: home: https://metacpan.org/pod/HTML::Form - license: Perl + license: perl_5 summary: Class that represents an HTML form element From 9ec3d1930b90cee3af94426b15bd89ac9deaf890 Mon Sep 17 00:00:00 2001 From: fgiacomoni Date: Fri, 25 Jan 2019 09:46:34 +0100 Subject: [PATCH 5/8] fix perl dependancies and sh --- recipes/perl-www-mechanize/build.sh | 26 +++++++++++++++++---- recipes/perl-www-mechanize/meta.yaml | 35 +++++++++++++++++++--------- 2 files changed, 45 insertions(+), 16 deletions(-) diff --git a/recipes/perl-www-mechanize/build.sh b/recipes/perl-www-mechanize/build.sh index 1e3ab849a5bde..20bd829d2d174 100644 --- a/recipes/perl-www-mechanize/build.sh +++ b/recipes/perl-www-mechanize/build.sh @@ -1,7 +1,23 @@ #!/bin/bash -perl Makefile.PL INSTALLDIRS=site -make -make test -make install -chmod u+rw ${PREFIX}/bin/WWW-* +export OPENSSL_PREFIX=$PREFIX + +# If it has Build.PL use that, otherwise use Makefile.PL +if [ -f Build.PL ]; then + perl Build.PL + perl ./Build + perl ./Build test + # Make sure this goes in site + perl ./Build install --installdirs site +elif [ -f Makefile.PL ]; then + # Make sure this goes in site + perl Makefile.PL INSTALLDIRS=site + make + make test + make install +else + echo 'Unable to find Build.PL or Makefile.PL. You need to modify build.sh.' + exit 1 +fi + +chmod -R u+w $PREFIX/* diff --git a/recipes/perl-www-mechanize/meta.yaml b/recipes/perl-www-mechanize/meta.yaml index c4213287c73e6..eb26f7673a945 100644 --- a/recipes/perl-www-mechanize/meta.yaml +++ b/recipes/perl-www-mechanize/meta.yaml @@ -1,33 +1,46 @@ +{% set name = "perl-www-mechanize" %} +{% set version = "1.91" %} +{% set sha256 = "eb887afa401cf8c7f5294fe00bcf890e76712a2c916327ecabc029b843256131" %} + package: - name: perl-www-mechanize - version: '1.91' + name: {{ name }} + version: {{ version }} source: url: https://cpan.metacpan.org/authors/id/O/OA/OALDERS/WWW-Mechanize-1.91.tar.gz - sha256: eb887afa401cf8c7f5294fe00bcf890e76712a2c916327ecabc029b843256131 + sha256: {{ sha256 }} build: - number: 1 + number: 0 requirements: - build: - - {{ compiler('c') }} host: - perl + - perl-cgi + - perl-extutils-makemaker + - perl-test-deep + - perl-test-fatal + - perl-test-output + - perl-test-warnings + - perl-test-memory-cycle + - perl-http-server-simple - perl-encode-locale - perl-module-build + - perl-html-form + - perl-html-tree - perl-libwww-perl run: - perl + - perl-cgi + - perl-http-server-simple - perl-encode-locale + - perl-module-build + - perl-html-form + - perl-html-tree - perl-libwww-perl -test: - imports: - - WWW::Mechanize - about: home: https://metacpan.org/pod/WWW::Mechanize - license: Perl + license: perl_5 summary: Handy web browsing in a Perl object From ae0462fae1a85570ae8e91c28803abd0581cd329 Mon Sep 17 00:00:00 2001 From: fgiacomoni Date: Fri, 25 Jan 2019 11:29:58 +0100 Subject: [PATCH 6/8] Add basic tests --- recipes/perl-html-form/meta.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/recipes/perl-html-form/meta.yaml b/recipes/perl-html-form/meta.yaml index dcf782f3c6371..7f4bf7a2bccfe 100644 --- a/recipes/perl-html-form/meta.yaml +++ b/recipes/perl-html-form/meta.yaml @@ -51,6 +51,11 @@ requirements: - perl-html-parser - perl-http-message - perl-uri + +test: + # Perl 'use' tests + imports: + - HTML::Form about: home: https://metacpan.org/pod/HTML::Form From 0ed961557e28960f8f5fc0d1b9c661dd415ba6cb Mon Sep 17 00:00:00 2001 From: fgiacomoni Date: Fri, 25 Jan 2019 11:50:46 +0100 Subject: [PATCH 7/8] add more basic test --- recipes/perl-www-mechanize/meta.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/recipes/perl-www-mechanize/meta.yaml b/recipes/perl-www-mechanize/meta.yaml index eb26f7673a945..426744a642c0c 100644 --- a/recipes/perl-www-mechanize/meta.yaml +++ b/recipes/perl-www-mechanize/meta.yaml @@ -40,6 +40,11 @@ requirements: - perl-html-tree - perl-libwww-perl +test: + # Perl 'use' tests + imports: + - WWW::Mechanize + about: home: https://metacpan.org/pod/WWW::Mechanize license: perl_5 From 8696a7ce56b7dcb629b17717ce9042277782ed2c Mon Sep 17 00:00:00 2001 From: fgiacomoni Date: Wed, 30 Jan 2019 10:34:39 +0100 Subject: [PATCH 8/8] Changing modules position... --- recipes/perl-www-mechanize/meta.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/recipes/perl-www-mechanize/meta.yaml b/recipes/perl-www-mechanize/meta.yaml index 426744a642c0c..0d6741418da2b 100644 --- a/recipes/perl-www-mechanize/meta.yaml +++ b/recipes/perl-www-mechanize/meta.yaml @@ -16,6 +16,9 @@ build: requirements: host: - perl + - perl-http-server-simple + - perl-module-build + - perl-html-form - perl-cgi - perl-extutils-makemaker - perl-test-deep @@ -23,20 +26,17 @@ requirements: - perl-test-output - perl-test-warnings - perl-test-memory-cycle - - perl-http-server-simple - perl-encode-locale - - perl-module-build - - perl-html-form - perl-html-tree - perl-libwww-perl run: - perl - - perl-cgi - perl-http-server-simple + - perl-html-form + - perl-cgi - perl-encode-locale - perl-module-build - - perl-html-form - perl-html-tree - perl-libwww-perl