/[gentoo-x86]/sci-libs/coinor-cppad/coinor-cppad-20140519-r1.ebuild
Gentoo

Contents of /sci-libs/coinor-cppad/coinor-cppad-20140519-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Fri Oct 31 09:08:43 2014 UTC (5 years, 5 months ago) by jlec
Branch: MAIN
CVS Tags: HEAD
sci-libs/coinor-cppad: Fix incomptibility with /bin/sh -> dash; #527496; fix boost detection

(Portage version: 2.2.14/cvs/Linux x86_64, signed Manifest commit with key B9D4F231BD1558AB!)

1 jlec 1.1 # Copyright 1999-2014 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3     # $Header: /var/cvsroot/gentoo-x86/sci-libs/coinor-cppad/coinor-cppad-20140519.ebuild,v 1.1 2014/05/21 18:25:56 bicatali Exp $
4    
5     EAPI=5
6    
7     AUTOTOOLS_AUTORECONF=yes
8    
9     inherit autotools-utils multilib
10    
11     MYP=cppad-${PV}
12    
13     DESCRIPTION="COIN-OR C++ Algorithmic Differentiation"
14     HOMEPAGE="https://projects.coin-or.org/CppAD/"
15     SRC_URI="http://www.coin-or.org/download/source/CppAD/${MYP}.gpl.tgz"
16    
17     LICENSE="GPL-3"
18     SLOT="0"
19     KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
20     IUSE="doc examples"
21    
22     RDEPEND="
23     dev-libs/boost[threads]
24     sci-libs/adolc:0=
25     sci-libs/ipopt:0="
26     DEPEND="${RDEPEND}
27     virtual/pkgconfig
28     doc? ( app-doc/doxygen[dot] )"
29    
30     S="${WORKDIR}/${MYP}"
31    
32     PATCHES=(
33     "${FILESDIR}"/${P}-dash.patch
34     "${FILESDIR}"/${P}-boost.patch
35     )
36    
37     src_configure() {
38     local myeconfargs=( $(use doc Documentation) )
39     autotools-utils_src_configure CXX_FLAGS="${CXXFLAGS}"
40     }
41    
42     src_compile() {
43     autotools-utils_src_compile
44     if use doc; then
45     ./build.sh doxygen || die
46     fi
47     }
48    
49     src_test() {
50     autotools-utils_src_test check test
51     }
52    
53     src_install() {
54     use doc && HTML_DOC=( "${BUILD_DIR}"/doxydocs/html/. )
55     autotools-utils_src_install
56     if use examples; then
57     insinto /usr/share/doc/${PF}/examples
58     doins -r example/*
59     fi
60     }

  ViewVC Help
Powered by ViewVC 1.1.20