Skip to content

Commit

Permalink
Add recipe for perl-number-range (#11621)
Browse files Browse the repository at this point in the history
  • Loading branch information
npavlovikj authored and karel-brinda committed Oct 31, 2018
1 parent 4dc1121 commit b819f12
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 0 deletions.
19 changes: 19 additions & 0 deletions recipes/perl-number-range/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
31 changes: 31 additions & 0 deletions recipes/perl-number-range/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{% set name = "perl-number-range" %}
{% set version = "0.12" %}
{% set sha256 = "433e821ac44ab6164c7e92b60ff7afa60a279bc550134c82ceb70b3ef4ee2925" %}

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

source:
url: https://cpan.metacpan.org/authors/id/L/LA/LARRYSH/Number-Range-{{ version }}.tar.gz
sha256: {{ sha256 }}

build:
number: 0

requirements:
host:
- perl
- perl-extutils-makemaker
run:
- perl
- perl-extutils-makemaker

test:
imports:
- Number::Range

about:
home: http://metacpan.org/pod/Number::Range
license: perl_5
summary: 'Perl extension defining ranges of numbers and testing if a number is found in the range'

0 comments on commit b819f12

Please sign in to comment.