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

name                    glimpse
conflicts               agrep tre
version                 4.18.6
revision                1
set distfile_date       20140926184454
dist_subdir             ${name}/${version}-${distfile_date}
categories              textproc
platforms               darwin
maintainers             nomaintainer
license                 ISC

description             text search engine

long_description        Glimpse is a very powerful indexing and query system \
                        that allows you to search through all your files very \
                        quickly.

homepage                http://webglimpse.net/
master_sites            ${homepage}trial/

checksums               rmd160  c9768334fa5fe3d52ecba9651615de716793e49b \
                        sha256  3045296877bc7a3714ae10872056030175c2f10de83544aa7f08811f24d38077

patchfiles              patch-clang.diff

# Does not respect *FLAGS
universal_variant       no

# make: *** No rule to make target `lib/libagrep.a', needed by `notsglimpse'.  Stop.
use_parallel_build      no

destroot.destdir        bindir=${destroot}${prefix}/bin \
                        libdir=${destroot}${prefix}/lib \
                        mandir=${destroot}${prefix}/share/man/man1

post-destroot {
    set docdir ${prefix}/share/doc/${subport}
    xinstall -d ${destroot}${docdir}
    xinstall -m 644 -W ${worksrcpath} \
        CHANGES \
        CONTRIBUTIONS \
        ChangeLog \
        KNOWN_BUGS \
        LICENSE \
        README \
        ${destroot}${docdir}
}

livecheck.type          regex
livecheck.url           ${homepage}download.php
livecheck.regex         {Glimpse ([0-9.]+)}
