Skip to content

Commit

Permalink
Merge pull request bioconda#2230 from jerowe/feature/perl-recipes
Browse files Browse the repository at this point in the history
Feature/perl recipes
  • Loading branch information
jerowe authored Aug 29, 2016
2 parents 1be0030 + cc952ed commit 744c0eb
Show file tree
Hide file tree
Showing 9 changed files with 189 additions and 0 deletions.
File renamed without changes.
26 changes: 26 additions & 0 deletions recipes/perl-module-build-tiny/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#!/bin/bash

# If it has Build.PL use that, otherwise use Makefile.PL
cpanm --installdeps .
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.
45 changes: 45 additions & 0 deletions recipes/perl-module-build-tiny/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
package:
name: perl-module-build-tiny
version: "0.039"

source:
fn: Module-Build-Tiny-0.039.tar.gz
url: http://cpan.metacpan.org/authors/id/L/LE/LEONT/Module-Build-Tiny-0.039.tar.gz
md5: 2332c90c17454107fea3f2614e11a3a9

build:
skip: True # [osx]
number: 0

requirements:
build:
- perl-threaded
- perl-app-cpanminus
- perl-extutils-makemaker
- perl-pathtools

run:
- perl-threaded
- perl-extutils-makemaker
- perl-pathtools

test:
# Perl 'use' tests
imports:
- Module::Build::Tiny

# You can also put a file called run_test.pl (or run_test.py) in the recipe
# that will be run at test time.

# requires:
# Put any additional test requirements here. For example
# - nose

about:
home: http://metacpan.org/pod/Module-Build-Tiny
license: perl_5
summary: 'A tiny replacement for Module::Build'

# See
# http://docs.continuum.io/conda/build.html for
# more information about meta.yaml
29 changes: 29 additions & 0 deletions recipes/perl-scalar-list-utils/1.42/bld.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
:: If it has Build.PL use that, otherwise use Makefile.PL
IF exist Build.PL (
perl Build.PL
IF errorlevel 1 exit 1
Build
IF errorlevel 1 exit 1
Build test
:: Make sure this goes in site
Build install --installdirs site
IF errorlevel 1 exit 1
) ELSE IF exist Makefile.PL (
:: Make sure this goes in site
perl Makefile.PL INSTALLDIRS=site
IF errorlevel 1 exit 1
make
IF errorlevel 1 exit 1
make test
IF errorlevel 1 exit 1
make install
) ELSE (
ECHO 'Unable to find Build.PL or Makefile.PL. You need to modify bld.bat.'
exit 1
)

:: 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.
File renamed without changes.
File renamed without changes.
29 changes: 29 additions & 0 deletions recipes/perl-scalar-list-utils/1.45/bld.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
:: If it has Build.PL use that, otherwise use Makefile.PL
IF exist Build.PL (
perl Build.PL
IF errorlevel 1 exit 1
Build
IF errorlevel 1 exit 1
Build test
:: Make sure this goes in site
Build install --installdirs site
IF errorlevel 1 exit 1
) ELSE IF exist Makefile.PL (
:: Make sure this goes in site
perl Makefile.PL INSTALLDIRS=site
IF errorlevel 1 exit 1
make
IF errorlevel 1 exit 1
make test
IF errorlevel 1 exit 1
make install
) ELSE (
ECHO 'Unable to find Build.PL or Makefile.PL. You need to modify bld.bat.'
exit 1
)

:: 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.
25 changes: 25 additions & 0 deletions recipes/perl-scalar-list-utils/1.45/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.
35 changes: 35 additions & 0 deletions recipes/perl-scalar-list-utils/1.45/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
package:
name: perl-scalar-list-utils
version: "1.45"

source:
fn: Scalar-List-Utils-1.45.tar.gz
url: https://cpan.metacpan.org/authors/id/P/PE/PEVANS/Scalar-List-Utils-1.45.tar.gz
md5: b469e990ec92a4c9386aaf9e92857ae9

build:
skip: True # [osx]
number: 0


requirements:
build:
- gcc
- perl-threaded

run:
- perl-threaded

test:
# Perl 'use' tests
imports:
- Scalar::Util

about:
home: http://metacpan.org/pod/Scalar-List-Utils
license: perl_5
summary: 'Common Scalar and List utility subroutines'

# See
# http://docs.continuum.io/conda/build.html for
# more information about meta.yaml

0 comments on commit 744c0eb

Please sign in to comment.