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

github.setup            textbrowser biblioteq 2024.03.25
revision                0
github.tarball_from     archive
distname                BiblioteQ-${version}
checksums               rmd160  672f48594bc5ae94fc4f05d7327a781d24d90663 \
                        sha256  1426ff90a1b450babbfc5a8ad8a2f97fdc4865643ebd9db90dd15bc7d142ca81 \
                        size    43442072

categories              databases
license                 BSD-3-Clause
maintainers             nomaintainer
description             professional archiving, cataloging, and library management suite.
long_description        {*}${description}
homepage                https://textbrowser.github.io/biblioteq/
platforms               {darwin >= 15}

compiler.cxx_standard   2017
qt5.depends_component   sqlite-plugin

patchfiles              patch-biblioteq-macports.diff
configure.args          CONFIG+=sdk_no_version_check biblioteq.macos.pro

post-destroot {
    move "${destroot}${worksrcpath}/BiblioteQ.d" ${destroot}${applications_dir}/BiblioteQ
    move "${worksrcpath}/BiblioteQ.app"          ${destroot}${applications_dir}/BiblioteQ/
}

notes-append "
To use ${name}, copy Data/BibliotQ.sqlite and biblioteq.conf to your\
home folder, and select BibliotQ.sqlite to connect to.
"