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: ChangeLog sphinx-0.9.9_rc2-r1.ebuild
Date: Thu, 05 Nov 2009 15:42:03
Message-Id: E1N64TG-0001eo-16@stork.gentoo.org
1 graaff 09/11/05 15:41:58
2
3 Modified: ChangeLog
4 Added: sphinx-0.9.9_rc2-r1.ebuild
5 Log:
6 Belated commit: add init.d file for managing searchd.
7 (Portage version: 2.1.6.13/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.19 app-misc/sphinx/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-misc/sphinx/ChangeLog?rev=1.19&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-misc/sphinx/ChangeLog?rev=1.19&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-misc/sphinx/ChangeLog?r1=1.18&r2=1.19
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/app-misc/sphinx/ChangeLog,v
19 retrieving revision 1.18
20 retrieving revision 1.19
21 diff -u -r1.18 -r1.19
22 --- ChangeLog 23 Jul 2009 21:48:24 -0000 1.18
23 +++ ChangeLog 5 Nov 2009 15:41:57 -0000 1.19
24 @@ -1,6 +1,12 @@
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.18 2009/07/23 21:48:24 gengor Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/app-misc/sphinx/ChangeLog,v 1.19 2009/11/05 15:41:57 graaff Exp $
29 +
30 +*sphinx-0.9.9_rc2-r1 (26 Sep 2009)
31 +
32 + 26 Sep 2009; Hans de Graaff <graaff@g.o>
33 + +sphinx-0.9.9_rc2-r1.ebuild, +files/searchd.rc:
34 + Add init.d script to start and stop sphinx' searchd.
35
36 *sphinx-0.9.9_rc2 (23 Jul 2009)
37
38
39
40
41 1.1 app-misc/sphinx/sphinx-0.9.9_rc2-r1.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-misc/sphinx/sphinx-0.9.9_rc2-r1.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-misc/sphinx/sphinx-0.9.9_rc2-r1.ebuild?rev=1.1&content-type=text/plain
45
46 Index: sphinx-0.9.9_rc2-r1.ebuild
47 ===================================================================
48 # Copyright 1999-2009 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/app-misc/sphinx/sphinx-0.9.9_rc2-r1.ebuild,v 1.1 2009/11/05 15:41:57 graaff Exp $
51
52 inherit eutils autotools
53
54 MY_P=${P/_/-}
55
56 DESCRIPTION="Full-text search engine with support for MySQL and PostgreSQL"
57 HOMEPAGE="http://www.sphinxsearch.com/"
58 SRC_URI="http://sphinxsearch.com/downloads/${MY_P}.tar.gz
59 stemmer? ( http://snowball.tartarus.org/dist/libstemmer_c.tgz )"
60 RESTRICT="mirror"
61
62 LICENSE="GPL-2"
63 SLOT="0"
64 KEYWORDS="~amd64 ~x86"
65 IUSE="debug id64 mysql postgres stemmer test"
66
67 DEPEND="mysql? ( virtual/mysql )
68 postgres? ( virtual/postgresql-base )"
69 RDEPEND="${DEPEND}
70 test? ( dev-lang/php )"
71
72 S=${WORKDIR}/${MY_P}
73
74 src_unpack() {
75 unpack ${MY_P}.tar.gz
76 if use stemmer; then
77 cd "${S}"
78 unpack libstemmer_c.tgz
79 fi
80 cd "${S}"
81 eautoreconf
82 }
83
84 src_compile() {
85 econf \
86 --sysconfdir="/etc/${PN}" \
87 $(use_enable id64) \
88 $(use_with debug) \
89 $(use_with mysql) \
90 $(use_with postgres pgsql) \
91 $(use_with stemmer libstemmer)
92
93 emake || die "emake failed"
94 }
95
96 src_install() {
97 emake DESTDIR="${D}" install || die "install failed"
98 dodoc doc/*
99
100 dodir /var/lib/sphinx
101 dodir /var/log/sphinx
102 dodir /var/run/sphinx
103
104 newinitd "${FILESDIR}"/searchd.rc searchd
105 }