Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Perl www mechanize and dependancies #13218

Merged
merged 9 commits into from
Jan 31, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions recipes/perl-html-form/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/bash

# 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/*
63 changes: 63 additions & 0 deletions recipes/perl-html-form/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
{% set name = "perl-html-form" %}
{% set version = "6.03" %}
{% set sha256 = "68c01d94f005d5ca9c4d55ad2a1bf3a8d034a5fc6db187d91a4c42f3fdc9fc36" %}

package:
name: {{ name }}
version: {{ version }}

source:
url: https://cpan.metacpan.org/authors/id/G/GA/GAAS/HTML-Form-6.03.tar.gz
sha256: {{ sha256 }}

build:
number: 0

requirements:
host:
- 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-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

test:
# Perl 'use' tests
imports:
- HTML::Form

about:
home: https://metacpan.org/pod/HTML::Form
license: perl_5
summary: Class that represents an HTML form element
23 changes: 23 additions & 0 deletions recipes/perl-www-mechanize/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/bin/bash

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/*
51 changes: 51 additions & 0 deletions recipes/perl-www-mechanize/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{% set name = "perl-www-mechanize" %}
{% set version = "1.91" %}
{% set sha256 = "eb887afa401cf8c7f5294fe00bcf890e76712a2c916327ecabc029b843256131" %}

package:
name: {{ name }}
version: {{ version }}

source:
url: https://cpan.metacpan.org/authors/id/O/OA/OALDERS/WWW-Mechanize-1.91.tar.gz
sha256: {{ sha256 }}

build:
number: 0

requirements:
host:
- perl
- perl-http-server-simple
- perl-module-build
- perl-html-form
- perl-cgi
- perl-extutils-makemaker
- perl-test-deep
- perl-test-fatal
- perl-test-output
- perl-test-warnings
- perl-test-memory-cycle
- perl-encode-locale
- perl-html-tree
- perl-libwww-perl

run:
- perl
- perl-http-server-simple
- perl-html-form
- perl-cgi
- perl-encode-locale
- perl-module-build
- perl-html-tree
- perl-libwww-perl

test:
# Perl 'use' tests
imports:
- WWW::Mechanize

about:
home: https://metacpan.org/pod/WWW::Mechanize
license: perl_5
summary: Handy web browsing in a Perl object