Gentoo Archives: gentoo-commits

From: Thomas Deutschmann <whissi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/xapian/
Date: Sat, 23 Feb 2019 14:19:41
Message-Id: 1550931563.56ed2d8c87eb9117cfd4ddb2c1e7be2dc5a5ea6b.whissi@gentoo
1 commit: 56ed2d8c87eb9117cfd4ddb2c1e7be2dc5a5ea6b
2 Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
3 AuthorDate: Sat Feb 23 14:19:18 2019 +0000
4 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
5 CommitDate: Sat Feb 23 14:19:23 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=56ed2d8c
7
8 Revert "dev-libs/xapian: remove older versions"
9
10 This partially reverts commit c9ef851344067d8b1dd2efa827faefa74f25b6a4.
11
12 =dev-libs/xapian-1.2.24 is still required for stable dev-perl/Search-Xapian-1.2.25.0.
13
14 Package-Manager: Portage-2.3.62, Repoman-2.3.12
15 Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>
16
17 dev-libs/xapian/Manifest | 1 +
18 dev-libs/xapian/xapian-1.2.24.ebuild | 66 ++++++++++++++++++++++++++++++++++++
19 2 files changed, 67 insertions(+)
20
21 diff --git a/dev-libs/xapian/Manifest b/dev-libs/xapian/Manifest
22 index ca5761c012f..eadc2d393c4 100644
23 --- a/dev-libs/xapian/Manifest
24 +++ b/dev-libs/xapian/Manifest
25 @@ -1,3 +1,4 @@
26 +DIST xapian-core-1.2.24.tar.xz 3210192 BLAKE2B 062f0c15ce87fb64b0eec5e5e54b76c443d0581feab44791bce6925f0f77385b423218dc7006d7e095cc9764fffc73a74a067923c44f51816d94b731d001f903 SHA512 1f8ae5848f94b5f0bee03024f12ae8c336b6d85e58f7b36e885fe604f9fb962c0525e1f44e6cfcd183e811226c61b23f0f2fcc35c7d2e63544b19347a0f96c80
27 DIST xapian-core-1.2.25.tar.xz 3253292 BLAKE2B a130e26188c949d0433d017e8d13e7ecf6241a232d00125699ba8ed63eab9cb1651e02182fcc152f960f4e122709958632779daaaf5760fe50953a3b5b07a243 SHA512 a15b5d9b5770337519f671732f53f0642b31f08206824500d589ba309c9e91a05a30353d66ebf70a4c1cb1824b44e1c7b7630e799de3b15d645cf951a6017bfe
28 DIST xapian-core-1.4.10.tar.xz 2973780 BLAKE2B 6ef86a4c02e6721f434e33ea27a37ddac9cee62f0c9eed8c6334cadb62dd544be66405dd359dd944cf1ab12742c10e786b7300c4987e33ce33da9d9df4e428d4 SHA512 fa716d6f8c04edb297d99dad4d7835f7874837ab3c39d7017e43708cde6992c596e579418be17b79772e002bd23b94169812523a1abd9519b1dd3df474f027d9
29 DIST xapian-core-1.4.5.tar.xz 2810612 BLAKE2B 7784e69e3ca064751d829173949fcde65661c2c2070fdc8392cf2b6d40874a3e5b1265e61f25dd39b33e179b3fe3842b67f33a55523c3a18e9b65528e6a23a1e SHA512 cff97a856a406583ca81164ddb704a0eeae7d8d6f94ce3b3f53d5208d657423e87dd06bdc7acb5e5904765bce1cefbc98365cde315c1d46f7b18cfba7b022ae6
30
31 diff --git a/dev-libs/xapian/xapian-1.2.24.ebuild b/dev-libs/xapian/xapian-1.2.24.ebuild
32 new file mode 100644
33 index 00000000000..ebe151278a9
34 --- /dev/null
35 +++ b/dev-libs/xapian/xapian-1.2.24.ebuild
36 @@ -0,0 +1,66 @@
37 +# Copyright 1999-2019 Gentoo Authors
38 +# Distributed under the terms of the GNU General Public License v2
39 +
40 +EAPI="5"
41 +
42 +inherit eutils
43 +
44 +MY_P="${PN}-core-${PV}"
45 +
46 +DESCRIPTION="Xapian Probabilistic Information Retrieval library"
47 +HOMEPAGE="http://www.xapian.org/"
48 +SRC_URI="http://oligarchy.co.uk/xapian/${PV}/${MY_P}.tar.xz"
49 +
50 +LICENSE="GPL-2"
51 +SLOT="0/1.2.22" # ABI version of libxapian.so, prefixed with 1.2.
52 +KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~mips ppc ppc64 ~s390 sparc x86"
53 +IUSE="doc static-libs -cpu_flags_x86_sse +cpu_flags_x86_sse2 +brass +chert +inmemory"
54 +
55 +DEPEND="sys-libs/zlib"
56 +RDEPEND="${DEPEND}"
57 +
58 +S="${WORKDIR}/${MY_P}"
59 +
60 +src_configure() {
61 + local myconf=""
62 +
63 + einfo
64 + if use cpu_flags_x86_sse2; then
65 + einfo "Using sse2"
66 + myconf="${myconf} --enable-sse=sse2"
67 + else
68 + if use cpu_flags_x86_sse; then
69 + einfo "Using sse"
70 + myconf="${myconf} --enable-sse=sse"
71 + else
72 + einfo "Disabling sse and sse2"
73 + myconf="${myconf} --disable-sse"
74 + fi
75 + fi
76 + einfo
77 +
78 + myconf="${myconf} $(use_enable static-libs static)"
79 +
80 + use brass || myconf="${myconf} --disable-backend-brass"
81 + use chert || myconf="${myconf} --disable-backend-chert"
82 + use inmemory || myconf="${myconf} --disable-backend-inmemory"
83 +
84 + myconf="${myconf} --enable-backend-flint --enable-backend-remote"
85 +
86 + econf $myconf
87 +}
88 +
89 +src_install() {
90 + emake DESTDIR="${D}" install
91 +
92 + mv "${ED}usr/share/doc/xapian-core" "${ED}usr/share/doc/${PF}" || die
93 + use doc || rm -rf "${ED}usr/share/doc/${PF}"
94 +
95 + dodoc AUTHORS HACKING PLATFORMS README NEWS
96 +
97 + prune_libtool_files --all
98 +}
99 +
100 +src_test() {
101 + emake check VALGRIND=
102 +}