Skip to content
This repository has been archived by the owner on Sep 22, 2020. It is now read-only.

Commit

Permalink
r-evd added
Browse files Browse the repository at this point in the history
  • Loading branch information
cehbrecht committed Feb 20, 2015
1 parent 412e874 commit 026aa0f
Show file tree
Hide file tree
Showing 4 changed files with 151 additions and 0 deletions.
77 changes: 77 additions & 0 deletions r-evd/.binstar.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@

## The package attribure specifies a binstar package namespace to build the package to.
## This can be specified here or on the command line
package: r-evd

## You can also specify the account to upload to,
## you must be an admin of that account, this
## defaults to your user account
user: birdhouse

#===============================================================================
# Build Matrix Options
# Thes options may be a single item, a list or empty
# The resulting number of builds is [platform * engine * env]
#===============================================================================

## The platforms to build on.
## platform defaults to linux-64
# platform:
# - linux-64
# - linux-32
## The engine are the inital conda packages you want to run with
# engine:
# - python=2
# - python=3
## The env param is an environment variable list
# engine:
# - MY_ENV=A CC=gcc
# - MY_ENV=B

#===============================================================================
# Scrip options
# Thes options may be broken out into the before_script, script and after_script
# or not, that is up to you
#===============================================================================

## Run before the script
before_script:
- conda config --add channels https://conda.binstar.org/birdhouse
- conda config --add channels https://conda.binstar.org/asmeurer
## Put your main computations here!
script:
- conda build .
## This will run after the script regardless of the result of script
## BINSTAR_BUILD_RESULT=[succcess|failure]
# after_script:
# - echo "The build was a $BINSTAR_BUILD_RESULT" | tee artifact1.txt
## This will be run only after a successfull build
# after_success:
# - echo "after_success!"
## This will be run only after a build failure
# after_failure:
# - echo "after_failure!"

#===============================================================================
# Build Results
# Build results are split into two categories: artifacts and targets
# You may omit either key and stiff have a successfull build
# They may be a string, list and contain any bash glob
#===============================================================================

## Build Artifacts: upload anything you want!
## Your build artifacts will be put into the website
## http://artifacts.build.binstar.info/USERNAME/PACKGE_NAME/BUILD_NO
## You can store all logs or any derived data here
## Remember, the site http://artifacts.build.binstar.info is NOT secure and does not
## require a user to log in to view
# build_artifacts:
# - *.log

## Build Targets: Upload these files to your binstar package
## build targets may be a list of files (globs allows) to upload
## The special build targets 'conda' and 'pypi' may be used to
## upload conda builds
## e.g. conda is an alias for /opt/anaconda/conda-bld/<os-arch>/*.tar.bz2
build_targets:
- conda
8 changes: 8 additions & 0 deletions r-evd/bld.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
"%R%" CMD INSTALL --build .
if errorlevel 1 exit 1

@rem Add more build steps here, if they are necessary.

@rem See
@rem http://docs.continuum.io/conda/build.html
@rem for a list of environment variables that are set during the build process.
13 changes: 13 additions & 0 deletions r-evd/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash

# R refuses to build packages that mark themselves as Priority: Recommended
mv DESCRIPTION DESCRIPTION.old
grep -v '^Priority: ' DESCRIPTION.old > DESCRIPTION

$R CMD INSTALL --build .

# 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.
53 changes: 53 additions & 0 deletions r-evd/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
package:
name: r-evd
# Note that conda versions cannot contain -, so any -'s in the version have
# been replaced with _'s.
version: "2.3_0"

source:
fn: evd_2.3-0.tar.gz
url: http://cran.r-project.org/src/contrib/evd_2.3-0.tar.gz
# You can add a hash for the file here, like md5 or sha1
# md5: 49448ba4863157652311cc5ea4fea3ea
# sha1: 3bcfbee008276084cbb37a2b453963c61176a322
# patches:
# List any patch files here
# - fix.patch

build:
# If this is a new build for the same version, increment the build
# number. If you do not include this key, it defaults to 0.
number: 0 # [osx]

# This is required to make R link correctly on Linux.
rpaths:
- lib/R/lib/
- lib/

# Suggests: RColorBrewer, rgdal (>= 0.8-7), rgeos (>= 0.2-20), gstat
requirements:
build:
- r >=2.15.0

run:
- r >=2.15.0

test:
commands:
# You can put additional test commands to be run here.
- $R -e "library('evd')" # [not win]
- "\"%R%\" -e \"library('evd')\"" # [win]

# You can also put a file called run_test.py, run_test.sh, or run_test.bat
# in the recipe that will be run at test time.

# requires:
# Put any additional test requirements here.

about:
home: http://cran.r-project.org/web/packages/evd/index.html
license: GPL (>= 3)
summary: Functions for extreme value distributions. Extends simulation, distribution, quantile and density functions to univariate and multivariate parametric extreme value distributions, and provides fitting functions which calculate maximum likelihood estimates for univariate and bivariate maxima models, and for univariate and bivariate threshold models.

# The original CRAN metadata for this package was:

0 comments on commit 026aa0f

Please sign in to comment.