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