Skip to content

Commit

Permalink
Merge pull request conda-forge#9678 from janniklasrose/trng
Browse files Browse the repository at this point in the history
Add TRNG
  • Loading branch information
xhochy authored Sep 30, 2019
2 parents e5b3b4d + b80b8cb commit 0205dd4
Showing 1 changed file with 56 additions and 0 deletions.
56 changes: 56 additions & 0 deletions recipes/trng/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
{% set name = "trng" %}
{% set version = "4.21" %}

package:
name: {{ name }}
version: {{ version }}

source:
url: https://www.numbercrunch.de/{{ name }}/{{ name }}-{{ version }}.tar.gz
sha256: 03f9fbbb2b99fa12cc9f7a6b768089bc62895da89cc2578d94c86c67840e560c

build:
number: 0
skip: True # [win]
script: "./configure --prefix=$PREFIX && make install"

requirements:
build:
- {{ compiler('cxx') }}
- make

test:
commands:
# library
- test -f $PREFIX/lib/lib{{ name }}{{ version[0] }}.a # [unix]
- test -f $PREFIX/lib/lib{{ name }}{{ version[0] }}${SHLIB_EXT} # [unix]
- conda inspect linkages $PKG_NAME # [unix]
- conda inspect objects $PKG_NAME # [osx]
# header (too many .hpp files, so only test for the directory)
- test -d $PREFIX/include/{{ name }} # [unix]

about:
home: http://www.numbercrunch.de/trng
license: BSD-3-Clause
license_family: BSD
license_file: COPYING
summary: "pseudo-random number generator library"
description: "Tina's Random Number Generator Library (TRNG)
is a state of the art C++ pseudo-random number generator library for
sequential and parallel Monte Carlo simulations. Its design principles are
based on a proposal for an extensible random number generator facility,
that has become part of the C++11 standard.
The TRNG library features an object oriented design, is easy to use and
has been speed optimized. Its implementation does not depend on any
communication library or hardware architecture. TRNG is suited for shared
memory as well as for distributed memory computers and may be used in any
parallel programming environment, e.g. Message Passing Standard, OpenMP or
CUDA. All generators, that are implemented by TRNG, have been subjected to
thorough statistical tests in sequential and parallel setups."
doc_url: https://www.numbercrunch.de/trng/#docu
dev_url: https://github.com/rabauke/trng4

extra:
recipe-maintainers:
- janniklasrose

0 comments on commit 0205dd4

Please sign in to comment.