/[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.7 - (show annotations) (download)
Sat Feb 16 10:01:56 2013 UTC (6 years, 11 months ago) by tomka
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +1 -1 lines
FILE REMOVED
drop old, update Makefile patch (bugs 457722, 457720)

(Portage version: 2.1.11.52/cvs/Linux x86_64, signed Manifest commit with key 0x89DEB219565C32BC)

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.6 2012/07/30 12:28:16 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-soname.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 MODE=shared CXX=$(tc-getCXX) emake library
37 use static-libs && CXX=$(tc-getCXX) emake library
38 use doc && emake docPdf
39 }
40
41 src_install() {
42 dobin bin/frobby
43 dolib.so bin/libfrobby.so
44 dosym libfrobby.so "${EPREFIX}/usr/$(get_libdir)/libfrobby.so.0"
45 use static-libs && dolib.a bin/libfrobby.a
46
47 insinto /usr/include
48 doins src/frobby.h
49
50 insinto /usr/include/"${PN}"
51 doins src/stdinc.h
52
53 use doc && dodoc bin/manual.pdf
54 }

  ViewVC Help
Powered by ViewVC 1.1.20