Gentoo Archives: gentoo-commits

From: "Gordon Malm (gengor)" <gengor@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-misc/sphinx: ChangeLog sphinx-0.9.9.ebuild
Date: Mon, 28 Dec 2009 22:39:38
Message-Id: E1NPOFT-000452-RD@stork.gentoo.org
1 gengor 09/12/28 22:39:35
2
3 Modified: ChangeLog
4 Added: sphinx-0.9.9.ebuild
5 Log:
6 Version bump =app-misc/sphinx-0.9.9
7 (Portage version: 2.1.6.13/cvs/Linux i686)
8
9 Revision Changes Path
10 1.21 app-misc/sphinx/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-misc/sphinx/ChangeLog?rev=1.21&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-misc/sphinx/ChangeLog?rev=1.21&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-misc/sphinx/ChangeLog?r1=1.20&r2=1.21
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/app-misc/sphinx/ChangeLog,v
19 retrieving revision 1.20
20 retrieving revision 1.21
21 diff -u -r1.20 -r1.21
22 --- ChangeLog 22 Nov 2009 22:04:50 -0000 1.20
23 +++ ChangeLog 28 Dec 2009 22:39:35 -0000 1.21
24 @@ -1,6 +1,11 @@
25 # ChangeLog for app-misc/sphinx
26 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/app-misc/sphinx/ChangeLog,v 1.20 2009/11/22 22:04:50 robbat2 Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/app-misc/sphinx/ChangeLog,v 1.21 2009/12/28 22:39:35 gengor Exp $
29 +
30 +*sphinx-0.9.9 (28 Dec 2009)
31 +
32 + 28 Dec 2009; Gordon Malm <gengor@g.o> +sphinx-0.9.9.ebuild:
33 + Version bump.
34
35 *sphinx-0.9.9_rc2-r2 (22 Nov 2009)
36
37
38
39
40 1.1 app-misc/sphinx/sphinx-0.9.9.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-misc/sphinx/sphinx-0.9.9.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-misc/sphinx/sphinx-0.9.9.ebuild?rev=1.1&content-type=text/plain
44
45 Index: sphinx-0.9.9.ebuild
46 ===================================================================
47 # Copyright 1999-2009 Gentoo Foundation
48 # Distributed under the terms of the GNU General Public License v2
49 # $Header: /var/cvsroot/gentoo-x86/app-misc/sphinx/sphinx-0.9.9.ebuild,v 1.1 2009/12/28 22:39:35 gengor Exp $
50
51 EAPI=2
52 inherit eutils autotools
53
54 MY_P=${P/_/-}
55
56 # This has been added by Gentoo, to explicitly version libstemmer.
57 # It is the date that http://snowball.tartarus.org/dist/libstemmer_c.tgz was
58 # fetched.
59 STEMMER_PV="20091122"
60 DESCRIPTION="Full-text search engine with support for MySQL and PostgreSQL"
61 HOMEPAGE="http://www.sphinxsearch.com/"
62 SRC_URI="http://sphinxsearch.com/downloads/${MY_P}.tar.gz
63 stemmer? ( mirror://gentoo/libstemmer_c-${STEMMER_PV}.tgz )"
64
65 LICENSE="GPL-2"
66 SLOT="0"
67 KEYWORDS="~amd64 ~x86"
68 IUSE="debug id64 mysql postgres stemmer test"
69
70 RDEPEND="mysql? ( virtual/mysql )
71 postgres? ( virtual/postgresql-base )"
72 DEPEND="${RDEPEND}
73 test? ( dev-lang/php )"
74
75 S=${WORKDIR}/${MY_P}
76
77 src_unpack() {
78 unpack ${MY_P}.tar.gz
79 if use stemmer; then
80 cd "${S}"
81 unpack libstemmer_c-${STEMMER_PV}.tgz
82 fi
83 }
84
85 src_prepare() {
86 eautoreconf
87 }
88
89 src_configure() {
90 econf \
91 --sysconfdir="/etc/${PN}" \
92 $(use_enable id64) \
93 $(use_with debug) \
94 $(use_with mysql) \
95 $(use_with postgres pgsql) \
96 $(use_with stemmer libstemmer)
97 }
98
99 src_compile() {
100 emake || die "emake failed"
101 }
102
103 src_install() {
104 emake DESTDIR="${D}" install || die "install failed"
105 dodoc doc/*
106
107 dodir /var/lib/sphinx
108 dodir /var/log/sphinx
109 dodir /var/run/sphinx
110
111 newinitd "${FILESDIR}"/searchd.rc searchd
112 }