diff --git a/dev-libs/xapian/xapian-1.4.5.recipe b/dev-libs/xapian/xapian-1.4.5.recipe new file mode 100644 index 000000000..ea32fc317 --- /dev/null +++ b/dev-libs/xapian/xapian-1.4.5.recipe @@ -0,0 +1,99 @@ +SUMMARY="A probabilistic information retrieval library with numerous bindings" +DESCRIPTION="Xapian is an open source search engine library written in C++. \ +It has bindings for a large number of other programming languages, including \ +Perl, Python, Java and Ruby. It is hightly adaptable and extensible, fitting \ +a wide range of information retrieval-related tasks. Xapian empowers the Omega \ +search engine package. It supports a wide range of advanced features such as \ +native Unicode support and modern search algorithms." +HOMEPAGE="https://xapian.org/" +COPYRIGHT="1999-2017 The Xapian Authors" +LICENSE="GNU GPL v2" +REVISION="1" +SOURCE_URI="https://oligarchy.co.uk/xapian/$portVersion/xapian-core-$portVersion.tar.xz" +CHECKSUM_SHA256="85b5f952de9df925fd13e00f6e82484162fd506d38745613a50b0a2064c6b02b" +SOURCE_DIR="xapian-core-$portVersion" + +ARCHITECTURES="!x86_gcc2 !x86_64" +SECONDARY_ARCHITECTURES="!x86" + +libVersion="30.4.0" +libVersionCompat="$libVersion compat >= ${libVersion%%.*}" + +PROVIDES=" + xapian$secondaryArchSuffix = $portVersion + lib:libxapian$secondaryArchSuffix = $libVersionCompat + cmd:copydatabase$secondaryArchSuffix = $portVersion + cmd:delve$secondaryArchSuffix = $portVersion + cmd:quest$secondaryArchSuffix = $portVersion + cmd:simpleexpand$secondaryArchSuffix = $portVersion + cmd:simpleindex$secondaryArchSuffix = $portVersion + cmd:simplesearch$secondaryArchSuffix = $portVersion + cmd:xapian_check$secondaryArchSuffix = $portVersion + cmd:xapian_chert_update$secondaryArchSuffix = $portVersion + cmd:xapian_compact$secondaryArchSuffix = $portVersion + cmd:xapian_config$secondaryArchSuffix = $portVersion + cmd:xapian_inspect$secondaryArchSuffix = $portVersion + cmd:xapian_metadata$secondaryArchSuffix = $portVersion + cmd:xapian_progsrv$secondaryArchSuffix = $portVersion + cmd:xapian_replicate$secondaryArchSuffix = $portVersion + cmd:xapian_replicate_server$secondaryArchSuffix = $portVersion + cmd:xapian_tcpsrv$secondaryArchSuffix = $portVersion + " +REQUIRES=" + haiku$secondaryArchSuffix + lib:libuuid$secondaryArchSuffix + lib:libz$secondaryArchSuffix + " + +PROVIDES_devel=" + xapian${secondaryArchSuffix} = $portVersion + devel:libxapian$secondaryArchSuffix = $libVersionCompat + " +REQUIRES_devel=" + xapian$secondaryArchSuffix + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + devel:libuuid$secondaryArchSuffix + devel:libz$secondaryArchSuffix + " +BUILD_PREREQUIRES=" + cmd:awk + cmd:cmp + cmd:diff + cmd:gcc$secondaryArchSuffix + cmd:make + cmd:sed + " + +defineDebugInfoPackage xapian$secondaryArchSuffix \ + "$libDir"/libxapian.so.$libVersion + +BUILD() +{ + runConfigure ./configure + make $jobArgs +} + +INSTALL() +{ + make install + + rm -f "$libDir"/libxapian.la + + prepareInstalledDevelLib libxapian + fixPkgconfig + + mkdir -p "$dataDir"/cmake/Modules + mv "$libDir"/cmake/xapian "$dataDir"/cmake/Modules/xapian + + packageEntries devel \ + "$developDir" \ + "$dataDir" +} + +TEST() +{ + make check +}