# -*- 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.0
PortGroup       github 1.0

# It appears the GitHub mirror is no longer being updated. When updating
# to a new version, use the master git repo on SourceForge.
github.setup    synhershko clucene a02f3a42245988e92dee3f8bfa04ef3929ab3773
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
name            clucene-devel
set my_name     clucene
conflicts       clucene
version         3025
revision        1
license         Apache-2 LGPL-2.1
categories      devel
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/
dist_subdir     ${my_name}

checksums       rmd160  bfade76ae659dbebce5d46dd0703588dbab3a878 \
                sha256  1370d44d58905e4033972a9049734ab21a9d10c25617479f229bfc4fe8f6abcf \
                size    1979665

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
