-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add recipe for perl-number-range (#11621)
- Loading branch information
1 parent
4dc1121
commit b819f12
Showing
2 changed files
with
50 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |