# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem                          1.0
PortGroup           legacysupport   1.0

name                lenstool
version             8.0.4
revision            0
categories          science
license             GPL-3+
platforms           darwin
maintainers         {lam.fr:eric.jullo @ejullo} openmaintainer

description         A gravitational lensing software for modeling mass distribution \
                    of galaxies and clusters (strong and weak regime).

long_description    LENSTOOL package contains a C library and several \
                    executables for creating, and post-processing \
                    gravitational lensing models. LENSTOOL lens model, \
                    processing steps, and input data are listed in an ASCII \
                    parameter file. The lenstool executable parses this file \
                    and performs the successive requested processing steps. \
                    Perl scripts provided in the package allow to visualize \
                    output results in the graphical interface DS9 provided by \
                    Smithsonian Astrophysical Observatory (SAO). In case of \
                    MCMC model optimization, MCMC samples are delivered in \
                    an output ASCII file. MCMC samples can be post-processed \
                    by several additional executables provided in the package.

homepage            https://projets.lam.fr/projects/lenstool
master_sites        https://git-cral.univ-lyon1.fr/lenstool/lenstool/-/archive/8.0.4/

checksums           sha256 f14fb546a78ebbae3604739fe70089a98ca22668a85ba0d537fd9d63fc1c0786 \
                    rmd160 9dd3aee11b46356ac75e3277de38984a2a0f9e53 \
                    size   15830584

depends_lib-append  port:cfitsio \
                    port:gsl \
                    port:wcslib


configure.args      --with-cfitsio-prefix=${prefix} \
                    --with-wcslib-include-path=${prefix}/include/wcslib \
                    --with-wcslib-lib-path=${prefix}/lib \
                    --with-gsl-prefix=${prefix}
