/[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 - (show 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 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $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
5 EAPI=4
6
7 inherit eutils
8
9 DESCRIPTION="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 KEYWORDS="amd64 x86"
16 IUSE="doc static-libs"
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 \
26 "${FILESDIR}/${PN}-cflags-no-strip.patch" \
27 "${FILESDIR}/${PN}-gcc-4.7.patch"
28 # CXXFLAGS are called CPPFLAGS
29 sed "s/CPPFLAGS/CXXFLAGS/" -i Makefile || die
30 }
31
32 src_compile() {
33 # 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 use doc && emake docPdf
38 }
39
40 src_install() {
41 dobin bin/frobby
42 use static-libs && dolib.a bin/libfrobby.a
43
44 insinto /usr/include
45 doins src/frobby.h
46
47 insinto /usr/include/"${PN}"
48 doins src/stdinc.h
49
50 use doc && dodoc bin/manual.pdf
51 }

  ViewVC Help
Powered by ViewVC 1.1.20