# -*- 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           stub 1.0
PortGroup           select 1.0

name                octave_select
version             1.0
revision            1
categories          sysutils math
supported_archs     noarch
platforms           any
maintainers         {mcalhoun @MarcusCalhoun-Lopez} openmaintainer
description         common files for selecting default octave version
long_description    octave_select installs files that allow 'port select' to \
                    switch between octave versions

destroot.keepdirs-append                \
    ${destroot}${prefix}/bin            \
    ${destroot}${prefix}/share/man/man1 \
    ${destroot}${prefix}/share/info/    \
    ${destroot}${prefix}/share/appdata

foreach sz {16 22 24 32 48 64 128 256 512} {
    destroot.keepdirs-append \
        ${destroot}${prefix}/share/icons/hicolor/${sz}x${sz}/apps
}

destroot.keepdirs-append \
    ${destroot}${prefix}/share/icons/hicolor/scalable/apps

post-destroot {
    select::install octave ${filespath}/base
    select::install octave ${filespath}/none
}

livecheck.type      none
