/[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.5 - (hide annotations) (download)
Wed Jul 4 06:27:07 2012 UTC (7 years, 7 months ago) by jlec
Branch: MAIN
Changes since 1.4: +13 -13 lines
sci-mathematics/frobby: Fix for build with gcc-4.7, #424663; handle static-libs

(Portage version: 2.2.0_alpha115/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 jlec 1.5 # $Header: /var/cvsroot/gentoo-x86/sci-mathematics/frobby/frobby-0.9.0.ebuild,v 1.4 2012/05/18 16:32:13 tomka Exp $
4 tomka 1.1
5     EAPI=4
6    
7     inherit eutils
8    
9 jlec 1.5 DESCRIPTION="Software system and project for computations with monomial ideals"
10 tomka 1.1 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 jlec 1.5 IUSE="doc static-libs"
17 tomka 1.1
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 jlec 1.5 epatch \
26     "${FILESDIR}/${PN}-cflags-no-strip.patch" \
27     "${FILESDIR}/${PN}-gcc-4.7.patch"
28 tomka 1.4 # CXXFLAGS are called CPPFLAGS
29 jlec 1.5 sed "s/CPPFLAGS/CXXFLAGS/" -i Makefile || die
30 tomka 1.1 }
31    
32     src_compile() {
33 tomka 1.4 # Makefile uses the value of CXX which may be defined in /etc/env,
34     # breaking cross-compile.
35     CXX=$(tc-getCXX) emake
36     CXX=$(tc-getCXX) emake library
37 jlec 1.5 use doc && emake docPdf
38 tomka 1.1 }
39    
40     src_install() {
41     dobin bin/frobby
42 jlec 1.5 use static-libs && dolib.a bin/libfrobby.a
43    
44 tomka 1.1 insinto /usr/include
45     doins src/frobby.h
46 jlec 1.5
47 tomka 1.1 insinto /usr/include/"${PN}"
48     doins src/stdinc.h
49 jlec 1.5
50     use doc && dodoc bin/manual.pdf
51 tomka 1.1 }

  ViewVC Help
Powered by ViewVC 1.1.20