/[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.6 - (show annotations) (download)
Mon Jul 30 12:28:16 2012 UTC (7 years, 6 months ago) by tomka
Branch: MAIN
Changes since 1.5: +6 -3 lines
Fix library mess

(Portage version: 2.1.11.9/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.5 2012/07/04 06:27:07 jlec 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