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

# Keep the versions of pure and pure-docs in sync.
name                            pure-docs
github.setup                    agraef pure-lang 0.68 pure-
github.tarball_from             releases
distname                        ${name}-${version}
categories                      pure lang
maintainers                     {ryandesign @ryandesign} {gmail.com:aggraef @agraef}
supported_archs                 noarch
platforms                       any
license                         GFDL-1.3+
homepage                        https://agraef.github.io/pure-docs/

description                     documentation for the Pure programming language

long_description                ${name} is an offline copy of the {*}${description}.

checksums                       rmd160  3c4763f795d5e45ec63b61ba0f02f1a64a8632fc \
                                sha256  a2a74fc17ca3bdde2b84fb1587b3fe145d5c7363bac1d79c54f5626dcf4cde94 \
                                size    4852960

variant tmdocs description {Also install the TeXmacs-formatted documentation} {
    destroot.target-append  install-tm
}

# copied from pure-1.0.tcl
use_configure                   no
depends_lib-append              port:pure
build.args-append               prefix=${prefix}
destroot.args-append            prefix=${prefix}

livecheck.url                   ${github.raw}/master/pure/configure.ac
livecheck.regex                 ^AC_INIT\\(pure,\\s*[join ${github.livecheck.regex}]\\)$
