# $Id$

PortSystem      1.0
PortGroup       cmake 1.0

name            clucene-devel
set my_name     clucene
conflicts       clucene
version         3025
revision        1
license         Apache-2 LGPL-2.1
categories      devel
platforms       darwin
maintainers     nomaintainer
description     the open-source, C++ search engine

long_description \
    CLucene is a high-performance, scalable, cross platform, full-featured, \
    open-source indexing and searching API. Specifically, CLucene is the guts \
    of a search engine, the hard stuff. You write the easy stuff: the UI and \
    the process of selecting and parsing your data files to pump them into the \
    search engine yourself, and any specialized queries to pull it back for \
    display or further processing.

homepage        http://clucene.sourceforge.net/
fetch.type      svn
svn.url         https://clucene.svn.sourceforge.net/svnroot/clucene/branches/lucene2_3_2
svn.revision    ${version}

worksrcdir      [file tail ${svn.url}]

post-patch {
    reinplace \
        s/(int32_t)(_LUCENE_CURRTHREADID)/(int64_t)(_LUCENE_CURRTHREADID)/ \
        ${worksrcpath}/src/core/CLucene/index/IndexFileDeleter.cpp \
        ${worksrcpath}/src/core/CLucene/index/IndexWriter.cpp
}

depends_lib     port:zlib

universal_variant no

livecheck.type  regex
livecheck.url   ${svn.url}
livecheck.regex {Revision (\d+):}