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

github.setup        simonmichael hledger 1.50.2
github.tarball_from archive
revision            0
categories          finance textproc haskell

license             GPL-3
maintainers         {judaew @judaew} openmaintainer

description         Command-line interface for the hledger accounting system
long_description    \
    hledger is lightweight, cross platform, multi-currency, double-entry \
    accounting software. It lets you track money, investments, \
    cryptocurrencies, invoices, time, inventory and more, in a safe, \
    future-proof plain text data format with full version control and privacy. \
    \nhledger aims to help both computer experts and regular folks gain \
    clarity in their finances and time management. Though the UIs are basic, \
    hledger can model any accounting situation and provide precise, clear \
    reports. It is reliable, quick, and backed by the highly supportive Plain \
    Text Accounting ecosystem. Using it is an excellent way to learn double \
    entry accounting.
homepage            https://hledger.org

checksums           rmd160  69bc06c39cd7ff03deba8de632d639020983a9c1 \
                    sha256  cf9af9bdec5299dc5c541a0feebef9bbb163a2a4151056306f82758290d7a522 \
                    size    3613819

post-destroot {
    # Add man-pages
    xinstall -m 0644 ${worksrcpath}/hledger/hledger.1 \
        ${destroot}${prefix}/share/man/man1
    xinstall -m 0644 ${worksrcpath}/hledger-ui/hledger-ui.1 \
        ${destroot}${prefix}/share/man/man1
    xinstall -m 0644 ${worksrcpath}/hledger-web/hledger-web.1 \
        ${destroot}${prefix}/share/man/man1

    # Add examples
    xinstall -d ${destroot}${prefix}/share/examples
    move ${worksrcpath}/examples ${destroot}${prefix}/share/examples/${name}
}
