diff --git a/recipes/perl-math-matrixreal/build.sh b/recipes/perl-math-matrixreal/build.sh new file mode 100644 index 0000000000000..91583e7371515 --- /dev/null +++ b/recipes/perl-math-matrixreal/build.sh @@ -0,0 +1,26 @@ +#!/bin/bash + +# If it has Build.PL use that, otherwise use Makefile.PL +# if [ -f Build.PL ]; then +# perl Build.PL +# ./Build +# ./Build test +# # Make sure this goes in site +# ./Build install --installdirs site +# If it has Makefile.PL use that, otherwise use Build.PL +if [ -f Makefile.PL ]; then + # Make sure this goes in site + perl Makefile.PL INSTALLDIRS=site + make + make test + make install +elif [ -f Build.PL ]; then + perl Build.PL + ./Build + ./Build test + # Make sure this goes in site + ./Build install --installdirs site +else + echo 'Unable to find Build.PL or Makefile.PL. You need to modify build.sh.' + exit 1 +fi diff --git a/recipes/perl-math-matrixreal/meta.yaml b/recipes/perl-math-matrixreal/meta.yaml new file mode 100644 index 0000000000000..0dfce876b2397 --- /dev/null +++ b/recipes/perl-math-matrixreal/meta.yaml @@ -0,0 +1,34 @@ +{% set name = "perl-math-matrixreal" %} +{% set version = "2.13" %} +{% set sha256 = "4f9fa1a46dd34d2225de461d9a4ed86932cdd821c121fa501a15a6d4302fb4b2" %} + +package: + name: perl-math-matrixreal + version: "2.13" + +source: + url: https://cpan.metacpan.org/authors/id/L/LE/LETO/Math-MatrixReal-2.13.tar.gz + sha256: 4f9fa1a46dd34d2225de461d9a4ed86932cdd821c121fa501a15a6d4302fb4b2 + +build: + noarch: generic + number: 0 + +requirements: + build: + - perl + - perl-test-most + - perl-module-build + + run: + - perl + +test: + # Perl 'use' tests + imports: + - Math::MatrixReal + +about: + home: http://metacpan.org/pod/Math::MatrixReal + license: perl_5 + summary: 'Manipulate NxN matrices of real numbers'