Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perl-text-roman #47942

Closed
wants to merge 7 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions recipes/perl-text-roman/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/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

# Add more build steps here, if they are necessary.

# See
# http://docs.continuum.io/conda/build.html
# for a list of environment variables that are set during the build process.
30 changes: 30 additions & 0 deletions recipes/perl-text-roman/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
package:
name: perl-text-roman
version: "3.5"

source:
url: https://cpan.metacpan.org/authors/id/S/SY/SYP/Text-Roman-3.5.tar.gz
md5: 1f6b09c0cc1f4425b565ff787a39fd83

build:
noarch: generic
number: 0
run_exports: '{{ pin_subpackage("perl-text-roman", max_pin="x") }}'

requirements:
build:
- make
host:
- perl
- perl-module-build
run:
- perl

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You need some tests:

test:
  commands:
    - ???

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added the following test based on the other Perl modules in bioconda.

test:
  imports:
    - Text::Roman

test:
imports:
- Text::Roman

about:
home: https://metacpan.org/pod/Text::Roman
license: Artistic-1.0-Perl
summary: 'converts between arabic and roman numerals'