# -*- 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 tomoakin RPostgreSQL 0.7-8
revision            3
categories-append   databases
maintainers         nomaintainer
license             GPL-3
description         R interface to the PostgreSQL database system
long_description    {*}${description}
checksums           rmd160  e14f6d69722b891975baa4035f172dcb25a66ceb \
                    sha256  f215ab6ffe2533e56018f07cbb42014e1430b84bf56e9bd2cc8fd066e8f0963c \
                    size    565218

# Keep in sync with R-RPostgres and R-adbcpostgresql, so that we do not need multiple postgresql ports.
# Make sure a chosen version is supported for all archs, including powerpc.
set pgsql_v         17

depends_lib-append  port:postgresql${pgsql_v} \
                    port:R-DBI

build.env-append    PG_CONFIG=${prefix}/lib/postgresql${pgsql_v}/bin/pg_config

test.run            no
