commit:     ffef917bde96bd83448d2ed3ce9ffe2cc8d9029f
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri Mar  8 16:35:46 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Mar  8 16:35:46 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ffef917b

dev-libs/xapian: add 1.4.25

Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-libs/xapian/Manifest             |  1 +
 dev-libs/xapian/xapian-1.4.25.ebuild | 63 ++++++++++++++++++++++++++++++++++++
 2 files changed, 64 insertions(+)

diff --git a/dev-libs/xapian/Manifest b/dev-libs/xapian/Manifest
index eadeb4dd7e64..86628f3347ac 100644
--- a/dev-libs/xapian/Manifest
+++ b/dev-libs/xapian/Manifest
@@ -1,3 +1,4 @@
 DIST xapian-core-1.4.22.tar.xz 3019608 BLAKE2B 
f4aec86cd5f63f6f1825a4f8f427ea23be2092ffb4ca11a2fdf20bdf652e7b9f768b1155bcf7ee5e5c5313206c92e1725d1b4d562e3074539a2e8f9901c44f8e
 SHA512 
60d66adbacbd59622d25e392060984bd1dc6c870f9031765f54cb335fb29f72f6d006d27af82a50c8da2cfbebd08dac4503a8afa8ad51bc4e6fa9cb367a59d29
 DIST xapian-core-1.4.23.tar.xz 3024644 BLAKE2B 
e26a9fd5e79daf553b474e3c794178df2cdcd83ce7d7a45ae112dde624d6e7add157c76fda3a333afce6103b2edaf7e3c928e78c47aa1fd19821c3c73926442f
 SHA512 
52dffc93301f99aa150dda8ecd5fb7cc7d0f2ce30e60f393b1058055ade24281af16cf5b5c0e6b08e4754e3d18c39bb5bc068b19330a294ad460ef8a6bc56380
 DIST xapian-core-1.4.24.tar.xz 3194164 BLAKE2B 
fc3484df448d2102d47005b2819eea8eee3fdb4337a42967e2b535187e4b7be9841a8e12b19291f29bdef52b3270529f94376fe91d5e4c70afebaf690a23b18f
 SHA512 
2b156dd90784264d6bf64e66aca559578f946c013bb52e14e56fcd96e9c2fece71c236735b13d2baad0d7f2d410dea3ae54c94cd80f735baf1071bafe2e5c01c
+DIST xapian-core-1.4.25.tar.xz 3205904 BLAKE2B 
7b03a8fabc3c688f58b3451541dedb664de0a02d7c46a4e8eac080c004232575c00428110eaab0ea463df5c3f43f2b4cebfbe6754f897e55f113683c1db43b2b
 SHA512 
e8069f2cb75554978716a99580fb57fc73bbdd607c82394f53d07205d8c78fb59265004be0c676a6806bb2840a3933499dfc867e36a28855278569a0676d469d

diff --git a/dev-libs/xapian/xapian-1.4.25.ebuild 
b/dev-libs/xapian/xapian-1.4.25.ebuild
new file mode 100644
index 000000000000..dc4d3f009870
--- /dev/null
+++ b/dev-libs/xapian/xapian-1.4.25.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit toolchain-funcs
+
+MY_P="${PN}-core-${PV}"
+DESCRIPTION="Xapian Probabilistic Information Retrieval library"
+HOMEPAGE="https://xapian.org/";
+SRC_URI="https://oligarchy.co.uk/xapian/${PV}/${MY_P}.tar.xz";
+S="${WORKDIR}/${MY_P}"
+
+LICENSE="GPL-2"
+SLOT="0/30" # ABI version of libxapian.so
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 
~riscv ~s390 ~sparc ~x86 ~x64-macos ~x64-solaris"
+IUSE="cpu_flags_x86_sse cpu_flags_x86_sse2 debug static-libs"
+
+DEPEND="
+       sys-libs/zlib:=
+       !elibc_Darwin? ( !elibc_SunOS? ( sys-apps/util-linux ) )
+       elibc_SunOS? ( sys-libs/libuuid )
+"
+RDEPEND="${DEPEND}"
+
+DOCS=( AUTHORS HACKING PLATFORMS README NEWS )
+
+src_configure() {
+       tc-export_build_env BUILD_CC
+       local -x CC_FOR_BUILD="${BUILD_CC}"
+
+       # skip certain autoconf checks
+       local -x VALGRIND=
+       local -x EATMYDATA=
+
+       local -a myconf=(
+               --docdir="${EPREFIX}"/usr/share/doc/${PF}/html
+               --disable-werror
+               --enable-backend-chert
+               --enable-backend-glass
+               --enable-backend-inmemory
+               --enable-backend-remote
+               --program-suffix=
+               $(use_enable debug assertions)
+               $(use_enable debug log)
+               $(use_enable static-libs static)
+       )
+
+       if use cpu_flags_x86_sse2; then
+               myconf+=( --enable-sse=sse2 )
+       elif use cpu_flags_x86_sse; then
+               myconf+=( --enable-sse=sse )
+       else
+               myconf+=( --disable-sse )
+       fi
+
+       econf "${myconf[@]}"
+}
+
+src_install() {
+       default
+       find "${ED}" -name "*.la" -type f -delete || die
+}

Reply via email to