Skip to content

Commit

Permalink
Perl fix 13 (#10265)
Browse files Browse the repository at this point in the history
* Bump perl-file-fetch

* Bump perl-file-sharedir-install

* Bump perl-file-sharedir

* Bump perl-html-tree

* Unblacklist

* Build perl-file-sharedir later
  • Loading branch information
druvus authored Aug 5, 2018
1 parent da79929 commit 4197f60
Show file tree
Hide file tree
Showing 9 changed files with 141 additions and 64 deletions.
3 changes: 0 additions & 3 deletions build-fail-blacklist
Original file line number Diff line number Diff line change
Expand Up @@ -2050,7 +2050,6 @@ recipes/perl-estscan2/2.1
# /opt/conda/conda-bld/perl-error_1530981443167/work/conda_build.sh: ./Build: /opt/conda/conda-bld/perl-error_1530981443167/_h_env_placehold_placehold_plac: bad interpreter: No such file or directory
recipes/perl-io-socket-inet6
#recipes/perl-path-class
recipes/perl-html-tree
recipes/perl-html-formatter
recipes/perl-graphviz
recipes/perl-test-xml
Expand Down Expand Up @@ -2198,9 +2197,7 @@ recipes/perl-data-uuid
recipes/perl-encode-locale
#recipes/perl-eval-closure/0.14
recipes/perl-file-copy-recursive
recipes/perl-file-fetch
recipes/perl-file-sharedir
recipes/perl-file-sharedir-install
recipes/perl-file-util
recipes/perl-ipc-system-simple
recipes/perl-json-maybexs
Expand Down
19 changes: 18 additions & 1 deletion recipes/perl-file-fetch/build.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,19 @@
#!/bin/bash
cpanm -i .

# 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
36 changes: 24 additions & 12 deletions recipes/perl-file-fetch/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,29 +1,41 @@
{% set name = "perl-file-fetch" %}
{% set version = "0.56" %}
{% set sha256 = "b08575705916bbc7ae79c4966709549575a7a2be98e7bb6a1d85e67d5226dea1" %}

package:
name: perl-file-fetch
version: '0.48'
name: {{ name }}
version: {{ version }}

source:
url: https://cpan.metacpan.org/authors/id/B/BI/BINGOS/File-Fetch-0.48.tar.gz
sha256: 9996f7988144d7d661e6e668237f7ca6dd3e0d121e4f01a9f773fab7847e863c
url: https://cpan.metacpan.org/authors/id/B/BI/BINGOS/File-Fetch-0.56.tar.gz
sha256: {{ sha256 }}

build:
number: 4
number: 0

requirements:
build:
- {{ compiler('c') }}
host:
- perl
- perl-app-cpanminus
- perl-module-build
- perl-file-path
- perl-ipc-cmd
- perl-extutils-makemaker
- perl-locale-maketext-simple
- perl-module-load-conditional
- perl-params-check

run:
- perl
- perl-params-check
- perl-file-path
- perl-module-load-conditional
- perl-locale-maketext-simple
- perl-ipc-cmd

test:
imports:
- File::Fetch

about:
home: https://metacpan.org/pod/File::Fetch
license: Perl
summary: A generic file fetching mechanism
home: http://metacpan.org/pod/File::Fetch
license: perl_5
summary: 'Generic file fetching code'
19 changes: 18 additions & 1 deletion recipes/perl-file-sharedir-install/build.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,19 @@
#!/bin/bash
cpanm -i .

# 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
31 changes: 19 additions & 12 deletions recipes/perl-file-sharedir-install/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,29 +1,36 @@
{% set name = "perl-file-sharedir-install" %}
{% set version = "0.13" %}
{% set sha256 = "45befdf0d95cbefe7c25a1daf293d85f780d6d2576146546e6828aad26e580f9" %}

package:
name: perl-file-sharedir-install
version: '0.10'
name: {{ name }}
version: {{ version }}

source:
url: https://cpan.metacpan.org/authors/id/G/GW/GWYN/File-ShareDir-Install-0.10.tar.gz
sha256: 708af71dec4dfb5a8cf9a5e863b566714c3f65f0a76722302de5a07ee202e6f7
url: https://cpan.metacpan.org/authors/id/E/ET/ETHER/File-ShareDir-Install-0.13.tar.gz
sha256: {{ sha256 }}

build:
number: 4
number: 0

requirements:
build:
- {{ compiler('c') }}
host:
- perl
- perl-app-cpanminus
- perl-module-build
- perl-exporter
- perl-extutils-makemaker
- perl-carp
- perl-file-path

run:
- perl
- perl-exporter
- perl-carp

test:
imports:
- File::ShareDir::Install

about:
home: https://metacpan.org/pod/File::ShareDir::Install
license: Perl
summary: Install shared files
home: https://github.com/Perl-Toolchain-Gang/File-ShareDir-Install
license: perl_5
summary: 'Install shared files'
19 changes: 18 additions & 1 deletion recipes/perl-file-sharedir/build.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,19 @@
#!/bin/bash
cpanm -i .

# 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
32 changes: 20 additions & 12 deletions recipes/perl-file-sharedir/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,29 +1,37 @@
{% set name = "perl-file-sharedir" %}
{% set version = "1.116" %}
{% set sha256 = "59d90bfdf98c4656ff4173e62954ea8cf0de66565e35d108ecd7050596cb8328" %}

package:
name: perl-file-sharedir
version: '1.102'
name: {{ name }}
version: {{ version }}

source:
url: https://cpan.metacpan.org/authors/id/R/RE/REHSACK/File-ShareDir-1.102.tar.gz
sha256: 7c7334b974882587fbd9bc135f6bc04ad197abe99e6f4761953fe9ca88c57411
url: https://cpan.metacpan.org/authors/id/R/RE/REHSACK/File-ShareDir-1.116.tar.gz
sha256: {{ sha256 }}

build:
number: 4
number: 0

requirements:
build:
- {{ compiler('c') }}
host:
- perl
- perl-app-cpanminus
- perl-module-build
- perl-file-path
- perl-file-sharedir-install
- perl-class-inspector
- perl-extutils-makemaker
- perl-carp

run:
- perl
- perl-class-inspector
- perl-carp

test:
imports:
- File::ShareDir

about:
home: https://metacpan.org/pod/File::ShareDir
license: Perl
summary: Locate per-dist and per-module shared files
home: https://metacpan.org/release/File-ShareDir
license: perl_5
summary: 'Locate per-dist and per-module shared files'
8 changes: 5 additions & 3 deletions recipes/perl-html-tree/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
# If it has Build.PL use that, otherwise use Makefile.PL
if [ -f Build.PL ]; then
perl Build.PL
./Build
./Build test
perl ./Build
perl ./Build test
# Make sure this goes in site
./Build install --installdirs site
perl ./Build install --installdirs site
elif [ -f Makefile.PL ]; then
# Make sure this goes in site
perl Makefile.PL INSTALLDIRS=site
Expand All @@ -17,3 +17,5 @@ else
echo 'Unable to find Build.PL or Makefile.PL. You need to modify build.sh.'
exit 1
fi

chmod 755 ${PREFIX}/bin/htmltree
38 changes: 19 additions & 19 deletions recipes/perl-html-tree/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,39 +1,38 @@
{% set name = "perl-html-tree" %}
{% set version = "5.07" %}
{% set sha256 = "f0374db84731c204b86c1d5b90975fef0d30a86bd9def919343e554e31a9dbbf" %}

package:
name: perl-html-tree
version: "5.03"
name: {{ name }}
version: {{ version }}

source:
url: http://cpan.metacpan.org/authors/id/C/CJ/CJM/HTML-Tree-5.03.tar.gz
md5: d9271d60b872ed6fbe68b2d0fe8c450e
url: https://cpan.metacpan.org/authors/id/K/KE/KENTNL/HTML-Tree-5.07.tar.gz
sha256: {{ sha256 }}

build:
number: 1
number: 0

requirements:
host:
- perl
- perl-carp
- perl-html-parser
- perl-module-build
- perl-exporter
- perl-base
- perl-html-tagset
- perl-module-build
- perl-test-fatal
# optional features; "perl-html-formatter" is commented out to avoid
# circular dependency issues, but users should install this package to get
# access to the HTML::Element "format" method.
#- perl-html-formatter # HTML::FormatText package
- perl-libwww-perl # LWP::UserAgent package
- perl-encode

run:
- perl
- perl-html-parser
- perl-carp
- perl-html-tagset
# optional features; "perl-html-formatter" is commented out to avoid
# circular dependency issues, but users should install this package to get
# access to the HTML::Element "format" method.
#- perl-html-formatter # HTML::FormatText package
- perl-libwww-perl # LWP::UserAgent package
- perl-html-parser
- perl-exporter

test:
# Perl 'use' tests
imports:
- HTML::AsSubs
- HTML::Element
Expand All @@ -42,6 +41,7 @@ test:
- HTML::TreeBuilder

about:
home: http://metacpan.org/pod/HTML-Tree
home: http://metacpan.org/pod/HTML::Tree
license: perl_5
summary: 'Work with HTML in a DOM-like tree structure'

0 comments on commit 4197f60

Please sign in to comment.