/[gentoo-x86]/sci-physics/clhep/clhep-2.1.2.2.ebuild
Gentoo

Contents of /sci-physics/clhep/clhep-2.1.2.2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (hide annotations) (download)
Tue Jun 26 06:09:11 2012 UTC (2 years, 5 months ago) by jlec
Branch: MAIN
Changes since 1.2: +10 -6 lines
sci-physics/clhep: Add fix for automake-1.12, #423559; move to autotools-utils

(Portage version: 2.2.0_alpha113/cvs/Linux x86_64)

1 bicatali 1.1 # Copyright 1999-2012 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 jlec 1.3 # $Header: /var/cvsroot/gentoo-x86/sci-physics/clhep/clhep-2.1.2.2.ebuild,v 1.2 2012/06/06 04:37:11 heroxbd Exp $
4 bicatali 1.1
5     EAPI=4
6 jlec 1.3
7     AUTOTOOLS_AUTORECONF=yes
8    
9     inherit autotools-utils
10 bicatali 1.1
11     DESCRIPTION="High Energy Physics C++ library"
12     HOMEPAGE="http://www.cern.ch/clhep"
13     SRC_URI="http://proj-clhep.web.cern.ch/proj-clhep/DISTRIBUTION/tarFiles/${P}.tgz"
14     LICENSE="public-domain"
15     SLOT="2"
16 heroxbd 1.2 KEYWORDS="~amd64 ~hppa ~ppc ~x86 ~amd64-linux ~x86-linux"
17 bicatali 1.1
18     IUSE="exceptions static-libs"
19     RDEPEND=""
20     DEPEND="${RDEPEND}"
21    
22     S="${WORKDIR}/${PV}/CLHEP"
23    
24 jlec 1.3 PATCHES=( "${FILESDIR}"/${P}-automake-1.12.patch )
25    
26 bicatali 1.1 src_prepare() {
27     local d
28     for d in $(find . -name configure.ac); do
29     # respect user flags and fix some compilers stuff
30     sed -i \
31     -e 's:^g++):*g++):g' \
32     -e 's:^icc):icc|icpc):g' \
33     -e '/AM_CXXFLAGS=/s:-O ::g' \
34     ${d} || die
35     # need to rebuild because original configurations
36     # have buggy detection
37     done
38     for d in $(find . -name Makefile.am | xargs grep -l ": %\.cc"); do
39     sed -i \
40     -e 's|: %\.cc|: %\.cc \$(shareddir)|' \
41     -e 's|all-local: \$(shareddir)|all-local: |' \
42     ${d} || die
43     # fixing parallel build
44     done
45 jlec 1.3 autotools-utils_src_prepare
46 bicatali 1.1 }
47    
48     src_configure() {
49 jlec 1.3 local myeconfargs=( $(use_enable exceptions) )
50     autotools-utils_src_configure
51 bicatali 1.1 }

  ViewVC Help
Powered by ViewVC 1.1.20