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

name            nsf
version         2.2.0
categories      lang
license         MIT
maintainers     {wu.ac.at:neumann @gustafn} openmaintainer
description     Next Scripting Framework
long_description    The Next Scripting Framework (NSF) was developed based on the notion of \
            language-oriented programming. The Frameworks allows a language developer to \
            provide multiple object systems in a single workspace. The developer can base \
            the development on a rich set of predefined but extensible set of functions \
            (typically implemented in C) which can be registered on object / class skeletons. \
            NSF provides a basis for defining object-oriented, domain-specific languages. \
            The framework is packaged with XOTcl 2.2 and NX (Next Scripting Language, \
            successor of XOTcl)
platforms       darwin
homepage        https://next-scripting.org/

# Set tclv and checksums to the current MacPorts Tcl port version, though port doesn't
# break if they aren't in sync.
set tclv        8.6.9

master_sites    sourceforge:project/next-scripting/${version}:nsf \
                sourceforge:project/tcl/Tcl/${tclv}:tcl

distname        ${name}${version}
dist_subdir     tcltk
distfiles       ${distname}.tar.gz:nsf \
                tcl${tclv}-src.tar.gz:tcl

checksums       ${distname}.tar.gz \
                    sha1    ee50e594837ad241dc8012e88af7b878f5437607 \
                    rmd160  dcd623ef9e977ff3a31035ff8391087066cbada8 \
                    sha256  fa83d7561694a0cc4d1d0613e776f012e56d14a112d781a17e0383a7e121796c \
                    size    3068054 \
                tcl${tclv}-src.tar.gz \
                    sha1    cf8c0cdfe953179991d052346642b5c42aa9c6c3 \
                    rmd160  2c8bca97b2f8782fb27d4a297b84ba190a797185 \
                    sha256  04abaa207f4bf4f453bea5bbdbcf6cf4bcdba3ed1c5160bfd732c6b8c70c6269 \
                    size    10000391

depends_lib     port:tcl

configure.cflags    "-I${workpath}/tcl${tclv}/generic -I${workpath}/tcl${tclv}/unix"
configure.args      --enable-threads --with-tcl=${prefix}/lib \
                    --mandir=${prefix}/share/man \
                    --with-tcl=${prefix}/lib \
                    --with-tclinclude=${workpath}/tcl${tclv}/generic/

use_parallel_build  no

test.run        yes
test.target     test

livecheck.regex ${name}(\[0-9.\]+)${extract.suffix}
