# -*- 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                fpc-doc
version             2.6.4
categories          lang
platforms           any
supported_archs     noarch
license             LGPL
maintainers         {takeshi @tenomoto} openmaintainer
description         Free Pascal documentation
long_description    HTML and PDF documentation of Free Pascal
homepage            http://www.freepascal.org
master_sites        sourceforge:freepascal

# unversioned distfiles
dist_subdir         ${name}/${version}
set pdf             doc-pdf.tar.gz
set html            doc-html.tar.gz
distfiles           ${pdf} ${html}
checksums           ${pdf} \
                    rmd160  a67a0fd28b447dc962448103b22294e4ec1ae2e2 \
                    sha256  dc0cda298a74c01043295e531591e77ac66ce48b7c98a5ed2a1f8a0874724d34 \
                    ${html} \
                    rmd160 6e8fdaf8d3ee0e3e2013dc2d632ea7a51e583ed1 \
                    sha256 bdfa09ff5d362bc39262fa33f8f4365a4767871df17095b3cbf83582c60d0e3b 

use_configure       no
build {}

destroot {
    xinstall -d ${destroot}${prefix}/lib/fpc/share
    file copy ${workpath}/doc ${destroot}${prefix}/lib/fpc/share
}
