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

codeberg.setup      dskoll remind 06.03.06
revision            0
categories          textproc pim
license             GPL-2
maintainers         {mark @markemer} openmaintainer 
description         Remind is a sophisticated calendar and alarm program.
long_description    Remind is a sophisticated calendar and alarm service for UNIX. \
                    It is a command line application which interacts well with other \
                    programs. Remind offers a specialized scripting language which can \
                    be used to express rather complicated scheduling methods in just a few lines.

homepage            https://dianne.skoll.ca/projects/remind/

checksums           rmd160  d2c0304b5ceb74b6470ea916801e7c5cdb0ec2a5 \
                    sha256  caf7c91bcea29409d11b97a0a5243670c149c2959624b811674cffbc4d43c7bc \
                    size    9134417

configure.args      --mandir=\\\${prefix}/share/man

# cc1: error: unrecognized command line option "-flto=auto"
# cc1: error: unrecognized command line option "-ffat-lto-objects"
compiler.blacklist-append \
                    *gcc-4.0 *gcc-4.2

destroot.destdir    prefix=${destroot}${prefix}

# There isn't a great way to turn off tkremind, so I added it as a dependency so
# we don't get weird behavior. JSON::MaybeXS is needed for rem2ps
depends_lib port:p5.34-pango \
            port:p5.34-cairo \
            port:p5.34-json-maybexs \
            port:tk

post-destroot {
    set docdir ${prefix}/share/${subport}
    xinstall -d ${destroot}${docdir}
    copy ${worksrcpath}/examples ${destroot}${docdir}
}
