PortSystem        1.0

name              flashdot
version           0.7.8
revision          5
categories        science
maintainers       nomaintainer
description       FlashDot is a generator for psychophysical experiments.
long_description  \
    FlashDot is intended for generating and presenting\
    visual perceptual experiments that require a high temporal precision. \
    It is controlled by a simple experiment building language and allows \
    experiment generation with either a text or a graphical editor.
homepage          http://www.flashdot.info/
fetch.type        svn
worksrcdir        src
svn.url           https://svn.code.sf.net/p/flashdot/code/trunk/src/
svn.revision      78
# Use checkout as the version calculation makes certain assumptions
svn.method        checkout

depends_lib       port:ocaml port:ocamlsdl port:ocaml-gsl port:lablgl
use_parallel_build no

# Depends on ocamlsdl (SDL 1.2 bindings, last released 2013), which does not
# build on OCaml 5 and has no OCaml-5-capable upstream; SDL2 replacements
# (tsdl, OCamlSDL2) have incompatible APIs. flashdot itself is abandoned.
known_fail        yes
pre-fetch {
    ui_error "${name} depends on ocamlsdl, which does not build on OCaml 5 and has no OCaml-5-capable upstream."
    return -code error "incompatible OCaml version"
}
