Gentoo Archives: gentoo-commits

From: Hans de Graaff <graaff@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-misc/sphinx/
Date: Fri, 27 Aug 2021 07:23:25
Message-Id: 1630048998.76008390609d0801f2474225466648c23dd9db69.graaff@gentoo
1 commit: 76008390609d0801f2474225466648c23dd9db69
2 Author: Hans de Graaff <graaff <AT> gentoo <DOT> org>
3 AuthorDate: Fri Aug 27 07:22:58 2021 +0000
4 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org>
5 CommitDate: Fri Aug 27 07:23:18 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=76008390
7
8 app-misc/sphinx: cleanup
9
10 Package-Manager: Portage-3.0.20, Repoman-3.0.3
11 Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>
12
13 app-misc/sphinx/sphinx-2.2.11.ebuild | 94 ------------------------------------
14 1 file changed, 94 deletions(-)
15
16 diff --git a/app-misc/sphinx/sphinx-2.2.11.ebuild b/app-misc/sphinx/sphinx-2.2.11.ebuild
17 deleted file mode 100644
18 index 7b6c533c457..00000000000
19 --- a/app-misc/sphinx/sphinx-2.2.11.ebuild
20 +++ /dev/null
21 @@ -1,94 +0,0 @@
22 -# Copyright 1999-2021 Gentoo Authors
23 -# Distributed under the terms of the GNU General Public License v2
24 -
25 -EAPI=5
26 -
27 -WANT_AUTOMAKE=1.15
28 -
29 -inherit epatch autotools toolchain-funcs
30 -
31 -#MY_P=${P/_/-}
32 -MY_P=${P}-release
33 -
34 -DESCRIPTION="Full-text search engine with support for MySQL and PostgreSQL"
35 -HOMEPAGE="http://www.sphinxsearch.com/"
36 -SRC_URI="http://sphinxsearch.com/files/${MY_P}.tar.gz"
37 -
38 -LICENSE="GPL-2"
39 -SLOT="0"
40 -KEYWORDS="amd64 ~arm ~ia64 x86 ~amd64-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris"
41 -IUSE="debug +id64 mysql odbc postgres re2 stemmer syslog xml"
42 -
43 -RDEPEND="mysql? ( virtual/mysql )
44 - postgres? ( dev-db/postgresql:* )
45 - odbc? ( dev-db/unixODBC )
46 - re2? ( dev-libs/re2 )
47 - stemmer? ( dev-libs/snowball-stemmer )
48 - xml? ( dev-libs/expat )
49 - virtual/libiconv"
50 -
51 -S=${WORKDIR}/${MY_P}
52 -
53 -src_prepare() {
54 - epatch "${FILESDIR}"/${PN}-2.0.1_beta-darwin8.patch
55 -
56 - # drop nasty hardcoded search path breaking Prefix
57 - # We patch configure directly since otherwise we need to run
58 - # eautoreconf twice and that causes problems, bug 425380
59 - sed -i -e 's/\/usr\/local\//\/someplace\/nonexisting\//g' configure || die
60 -
61 - # Fix QA compilation warnings.
62 - sed -i -e '19i#include <string.h>' api/libsphinxclient/test.c || die
63 -
64 - pushd api/libsphinxclient || die
65 - eautoreconf
66 - popd || die
67 -
68 - # Drop bundled code to ensure building against system versions. We
69 - # cannot remove libstemmer_c since configure updates its Makefile.
70 - rm -rf libexpat libre2 || die
71 -}
72 -
73 -src_configure() {
74 - # fix libiconv detection
75 - use !elibc_glibc && export ac_cv_search_iconv=-liconv
76 -
77 - econf \
78 - --sysconfdir="${EPREFIX}/etc/${PN}" \
79 - $(use_enable id64) \
80 - $(use_with debug) \
81 - $(use_with mysql) \
82 - $(use_with odbc unixodbc) \
83 - $(use_with postgres pgsql) \
84 - $(use_with re2) \
85 - $(use_with stemmer libstemmer) \
86 - $(use_with syslog syslog) \
87 - $(use_with xml libexpat )
88 -
89 - cd api/libsphinxclient || die
90 - econf STRIP=:
91 -}
92 -
93 -src_compile() {
94 - emake AR="$(tc-getAR)"
95 -
96 - emake -j 1 -C api/libsphinxclient
97 -}
98 -
99 -src_test() {
100 - # Tests require a live database and only work from the source
101 - # directory.
102 - :
103 -}
104 -
105 -src_install() {
106 - emake DESTDIR="${D}" install
107 - emake DESTDIR="${D}" -C api/libsphinxclient install
108 -
109 - dodoc doc/*
110 -
111 - dodir /var/lib/sphinx
112 - dodir /var/log/sphinx
113 -
114 - newinitd "${FILESDIR}"/searchd.rc searchd
115 -}