# -*- 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           R 1.0

R.setup             cran FlorianSchwendinger lpSolveAPI 5.5.2.0-17.12
revision            0
categories-append   math
maintainers         {@barracuda156 gmail.com:vital.had} openmaintainer
license             LGPL-2
description         R interface to lp_solve v. 5.5.2.0
long_description    {*}${description}
checksums           rmd160  f6562c8a6c3a91f625665ea1c8340cf4484a8647 \
                    sha256  4f00a9d27055ddf3e2a4b0a529b720861b9f916f2ceb1fe0b71e4c52da5b70ef \
                    size    493266

# Do not redefine MYBOOL on ppc. Despite the source suggests
# that using int is fine and that would match ppc ABI,
# it creates problems down the road:
# https://github.com/statnet/ergm/issues/565

# https://trac.macports.org/ticket/68848
patchfiles-append   patch-Makefile.diff

compilers.setup     require_fortran

test.run            yes
