# -*- 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.14
revision            1
categories-append   math
maintainers         {@barracuda156 macos-powerpc.org:barracuda} openmaintainer
license             LGPL-2
description         R interface to lp_solve v. 5.5.2.0
long_description    {*}${description}
checksums           rmd160  85123caab1707a0e4f07ed3c76349e7b0db50c68 \
                    sha256  56405bc6695259f414a5d9cae332f67ec975ea9161cf34efc15885c563c4bd4f \
                    size    493135

# 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
