diff --git a/recipes/perl-math-matrix/build.sh b/recipes/perl-math-matrix/build.sh new file mode 100644 index 0000000000000..64652ea2132d9 --- /dev/null +++ b/recipes/perl-math-matrix/build.sh @@ -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 + ./Build + ./Build test + # Make sure this goes in site + ./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 diff --git a/recipes/perl-math-matrix/meta.yaml b/recipes/perl-math-matrix/meta.yaml new file mode 100644 index 0000000000000..6d05b0af18b66 --- /dev/null +++ b/recipes/perl-math-matrix/meta.yaml @@ -0,0 +1,33 @@ +{% set name = "perl-math-matrix" %} +{% set version = "0.8" %} +{% set sha256 = "74db24195672a481012230b112e97ee9b7cb8cc30e8374d852e1ffd67c9af467" %} + +package: + name: perl-math-matrix + version: "0.8" + +source: + url: https://cpan.metacpan.org/authors/id/U/UL/ULPFR/Math-Matrix-0.8.tar.gz + sha256: 74db24195672a481012230b112e97ee9b7cb8cc30e8374d852e1ffd67c9af467 + +build: + noarch: generic + number: 0 + +requirements: + host: + - perl + - perl-extutils-makemaker + + run: + - perl + +test: + # Perl 'use' tests + imports: + - Math::Matrix + +about: + home: https://metacpan.org/pod/Math::Matrix + license: unknown + summary: 'Multiply and invert Matrices'