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

PortSystem 1.0

name            nsf
version         2.0.0
categories      lang
license         MIT
maintainers     wu.ac.at:neumann
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.0 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.3

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    b397f11ce9db9bab957aee29eae404846bb5c707 \
                    rmd160  cff57b4bff5096ec41cb40d939b4883ef2a1ee93 \
                tcl${tclv}-src.tar.gz \
                    sha1    026b4b6330205bdc49af12332ee17c2b01f76d37 \
                    rmd160  7d798ddba4e0b2fce9228f2d654e2cfeef015aca

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