# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4

PortSystem          1.0

name                GiNaC
version             1.8.9
revision            0
categories          math
license             GPL-2
maintainers         {mps @Schamschula} openmaintainer
description         GiNaC is C++ library that provides a set of algebraic capabilities.
long_description    GiNaC is an iterated and recursive acronym for GiNaC is Not a CAS, \
                    where CAS stands for Computer Algebra System. Its design is \
                    revolutionary in a sense that contrary to other CAS it does not try \
                    to provide extensive algebraic capabilities and a simple programming \
                    language but instead accepts a given language (C++) and extends it \
                    by a set of algebraic capabilities.

use_bzip2           yes
distname            ginac-${version}

homepage            http://www.ginac.de/
master_sites        ${homepage}

checksums           rmd160  bf06ea0767a61a26019351c32679142d1c0283c0 \
                    sha256  6cfd46cf4e373690e12d16b772d7aed0f5c433da8c7ecd2477f2e736483bb439 \
                    size    1173214

compiler.cxx_standard \
                    2011

set python.version  313
set python.branch   [string index ${python.version} 0].[string range ${python.version} 1 end]

depends_build       port:pkgconfig \
                    port:python${python.version}

depends_lib         port:cln \
                    port:readline

configure.python    ${prefix}/bin/python${python.branch}

test.run            yes
test.target         check

livecheck.type      regex
livecheck.url       ${homepage}News.html
livecheck.regex     "Version (\[0-9.\]+) released"
