# -*- 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               cmake 1.1
PortGroup               github 1.0

epoch                   1
github.setup            Dushistov sdcv 0.5.5 v
revision                0
checksums               rmd160  8736ba4c290aacbe457dd2dbc8733eb11adb3a49 \
                        sha256  4d2519e8f8479b9301dc91e9cda3e1eefef19970ece0e8c05f0c7b7ade5dc94b \
                        size    67016

categories              textproc
maintainers             {ryandesign @ryandesign} openmaintainer
license                 GPL-2+

description             console version of StarDict program

long_description        ${name} is a console version of the StarDict program.

homepage                https://dushistov.github.io/sdcv/
github.tarball_from     archive

depends_build-append    port:pkgconfig

depends_lib             port:gettext \
                        path:lib/pkgconfig/glib-2.0.pc:glib2 \
                        port:readline \
                        port:zlib

compiler.cxx_standard   2011

build.target-append     lang

post-destroot {
    set docdir ${prefix}/share/doc/${subport}
    xinstall -d ${destroot}${docdir}
    xinstall -m 0644 -W ${worksrcpath} \
        AUTHORS \
        LICENSE \
        NEWS \
        README.org \
        ${destroot}${docdir}
}
