/[gentoo-x86]/dev-cpp/clucene/clucene-0.9.21b-r1.ebuild
Gentoo

Contents of /dev-cpp/clucene/clucene-0.9.21b-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Fri Jan 21 14:35:53 2011 UTC (3 years, 7 months ago) by jer
Branch: MAIN
Changes since 1.7: +2 -2 lines
Stable for HPPA (bug #350610).

(Portage version: 2.2.0_alpha18/cvs/Linux i686)

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-cpp/clucene/clucene-0.9.21b-r1.ebuild,v 1.7 2011/01/15 14:28:55 maekke Exp $
4
5 EAPI=3
6
7 MY_P=${PN}-core-${PV}
8 inherit base autotools
9
10 DESCRIPTION="High-performance, full-featured text search engine based off of lucene in C++"
11 HOMEPAGE="http://clucene.sourceforge.net/"
12 SRC_URI="mirror://sourceforge/clucene/${MY_P}.tar.bz2"
13
14 LICENSE="|| ( Apache-2.0 LGPL-2.1 )"
15 SLOT="1"
16 KEYWORDS="~alpha amd64 ~arm hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos"
17 IUSE="debug doc static-libs threads"
18
19 DEPEND="doc? ( >=app-doc/doxygen-1.4.2 )"
20 RDEPEND=""
21
22 PATCHES=(
23 "${FILESDIR}/${P}-gcc44.patch"
24 "${FILESDIR}/${P}-doxygen.patch"
25 )
26
27 S="${WORKDIR}/${MY_P}"
28
29 src_prepare() {
30 base_src_prepare
31
32 # fix wrong aclocal_amflags
33 sed -i \
34 -e '/ACLOCAL_AMFLAGS/d' \
35 Makefile.am || die
36
37 AT_M4DIR='-I m4' eautoreconf
38 }
39
40 src_configure() {
41 econf \
42 $(use_enable debug) \
43 $(use_enable debug cnddebug) \
44 $(use_enable static-libs static) \
45 $(use_enable threads multithreading)
46 }
47
48 src_compile() {
49 base_src_compile
50 if use doc ; then
51 emake doxygen || die "making docs failed"
52 fi
53 }
54
55 src_install() {
56 base_src_install
57 use doc && { dohtml "${S}"/doc/html/* ; }
58
59 find "${D}" -type f -name '*.la' -exec rm -f {} + \
60 || die "la removal failed"
61 }

  ViewVC Help
Powered by ViewVC 1.1.20