commit:     d2113df30a04b943d254825dacf30969ba412195
Author:     Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
AuthorDate: Sat Feb 10 20:07:47 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Feb 25 13:22:21 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d2113df3

dev-libs/xapian: add 1.4.24

Changes:
* Remove "doc" USE flag.  Since it's prebuilt, INSTALL_MASK should be
  used instead.
* Add "debug" USE flag.
* Build "inmemory" and "remote" backends unconditionally.
* Depend on "uuid/uuid.h" properly.
* Pass $BUILD_CC to configure.

Other changes:
* Slot-depend on ZLIB.
* Skip checks for valgrind and eatmydata.
* Make DOCS an array.

Closes: https://bugs.gentoo.org/923506
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq.in>
Closes: https://github.com/gentoo/gentoo/pull/35263
Signed-off-by: Sam James <sam <AT> gentoo.org>

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

diff --git a/dev-libs/xapian/Manifest b/dev-libs/xapian/Manifest
index 84d8efdcab8f..eadeb4dd7e64 100644
--- a/dev-libs/xapian/Manifest
+++ b/dev-libs/xapian/Manifest
@@ -1,2 +1,3 @@
 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

diff --git a/dev-libs/xapian/xapian-1.4.24.ebuild 
b/dev-libs/xapian/xapian-1.4.24.ebuild
new file mode 100644
index 000000000000..6cdb011f6f3d
--- /dev/null
+++ b/dev-libs/xapian/xapian-1.4.24.ebuild
@@ -0,0 +1,62 @@
+# 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
+               --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