/[gentoo-x86]/sci-mathematics/frobby/frobby-0.9.0.ebuild
Gentoo

Contents of /sci-mathematics/frobby/frobby-0.9.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (hide annotations) (download)
Fri May 18 16:32:13 2012 UTC (7 years, 9 months ago) by tomka
Branch: MAIN
Changes since 1.3: +8 -4 lines
Fix direct g++ calls and CXXFLAGS (bug 415975).  x86 stable.

(Portage version: 2.1.10.62/cvs/Linux x86_64)

1 tomka 1.1 # Copyright 1999-2012 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 tomka 1.4 # $Header: /var/cvsroot/gentoo-x86/sci-mathematics/frobby/frobby-0.9.0.ebuild,v 1.3 2012/05/18 08:05:07 ago Exp $
4 tomka 1.1
5     EAPI=4
6    
7     inherit eutils
8    
9     DESCRIPTION="Frobby is a software system and project for computations with monomial ideals"
10     HOMEPAGE="http://www.broune.com/frobby/"
11     SRC_URI="http://www.broune.com/frobby/frobby_v${PV}.tar.gz"
12    
13     LICENSE="GPL-2"
14     SLOT="0"
15 tomka 1.4 KEYWORDS="amd64 x86"
16 tomka 1.1 IUSE="doc"
17    
18     RDEPEND="dev-libs/gmp[cxx]"
19     DEPEND="${RDEPEND}
20     doc? ( virtual/latex-base )"
21    
22     S="${WORKDIR}/frobby_v${PV}"
23    
24     src_prepare() {
25     epatch "${FILESDIR}/${PN}-cflags-no-strip.patch"
26 tomka 1.4 # CXXFLAGS are called CPPFLAGS
27     sed "s/CPPFLAGS/CXXFLAGS/" -i Makefile
28 tomka 1.1 }
29    
30     src_compile() {
31 tomka 1.4 # Makefile uses the value of CXX which may be defined in /etc/env,
32     # breaking cross-compile.
33     CXX=$(tc-getCXX) emake
34     CXX=$(tc-getCXX) emake library
35 tomka 1.1 if use doc; then
36 tomka 1.2 emake docPdf
37 tomka 1.1 fi
38     }
39    
40     src_install() {
41     dobin bin/frobby
42     dolib.a bin/libfrobby.a
43     insinto /usr/include
44     doins src/frobby.h
45     dodir /usr/include/"${PN}"
46     insinto /usr/include/"${PN}"
47     doins src/stdinc.h
48     if use doc; then
49     dodoc bin/manual.pdf
50     fi
51     }

  ViewVC Help
Powered by ViewVC 1.1.20