# -*- 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
maintainers {ryandesign @ryandesign} openmaintainer
description Xapian search library
long_description Xapian is a highly adaptable toolkit which allows \
developers to easily add advanced indexing and search \
facilities to their own applications. It supports the \
Probabilistic Information Retrieval model and also \
supports a rich set of boolean query operators.
homepage https://xapian.org
master_sites https://oligarchy.co.uk/xapian/${version}/
if {${subport} eq ${name}} {
# version.h does not get generated properly when there are multiple -arch flags
checksums rmd160 409398b7374d166ddc3749c2d98366727ad8a7d9 \
sha256 93f8ffffa80c5e6036befbf356f34456cc18c2f745cef85e9b4cfc254042137c \
# TODO: Fix xapian-config to not require the .la file
# /opt/local/bin/xapian-config --ltlibs --cxxflags
# /opt/local/bin/xapian-config: Can't find libxapian.la to link against.
destroot.delete_la_files no
if {[variant_exists universal] && [variant_isset universal]} {
foreach arch ${universal_archs_to_use} {
# xapian-config records build directory, which interferes with universal merge
reinplace "s|${worksrcpath}-${arch}|${worksrcpath}|g" ${worksrcpath}-${arch}/xapian-config
livecheck.url ${homepage}/download
livecheck.regex ${name}-(\[0-9\]+\\.\[0-9\]*\[02468\](\\.\[0-9\]+)*)${extract.suffix}
checksums rmd160 e18903f1a0f424c7f42ec85ec9a0cace1a5a693b \
sha256 c26ec4a99a210c26ce64ec08bc7dbb9cca78d82d9266351d498751f6575e8906 \