PortSystem      1.0

name            eblook
set ver_main    1.6.1
set ver_media   20220426
version         ${ver_main}-media-${ver_media}
revision        0
set my_version  ${ver_main}+media-${ver_media}
categories      textproc japanese
maintainers     nomaintainer
description     Interactive EB interface command for searching words in CD-ROM books.
long_description \
                Eblook supports to access CD-ROM books of EB, EBG, EBXA and EPWING \
                formats which are popular in Japan. Including the media patch.
license         GPL-2+
homepage        http://green.ribbon.to/~ikazuhiro/lookup/lookup.html#EBLOOK
distname        ${name}-${my_version}
master_sites    http://green.ribbon.to/~ikazuhiro/lookup/files/

checksums       rmd160  6a3ba7a004136e7eaef3467e417f2ed217e5d6d0 \
                sha256  e83c9521239ee046d37efa7b4cca356c1a3eac4e35a3153c90d6dd24c1cb0c0f \
                size    528225

depends_lib     port:eb \
                port:gettext \
                port:libiconv \
                port:ncurses \
                port:readline \
                port:zlib

configure.args   --infodir=${prefix}/share/info \
                 --with-readline \
                 --with-pager

#use_parallel_build yes

#test.run        yes
#test.target     check

post-destroot {
    set docdir ${destroot}${prefix}/share/doc/${name}
    xinstall -d ${docdir}
    xinstall -m 644 -W ${worksrcpath} AUTHORS COPYING ChangeLog INSTALL NEWS README README.org ${docdir}
}

universal_variant   no

livecheck.type  regex
livecheck.version ${my_version}
livecheck.regex   ${name}-(\[0-9.\]+\\+media-\[0-9\]+)\\.tar
