# $Id: Portfile 139 2009-06-18 14:33:02Z kimuraw $

PortSystem      1.0
name            sary
version         1.2.0
revision        0
categories      textproc
maintainers     rsky0711@gmail.com
platforms       darwin
description     Sary is a suffix array library and tools.
long_description \
    Sary is a suffix array library and tools. It provides fast full-text \
    search facilities for text files on the order of 10 to 100 MB using \
    a data structure called a suffix array. It can also search specific \
    fields in a text file by assigning index points to those fields.
homepage        http://sary.sourceforge.net/
master_sites    ${homepage}
checksums       md5 10b9a803025c5f428014a7f1ff849ecc \
                sha1 cfc671ca99d58df4ed8985408499f96579af18f3 \
                rmd160 0c38bf02edb08dabc3577bfde1357ec8821a27f7

depends_lib     port:glib2

configure.env   LDFLAGS="-L${prefix}/lib" \
                CPPFLAGS="-I${prefix}/include -no-cpp-precomp" \
                LIBS=-ldl
configure.args  --mandir=${prefix}/share/man

test.run        yes
test.target     check
