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.2_beta.ebuild ChangeLog
Date: Mon, 28 Nov 2011 18:24:15
Message-Id: 20111128182400.054192004B@flycatcher.gentoo.org
1 graaff 11/11/28 18:24:00
2
3 Modified: ChangeLog
4 Added: sphinx-2.0.2_beta.ebuild
5 Log:
6 Version bump.
7
8 (Portage version: 2.1.10.11/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.38 app-misc/sphinx/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/sphinx/ChangeLog?rev=1.38&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/sphinx/ChangeLog?rev=1.38&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/sphinx/ChangeLog?r1=1.37&r2=1.38
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/app-misc/sphinx/ChangeLog,v
20 retrieving revision 1.37
21 retrieving revision 1.38
22 diff -u -r1.37 -r1.38
23 --- ChangeLog 28 Sep 2011 10:40:10 -0000 1.37
24 +++ ChangeLog 28 Nov 2011 18:23:59 -0000 1.38
25 @@ -1,6 +1,11 @@
26 # ChangeLog for app-misc/sphinx
27 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/app-misc/sphinx/ChangeLog,v 1.37 2011/09/28 10:40:10 grobian Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/app-misc/sphinx/ChangeLog,v 1.38 2011/11/28 18:23:59 graaff Exp $
30 +
31 +*sphinx-2.0.2_beta (28 Nov 2011)
32 +
33 + 28 Nov 2011; Hans de Graaff <graaff@g.o> +sphinx-2.0.2_beta.ebuild:
34 + Version bump.
35
36 28 Sep 2011; Fabian Groffen <grobian@g.o> sphinx-2.0.1_beta.ebuild,
37 +files/sphinx-2.0.1_beta-solaris.patch:
38
39
40
41 1.1 app-misc/sphinx/sphinx-2.0.2_beta.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/sphinx/sphinx-2.0.2_beta.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/sphinx/sphinx-2.0.2_beta.ebuild?rev=1.1&content-type=text/plain
45
46 Index: sphinx-2.0.2_beta.ebuild
47 ===================================================================
48 # Copyright 1999-2011 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/app-misc/sphinx/sphinx-2.0.2_beta.ebuild,v 1.1 2011/11/28 18:23:59 graaff Exp $
51
52 EAPI=3
53 inherit eutils autotools
54
55 MY_P=${P/_/-}
56
57 # This has been added by Gentoo, to explicitly version libstemmer.
58 # It is the date that http://snowball.tartarus.org/dist/libstemmer_c.tgz was
59 # fetched.
60 STEMMER_PV="20091122"
61 DESCRIPTION="Full-text search engine with support for MySQL and PostgreSQL"
62 HOMEPAGE="http://www.sphinxsearch.com/"
63 SRC_URI="http://sphinxsearch.com/files/${MY_P}.tar.gz
64 stemmer? ( mirror://gentoo/libstemmer_c-${STEMMER_PV}.tgz )"
65
66 LICENSE="GPL-2"
67 SLOT="0"
68 KEYWORDS="~amd64 ~x86 ~amd64-linux ~ppc-macos ~x86-macos ~sparc-solaris ~sparc64-solaris"
69 IUSE="debug id64 mysql odbc postgres stemmer test"
70
71 RDEPEND="mysql? ( virtual/mysql )
72 postgres? ( dev-db/postgresql-base )
73 odbc? ( dev-db/unixODBC )
74 virtual/libiconv"
75 DEPEND="${RDEPEND}
76 test? ( dev-lang/php )"
77
78 S=${WORKDIR}/${MY_P}
79
80 src_unpack() {
81 unpack ${MY_P}.tar.gz
82 if use stemmer; then
83 cd "${S}"
84 unpack libstemmer_c-${STEMMER_PV}.tgz
85 fi
86 }
87
88 src_prepare() {
89 epatch "${FILESDIR}"/${PN}-2.0.1_beta-darwin8.patch
90
91 # drop nasty hardcoded search path breaking Prefix
92 sed -i -e '/\/usr\/local\//d' configure.ac || die
93
94 # Regenerate autoconf files in the api directory first to avoid
95 # running elibtoolize twice, which results in a warning.
96 pushd api/libsphinxclient || die
97 eautoreconf
98 popd || die
99
100 eautoreconf
101 }
102
103 src_configure() {
104 # fix libiconv detection
105 use !elibc_glibc && export ac_cv_search_iconv=-liconv
106
107 econf \
108 --sysconfdir="${EPREFIX}/etc/${PN}" \
109 $(use_enable id64) \
110 $(use_with debug) \
111 $(use_with mysql) \
112 $(use_with odbc unixodbc) \
113 $(use_with postgres pgsql) \
114 $(use_with stemmer libstemmer)
115
116 cd api/libsphinxclient || die
117 econf STRIP=:
118 }
119
120 src_compile() {
121 emake || die "emake failed"
122
123 emake -j 1 -C api/libsphinxclient || die "emake libsphinxclient failed"
124 }
125
126 src_test() {
127 elog "Tests require access to a live MySQL database and may require configuration."
128 elog "You will find them in /usr/share/${PN}/test and they require dev-lang/php"
129 }
130
131 src_install() {
132 emake DESTDIR="${D}" install || die "install failed"
133 emake DESTDIR="${D}" -C api/libsphinxclient install || die "install libsphinxclient failed"
134
135 dodoc doc/*
136
137 dodir /var/lib/sphinx
138 dodir /var/log/sphinx
139 dodir /var/run/sphinx
140
141 newinitd "${FILESDIR}"/searchd.rc searchd
142
143 if use test; then
144 insinto /usr/share/${PN}
145 doins -r test || die "install of test files failed."
146 fi
147 }