+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:
James Reynolds 2023-09-09 21:28:58 -06:00 committed by GitHub
parent e314c6520c
commit fb9f4975c7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 48 additions and 0 deletions

View file

@ -0,0 +1,7 @@
data {
obs <- 1
}
model {
parameter ~ dunif(0,1)
obs ~ dbern(parameter)
}

View 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

View file

@ -0,0 +1,6 @@
model in model.bug
compile
initialize
monitor parameter
update 100
coda *