Gentoo Archives: gentoo-commits

From: "Hans de Graaff (graaff)" <graaff@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-misc/sphinx: sphinx-2.0.10.ebuild ChangeLog sphinx-2.1.5.ebuild
Date: Fri, 24 Jan 2014 07:41:33
Message-Id: 20140124074129.595C32004C@flycatcher.gentoo.org
1 graaff 14/01/24 07:41:29
2
3 Modified: ChangeLog
4 Added: sphinx-2.0.10.ebuild sphinx-2.1.5.ebuild
5 Log:
6 Version bumps.
7
8 (Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key 0x8883FA56A308A8D7!)
9
10 Revision Changes Path
11 1.71 app-misc/sphinx/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/sphinx/ChangeLog?rev=1.71&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/sphinx/ChangeLog?rev=1.71&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/sphinx/ChangeLog?r1=1.70&r2=1.71
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/app-misc/sphinx/ChangeLog,v
20 retrieving revision 1.70
21 retrieving revision 1.71
22 diff -u -r1.70 -r1.71
23 --- ChangeLog 22 Dec 2013 16:55:06 -0000 1.70
24 +++ ChangeLog 24 Jan 2014 07:41:29 -0000 1.71
25 @@ -1,6 +1,13 @@
26 # ChangeLog for app-misc/sphinx
27 -# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/app-misc/sphinx/ChangeLog,v 1.70 2013/12/22 16:55:06 graaff Exp $
29 +# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/app-misc/sphinx/ChangeLog,v 1.71 2014/01/24 07:41:29 graaff Exp $
31 +
32 +*sphinx-2.1.5 (24 Jan 2014)
33 +*sphinx-2.0.10 (24 Jan 2014)
34 +
35 + 24 Jan 2014; Hans de Graaff <graaff@g.o> +sphinx-2.0.10.ebuild,
36 + +sphinx-2.1.5.ebuild:
37 + Version bumps.
38
39 *sphinx-2.1.4 (22 Dec 2013)
40
41
42
43
44 1.1 app-misc/sphinx/sphinx-2.0.10.ebuild
45
46 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/sphinx/sphinx-2.0.10.ebuild?rev=1.1&view=markup
47 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/sphinx/sphinx-2.0.10.ebuild?rev=1.1&content-type=text/plain
48
49 Index: sphinx-2.0.10.ebuild
50 ===================================================================
51 # Copyright 1999-2014 Gentoo Foundation
52 # Distributed under the terms of the GNU General Public License v2
53 # $Header: /var/cvsroot/gentoo-x86/app-misc/sphinx/sphinx-2.0.10.ebuild,v 1.1 2014/01/24 07:41:29 graaff Exp $
54
55 EAPI=5
56 inherit eutils autotools toolchain-funcs
57
58 #MY_P=${P/_/-}
59 MY_P=${P}-release
60
61 # This has been added by Gentoo, to explicitly version libstemmer.
62 # It is the date that http://snowball.tartarus.org/dist/libstemmer_c.tgz was
63 # fetched.
64 STEMMER_PV="20091122"
65 DESCRIPTION="Full-text search engine with support for MySQL and PostgreSQL"
66 HOMEPAGE="http://www.sphinxsearch.com/"
67 SRC_URI="http://sphinxsearch.com/files/${MY_P}.tar.gz
68 stemmer? ( mirror://gentoo/libstemmer_c-${STEMMER_PV}.tgz )"
69
70 LICENSE="GPL-2"
71 SLOT="0"
72 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~ppc-macos ~x86-macos ~sparc-solaris ~sparc64-solaris"
73 IUSE="debug id64 mysql odbc postgres stemmer test"
74
75 RDEPEND="mysql? ( virtual/mysql )
76 postgres? ( dev-db/postgresql-base )
77 odbc? ( dev-db/unixODBC )
78 virtual/libiconv"
79 DEPEND="${RDEPEND}
80 test? ( dev-lang/php )"
81
82 S=${WORKDIR}/${MY_P}
83
84 src_unpack() {
85 unpack ${MY_P}.tar.gz
86 if use stemmer; then
87 cd "${S}"
88 unpack libstemmer_c-${STEMMER_PV}.tgz
89 fi
90 }
91
92 src_prepare() {
93 epatch "${FILESDIR}"/${PN}-2.0.1_beta-darwin8.patch
94
95 # drop nasty hardcoded search path breaking Prefix
96 # We patch configure directly since otherwise we need to run
97 # eautoreconf twice and that causes problems, bug 425380
98 sed -i -e 's/\/usr\/local\//\/someplace\/nonexisting\//g' configure || die
99
100 # Fix QA compilation warnings.
101 sed -i -e '19i#include <string.h>' api/libsphinxclient/test.c || die
102
103 pushd api/libsphinxclient || die
104 eautoreconf
105 popd || die
106 }
107
108 src_configure() {
109 # fix libiconv detection
110 use !elibc_glibc && export ac_cv_search_iconv=-liconv
111
112 econf \
113 --sysconfdir="${EPREFIX}/etc/${PN}" \
114 $(use_enable id64) \
115 $(use_with debug) \
116 $(use_with mysql) \
117 $(use_with odbc unixodbc) \
118 $(use_with postgres pgsql) \
119 $(use_with stemmer libstemmer)
120
121 cd api/libsphinxclient || die
122 econf STRIP=:
123 }
124
125 src_compile() {
126 emake AR="$(tc-getAR)" || die "emake failed"
127
128 emake -j 1 -C api/libsphinxclient || die "emake libsphinxclient failed"
129 }
130
131 src_test() {
132 elog "Tests require access to a live MySQL database and may require configuration."
133 elog "You will find them in /usr/share/${PN}/test and they require dev-lang/php"
134 }
135
136 src_install() {
137 emake DESTDIR="${D}" install || die "install failed"
138 emake DESTDIR="${D}" -C api/libsphinxclient install || die "install libsphinxclient failed"
139
140 dodoc doc/*
141
142 dodir /var/lib/sphinx
143 dodir /var/log/sphinx
144
145 newinitd "${FILESDIR}"/searchd.rc searchd
146
147 if use test; then
148 insinto /usr/share/${PN}
149 doins -r test
150 fi
151 }
152
153
154
155 1.1 app-misc/sphinx/sphinx-2.1.5.ebuild
156
157 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/sphinx/sphinx-2.1.5.ebuild?rev=1.1&view=markup
158 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/sphinx/sphinx-2.1.5.ebuild?rev=1.1&content-type=text/plain
159
160 Index: sphinx-2.1.5.ebuild
161 ===================================================================
162 # Copyright 1999-2014 Gentoo Foundation
163 # Distributed under the terms of the GNU General Public License v2
164 # $Header: /var/cvsroot/gentoo-x86/app-misc/sphinx/sphinx-2.1.5.ebuild,v 1.1 2014/01/24 07:41:29 graaff Exp $
165
166 EAPI=5
167 inherit eutils autotools toolchain-funcs
168
169 #MY_P=${P/_/-}
170 MY_P=${P}-release
171
172 # This has been added by Gentoo, to explicitly version libstemmer.
173 # It is the date that http://snowball.tartarus.org/dist/libstemmer_c.tgz was
174 # fetched.
175 #STEMMER_PV="20091122"
176 DESCRIPTION="Full-text search engine with support for MySQL and PostgreSQL"
177 HOMEPAGE="http://www.sphinxsearch.com/"
178 SRC_URI="http://sphinxsearch.com/files/${MY_P}.tar.gz"
179 # stemmer? ( mirror://gentoo/libstemmer_c-${STEMMER_PV}.tgz )"
180
181 LICENSE="GPL-2"
182 SLOT="0"
183 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~ppc-macos ~x86-macos ~sparc-solaris ~sparc64-solaris"
184 IUSE="debug id64 mysql odbc postgres stemmer syslog test xml"
185
186 RDEPEND="mysql? ( virtual/mysql )
187 postgres? ( dev-db/postgresql-base )
188 odbc? ( dev-db/unixODBC )
189 stemmer? ( dev-libs/snowball-stemmer )
190 xml? ( dev-libs/expat )
191 virtual/libiconv"
192
193 S=${WORKDIR}/${MY_P}
194
195 src_prepare() {
196 epatch "${FILESDIR}"/${PN}-2.0.1_beta-darwin8.patch
197
198 # drop nasty hardcoded search path breaking Prefix
199 # We patch configure directly since otherwise we need to run
200 # eautoreconf twice and that causes problems, bug 425380
201 sed -i -e 's/\/usr\/local\//\/someplace\/nonexisting\//g' configure || die
202
203 # Fix QA compilation warnings.
204 sed -i -e '19i#include <string.h>' api/libsphinxclient/test.c || die
205
206 pushd api/libsphinxclient || die
207 eautoreconf
208 popd || die
209 }
210
211 src_configure() {
212 # fix libiconv detection
213 use !elibc_glibc && export ac_cv_search_iconv=-liconv
214
215 econf \
216 --sysconfdir="${EPREFIX}/etc/${PN}" \
217 $(use_enable id64) \
218 $(use_with debug) \
219 $(use_with mysql) \
220 $(use_with odbc unixodbc) \
221 $(use_with postgres pgsql) \
222 $(use_with stemmer libstemmer) \
223 $(use_with syslog syslog) \
224 $(use_with xml libexpat )
225
226 cd api/libsphinxclient || die
227 econf STRIP=:
228 }
229
230 src_compile() {
231 emake AR="$(tc-getAR)" || die "emake failed"
232
233 emake -j 1 -C api/libsphinxclient || die "emake libsphinxclient failed"
234 }
235
236 src_test() {
237 elog "Tests require access to a live MySQL database and may require configuration."
238 elog "You will find them in /usr/share/${PN}/test and they require dev-lang/php"
239 }
240
241 src_install() {
242 emake DESTDIR="${D}" install || die "install failed"
243 emake DESTDIR="${D}" -C api/libsphinxclient install || die "install libsphinxclient failed"
244
245 dodoc doc/*
246
247 dodir /var/lib/sphinx
248 dodir /var/log/sphinx
249
250 newinitd "${FILESDIR}"/searchd.rc searchd
251
252 if use test; then
253 insinto /usr/share/${PN}
254 doins -r test
255 fi
256 }