# -*- 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           github 1.0
PortGroup           janet  1.0

name                janet-db
github.setup        joy-framework db 507b54fe8d401eec64f0df9f1863b4431d2c8dd0
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
version             20210127
revision            0
categories          janet devel
license             MIT
maintainers         {@tsujp wz.ht:jc+macports} openmaintainer
platforms           any
supported_archs     noarch
description         A humble database library for janet
long_description    {*}${description}

checksums           rmd160  58a24ace66da84976424a9e74633fdf86fc3f04b \
                    sha256  b08c1cd4db0d5375606c77a91e1ed65bced8136aa084c2f282d71f490b686937 \
                    size    17292

depends_lib-append  port:janet-path \
                    port:janet-tester

destroot.cmd-prepend JANET_BINPATH=${destroot}${prefix}/bin

notes "
This package provides a binary 'db' and requires a driver to be useful.\
Here are the relevant drivers and their database types:

(1) PostgreSQL
    \$ port install janet-pq

(2) SQLite
    \$ port install janet-sqlite3

Note: use of sudo in the above commands depends on whether your\
MacPorts is installed to a directory owned by the root user.
"
