/[gentoo-x86]/app-misc/sphinx/sphinx-0.9.9.ebuild
Gentoo

Contents of /app-misc/sphinx/sphinx-0.9.9.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Sun Jul 11 12:01:01 2010 UTC (4 years, 2 months ago) by maekke
Branch: MAIN
Changes since 1.4: +2 -2 lines
x86 stable, bug #322751
(Portage version: 2.2_rc67/cvs/Linux x86_64)

1 # Copyright 1999-2010 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-misc/sphinx/sphinx-0.9.9.ebuild,v 1.4 2010/06/20 15:25:25 graaff Exp $
4
5 EAPI=2
6 inherit eutils autotools
7
8 MY_P=${P/_/-}
9
10 # This has been added by Gentoo, to explicitly version libstemmer.
11 # It is the date that http://snowball.tartarus.org/dist/libstemmer_c.tgz was
12 # fetched.
13 STEMMER_PV="20091122"
14 DESCRIPTION="Full-text search engine with support for MySQL and PostgreSQL"
15 HOMEPAGE="http://www.sphinxsearch.com/"
16 SRC_URI="http://sphinxsearch.com/downloads/${MY_P}.tar.gz
17 stemmer? ( mirror://gentoo/libstemmer_c-${STEMMER_PV}.tgz )"
18
19 LICENSE="GPL-2"
20 SLOT="0"
21 KEYWORDS="amd64 x86"
22 IUSE="debug id64 mysql postgres stemmer test"
23
24 RDEPEND="mysql? ( virtual/mysql )
25 postgres? ( dev-db/postgresql-base )"
26 DEPEND="${RDEPEND}
27 test? ( dev-lang/php )"
28
29 # Tests require a live database.
30 RESTRICT="test"
31
32 S=${WORKDIR}/${MY_P}
33
34 src_unpack() {
35 unpack ${MY_P}.tar.gz
36 if use stemmer; then
37 cd "${S}"
38 unpack libstemmer_c-${STEMMER_PV}.tgz
39 fi
40 }
41
42 src_prepare() {
43 eautoreconf
44 }
45
46 src_configure() {
47 econf \
48 --sysconfdir="/etc/${PN}" \
49 $(use_enable id64) \
50 $(use_with debug) \
51 $(use_with mysql) \
52 $(use_with postgres pgsql) \
53 $(use_with stemmer libstemmer)
54 }
55
56 src_compile() {
57 emake || die "emake failed"
58 }
59
60 src_install() {
61 emake DESTDIR="${D}" install || die "install failed"
62 dodoc doc/*
63
64 dodir /var/lib/sphinx
65 dodir /var/log/sphinx
66 dodir /var/run/sphinx
67
68 newinitd "${FILESDIR}"/searchd.rc searchd
69 }

  ViewVC Help
Powered by ViewVC 1.1.20