mirror of
https://github.com/ivabus/pantry
synced 2024-11-10 02:25:18 +03:00
+mcmc-jags.sourceforge.io (#1614)
* +mcmc-jags.sourceforge.io * Fixed a few problems * fixes * lol * libs * test files --------- Co-authored-by: James Reynolds <magnsuviri@me.com> Co-authored-by: Jacob Heider <jacob@tea.xyz>
This commit is contained in:
parent
e314c6520c
commit
fb9f4975c7
7
projects/mcmc-jags.sourceforge.io/model.bug
Normal file
7
projects/mcmc-jags.sourceforge.io/model.bug
Normal file
|
@ -0,0 +1,7 @@
|
|||
data {
|
||||
obs <- 1
|
||||
}
|
||||
model {
|
||||
parameter ~ dunif(0,1)
|
||||
obs ~ dbern(parameter)
|
||||
}
|
35
projects/mcmc-jags.sourceforge.io/package.yml
Normal file
35
projects/mcmc-jags.sourceforge.io/package.yml
Normal file
|
@ -0,0 +1,35 @@
|
|||
distributable:
|
||||
url: https://downloads.sourceforge.net/project/mcmc-jags/JAGS/{{version.major}}.x/Source/JAGS-{{version}}.tar.gz
|
||||
strip-components: 1
|
||||
|
||||
versions:
|
||||
url: https://sourceforge.net/projects/mcmc-jags/files/JAGS/4.x/Source/
|
||||
match: /JAGS-\d+\.\d+\.\d+\.tar\.gz/
|
||||
strip:
|
||||
- /^JAGS-/
|
||||
- /\.tar\.gz$/
|
||||
|
||||
dependencies:
|
||||
gnu.org/gcc: '*' # libstdc++
|
||||
linux:
|
||||
netlib.org/lapack: ^3
|
||||
|
||||
build:
|
||||
dependencies:
|
||||
tea.xyz/gx/cc: c99
|
||||
tea.xyz/gx/make: '*'
|
||||
script:
|
||||
- ./configure $ARGS
|
||||
- make --jobs {{ hw.concurrency }} install
|
||||
- run: |
|
||||
sed -i.bak -e 's|{{prefix}}|$(dirname $0)/..|g' jags
|
||||
rm jags.bak
|
||||
working-directory: ${{prefix}}/bin
|
||||
env:
|
||||
ARGS:
|
||||
- --prefix="{{prefix}}"
|
||||
|
||||
provides:
|
||||
- bin/jags
|
||||
|
||||
test: jags script
|
6
projects/mcmc-jags.sourceforge.io/script
Normal file
6
projects/mcmc-jags.sourceforge.io/script
Normal file
|
@ -0,0 +1,6 @@
|
|||
model in model.bug
|
||||
compile
|
||||
initialize
|
||||
monitor parameter
|
||||
update 100
|
||||
coda *
|
Loading…
Reference in a new issue