/[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 - (hide 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 scarabeus 1.5 # Copyright 1999-2011 Gentoo Foundation
2 reavertm 1.1 # Distributed under the terms of the GNU General Public License v2
3 jer 1.8 # $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 reavertm 1.1
5 scarabeus 1.5 EAPI=3
6 reavertm 1.1
7     MY_P=${PN}-core-${PV}
8 scarabeus 1.5 inherit base autotools
9 reavertm 1.1
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 jer 1.8 KEYWORDS="~alpha amd64 ~arm hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos"
17 reavertm 1.1 IUSE="debug doc static-libs threads"
18    
19     DEPEND="doc? ( >=app-doc/doxygen-1.4.2 )"
20     RDEPEND=""
21    
22 scarabeus 1.2 PATCHES=(
23     "${FILESDIR}/${P}-gcc44.patch"
24 grozin 1.4 "${FILESDIR}/${P}-doxygen.patch"
25 scarabeus 1.2 )
26    
27 reavertm 1.1 S="${WORKDIR}/${MY_P}"
28    
29 scarabeus 1.5 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 reavertm 1.1 src_configure() {
41 scarabeus 1.2 econf \
42     $(use_enable debug) \
43 reavertm 1.1 $(use_enable debug cnddebug) \
44     $(use_enable static-libs static) \
45     $(use_enable threads multithreading)
46     }
47    
48     src_compile() {
49 scarabeus 1.2 base_src_compile
50 reavertm 1.1 if use doc ; then
51     emake doxygen || die "making docs failed"
52     fi
53     }
54    
55     src_install() {
56 mr_bones_ 1.3 base_src_install
57 scarabeus 1.2 use doc && { dohtml "${S}"/doc/html/* ; }
58    
59 scarabeus 1.5 find "${D}" -type f -name '*.la' -exec rm -f {} + \
60     || die "la removal failed"
61 reavertm 1.1 }

  ViewVC Help
Powered by ViewVC 1.1.20