Gentoo Archives: gentoo-commits

From: "Anthony G. Basile" <blueness@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/xapian/
Date: Mon, 26 Sep 2022 00:53:28
Message-Id: 1664153600.18be51c7f17c65b4404af4832ba910456bdbb9b4.blueness@gentoo
1 commit: 18be51c7f17c65b4404af4832ba910456bdbb9b4
2 Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
3 AuthorDate: Mon Sep 26 00:52:56 2022 +0000
4 Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
5 CommitDate: Mon Sep 26 00:53:20 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=18be51c7
7
8 dev-libs/xapian: version bump 1.4.21
9
10 Signed-off-by: Anthony G. Basile <blueness <AT> gentoo.org>
11
12 dev-libs/xapian/Manifest | 1 +
13 dev-libs/xapian/xapian-1.4.21.ebuild | 75 ++++++++++++++++++++++++++++++++++++
14 2 files changed, 76 insertions(+)
15
16 diff --git a/dev-libs/xapian/Manifest b/dev-libs/xapian/Manifest
17 index 65047553d905..0f9014cd8f3f 100644
18 --- a/dev-libs/xapian/Manifest
19 +++ b/dev-libs/xapian/Manifest
20 @@ -3,3 +3,4 @@ DIST xapian-core-1.4.17.tar.xz 2997700 BLAKE2B 882bc28c9a55731212a5c3ac6da3ad208
21 DIST xapian-core-1.4.18.tar.xz 2984508 BLAKE2B e5d680578e0a4605a8e99470921fba29cdd3d137d017608b8bf571951726055d2a1d49e9649829f0df92af3d27d0565f90baaca5a4eb5c67cb368f5d1e592d28 SHA512 ba6240054c0d2f92b9f1059aa934cdf35388ee7c7e05f4ef6f9856bdaed8ad821095a348ed9a892afdf18c3c0ad20e163028ad0ed3a9934bd69b861e814678ef
22 DIST xapian-core-1.4.19.tar.xz 2994860 BLAKE2B 9566df1646192370e346c1b0d1e1cda68034fe5d3ab94835709f969df643fd36da49a58a2d3b4177a42faf5af2e71df771277848169ae62f94fe0bb0378ba6aa SHA512 d596058d7f9bfa0b73c5b6354331a799936b45f27012894f6792872ade8656bb0387b504aea8c1c3edfbd48787190452e7a49d2b62d181cb050c46edd3e67346
23 DIST xapian-core-1.4.20.tar.xz 3003788 BLAKE2B c4bfa4af9112a206b14c8c2f4a76eb4c1267a752130287b6623233d3a09783b903a3275b2ec275f38f1d195119c730565a31ed303b8e2dedefc42cae10387600 SHA512 e2f62eebc946cc5d0641db85d2966e6ad9e84c6a23606e705f0461ab80b012933b46ed5b7e0691fe2070ca1c0755e99895c18bc055eaad0a9376def410aa7f35
24 +DIST xapian-core-1.4.21.tar.xz 3018384 BLAKE2B 61a25ee381c84e0a9f20650d94aa097225f2e947dafad7f6b5497db74f383f5b0fcf277a35ea27ff461b34cd2a9a0b6333f88264c5817cff09a2caf42fa3b398 SHA512 4071791daf47f5ae77f32f358c6020fcfa9aa81c15c8da25489b055eef30383695e449ab1cb73670f2f5db2b2a5f78056da0e8eea89d83aaad91dfe340a6b13a
25
26 diff --git a/dev-libs/xapian/xapian-1.4.21.ebuild b/dev-libs/xapian/xapian-1.4.21.ebuild
27 new file mode 100644
28 index 000000000000..d50c34543512
29 --- /dev/null
30 +++ b/dev-libs/xapian/xapian-1.4.21.ebuild
31 @@ -0,0 +1,75 @@
32 +# Copyright 1999-2022 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI="8"
36 +
37 +inherit multilib-minimal
38 +
39 +MY_P="${PN}-core-${PV}"
40 +
41 +DESCRIPTION="Xapian Probabilistic Information Retrieval library"
42 +HOMEPAGE="https://www.xapian.org/"
43 +SRC_URI="https://oligarchy.co.uk/xapian/${PV}/${MY_P}.tar.xz"
44 +
45 +LICENSE="GPL-2"
46 +SLOT="0/30" # ABI version of libxapian.so
47 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos ~x64-solaris"
48 +IUSE="doc static-libs cpu_flags_x86_sse cpu_flags_x86_sse2 +inmemory +remote"
49 +
50 +DEPEND="sys-apps/util-linux[${MULTILIB_USEDEP}]
51 + sys-libs/zlib[${MULTILIB_USEDEP}]"
52 +RDEPEND="${DEPEND}"
53 +
54 +S="${WORKDIR}/${MY_P}"
55 +
56 +multilib_src_configure() {
57 + local myconf=""
58 +
59 + if use cpu_flags_x86_sse2; then
60 + myconf="${myconf} --enable-sse=sse2"
61 + else
62 + if use cpu_flags_x86_sse; then
63 + myconf="${myconf} --enable-sse=sse"
64 + else
65 + myconf="${myconf} --disable-sse"
66 + fi
67 + fi
68 +
69 + myconf="${myconf} $(use_enable static-libs static)"
70 +
71 + use inmemory || myconf="${myconf} --disable-backend-inmemory"
72 + use remote || myconf="${myconf} --disable-backend-remote"
73 +
74 + myconf="${myconf} --enable-backend-glass --enable-backend-chert --program-suffix="
75 +
76 + ECONF_SOURCE=${S} econf ${myconf}
77 +}
78 +
79 +MULTILIB_WRAPPED_HEADERS=(
80 + /usr/include/xapian/postingsource.h
81 + /usr/include/xapian/attributes.h
82 + /usr/include/xapian/valuesetmatchdecider.h
83 + /usr/include/xapian/version.h
84 + /usr/include/xapian/version.h
85 + /usr/include/xapian/types.h
86 + /usr/include/xapian/positioniterator.h
87 + /usr/include/xapian/registry.h
88 +)
89 +
90 +multilib_src_test() {
91 + emake check VALGRIND=
92 +}
93 +
94 +multilib_src_install() {
95 + emake DESTDIR="${D}" install
96 +}
97 +
98 +multilib_src_install_all() {
99 + if use doc; then
100 + rm -rf "${ED}/usr/share/doc/xapian-core-${PV}" || die
101 + fi
102 +
103 + dodoc AUTHORS HACKING PLATFORMS README NEWS
104 +
105 + find "${ED}" -name "*.la" -type f -delete || die
106 +}