# -*- 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 # $Id: Portfile 143525 2015-12-14 12:49:34Z mcalhoun@macports.org $ PortSystem 1.0 # version.h does not get generated properly when there are multiple -arch flags PortGroup muniversal 1.0 name xapian-core version 1.2.21 categories devel maintainers gmail.com:dcolish license GPL-2+ 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 http://xapian.org/ platforms darwin master_sites http://oligarchy.co.uk/xapian/${version}/ use_xz yes checksums rmd160 6b2413007f245d2410e2b22d7656abb7f1bae750 \ sha256 63f48758fbd13fa8456dd4cf9bf3ec35a096e4290f14a51ac7df23f78c162d3f # 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 depends_lib port:zlib if { [variant_exists universal] && [variant_isset universal] } { post-build { 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.type regex livecheck.url ${homepage}download livecheck.regex ${name}-(\[0-9\]+\\.\[0-9\]*\[02468\](\\.\[0-9\]+)*)${extract.suffix}