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