Skip to content

Commit

Permalink
Fix two more perl (#10135)
Browse files Browse the repository at this point in the history
* Fix perl-image-size

* Fix perl-aceperl

* Add perl-cache-cache

* Add perl-ipc-sharelite

* Add perl-digest-sha1
  • Loading branch information
druvus authored Jul 29, 2018
1 parent 9896271 commit 394faa5
Show file tree
Hide file tree
Showing 11 changed files with 210 additions and 17 deletions.
2 changes: 0 additions & 2 deletions build-fail-blacklist
Original file line number Diff line number Diff line change
Expand Up @@ -2233,7 +2233,6 @@ recipes/cap-mirseq
recipes/snap
recipes/perl-vcftools-vcf
recipes/perl-module-scandeps/1.23
recipes/perl-image-size
recipes/perl-gdtextutil
recipes/perl-dbi
recipes/perl-hash-util-fieldhash-compat/0.11
Expand Down Expand Up @@ -2313,7 +2312,6 @@ recipes/nlstradamus
recipes/ntcard
recipes/ocrad/0.21
recipes/panoct
recipes/perl-aceperl
recipes/perl-mailtools
recipes/perl-env-path
recipes/perl-estscan1/1.3
Expand Down
2 changes: 2 additions & 0 deletions recipes/perl-aceperl/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,5 @@ else
echo 'Unable to find Build.PL or Makefile.PL. You need to modify build.sh.'
exit 1
fi

chmod 755 ${PREFIX}/bin/ace.pl
19 changes: 12 additions & 7 deletions recipes/perl-aceperl/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,27 +1,32 @@
{% set name = "perl-aceperl" %}
{% set version = "1.92" %}
{% set sha256 = "2c97ca2be3b859e4a3bc35d706da9829a30aead0206e43f00d0136d995ae783c" %}

package:
name: perl-aceperl
version: "1.92"
name: {{ name }}
version: {{ version }}

source:
url: https://cpan.metacpan.org/authors/id/L/LD/LDS/AcePerl-1.92.tar.gz
md5: 485e54655a15d8dc5c471fed07092414
sha256: {{ sha256 }}
patches:
- makefile-options.patch

build:
number: 1
number: 2

requirements:
host:
- perl
# - perl-cache-cache
- perl-digest-md5
- perl-cache-cache

run:
- perl
# - perl-cache-cache
- perl-digest-md5
- perl-cache-cache

test:
# Perl 'use' tests
imports:
- Ace

Expand Down
19 changes: 19 additions & 0 deletions recipes/perl-cache-cache/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/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
58 changes: 58 additions & 0 deletions recipes/perl-cache-cache/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
{% set name = "perl-cache-cache" %}
{% set version = "1.08" %}
{% set sha256 = "d2c7fd5dba5dd010b7d8923516890bb6ccf6b5f188ccb69f35cb0fd6c031d1e8" %}

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

source:
url: https://cpan.metacpan.org/authors/id/R/RJ/RJBS/Cache-Cache-1.08.tar.gz
sha256: {{ sha256 }}

build:
number: 0

requirements:
host:
- perl
- perl-digest-sha1
- perl-extutils-makemaker
- perl-error
- perl-storable
- perl-ipc-sharelite

run:
- perl
- perl-storable
- perl-digest-sha1
- perl-error
- perl-ipc-sharelite

test:
imports:
- Cache::BaseCache
- Cache::BaseCacheTester
- Cache::Cache
- Cache::CacheMetaData
- Cache::CacheSizer
- Cache::CacheTester
- Cache::CacheUtils
- Cache::FileBackend
- Cache::FileCache
- Cache::MemoryBackend
- Cache::MemoryCache
- Cache::NullCache
- Cache::Object
- Cache::SharedMemoryBackend
- Cache::SharedMemoryCache
- Cache::SizeAwareCache
- Cache::SizeAwareCacheTester
- Cache::SizeAwareFileCache
- Cache::SizeAwareMemoryCache
- Cache::SizeAwareSharedMemoryCache

about:
home: http://metacpan.org/pod/Cache::Cache
license: unknown
summary: 'extends Cache::SizeAwareMemoryCache'
19 changes: 19 additions & 0 deletions recipes/perl-digest-sha1/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/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
34 changes: 34 additions & 0 deletions recipes/perl-digest-sha1/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{% set name = "perl-digest-sha1" %}
{% set version = "2.13" %}
{% set sha256 = "68c1dac2187421f0eb7abf71452a06f190181b8fc4b28ededf5b90296fb943cc" %}

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

source:
url: https://cpan.metacpan.org/authors/id/G/GA/GAAS/Digest-SHA1-2.13.tar.gz
sha256: {{ sha256 }}

build:
number: 0

requirements:
build:
- {{ compiler('cxx') }}

host:
- perl
- perl-extutils-makemaker

run:
- perl

test:
imports:
- Digest::SHA1

about:
home: http://metacpan.org/pod/Digest::SHA1
license: perl_5
summary: 'Perl interface to the SHA-1 algorithm'
8 changes: 5 additions & 3 deletions recipes/perl-image-size/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/imgsize
13 changes: 8 additions & 5 deletions recipes/perl-image-size/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
{% set name = "perl-image-size" %}
{% set version = "3.300" %}
{% set sha256 = "53c9b1f86531cde060ee63709d1fda73cabc0cf2d581d29b22b014781b9f026b" %}

package:
name: perl-image-size
version: "3.300"
name: {{ name }}
version: {{ version }}

source:
url: https://cpan.metacpan.org/authors/id/R/RJ/RJRAY/Image-Size-3.300.tar.gz
md5: c8f7f5097cadb984e57e9c0cad1f16b3
sha256: {{ sha256 }}

build:
number: 1
number: 2

requirements:
host:
Expand All @@ -18,7 +22,6 @@ requirements:
- perl

test:
# Perl 'use' tests
imports:
- Image::Size

Expand Down
19 changes: 19 additions & 0 deletions recipes/perl-ipc-sharelite/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/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
34 changes: 34 additions & 0 deletions recipes/perl-ipc-sharelite/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{% set name = "perl-ipc-sharelite" %}
{% set version = "0.17" %}
{% set sha256 = "14d406b91da96d6521d0d1a82d22a306274765226b86b0a56e7ffddcf96ae7bf" %}

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

source:
url: https://cpan.metacpan.org/authors/id/A/AN/ANDYA/IPC-ShareLite-0.17.tar.gz
sha256: {{ sha256 }}

build:
number: 0

requirements:
build:
- {{ compiler('cxx') }}

host:
- perl
- perl-extutils-makemaker

run:
- perl

test:
imports:
- IPC::ShareLite

about:
home: http://metacpan.org/pod/IPC::ShareLite
license: perl_5
summary: 'Lightweight interface to shared memory'

0 comments on commit 394faa5

Please sign in to comment.