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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Thu Jul 18 12:51:07 2013 UTC (6 years, 6 months ago) by tomka
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +2 -2 lines
Fix wrong usage of EPREFIX

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

1 # Copyright 1999-2013 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-r1.ebuild,v 1.3 2013/02/15 19:08:04 ago 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 "${FILESDIR}/${PN}-gmp-5.1.patch"
29 # CXXFLAGS are called CPPFLAGS
30 sed "s/CPPFLAGS/CXXFLAGS/" -i Makefile || die
31 }
32
33 src_compile() {
34 # Makefile uses the value of CXX which may be defined in /etc/env,
35 # breaking cross-compile.
36 CXX=$(tc-getCXX) emake
37 MODE=shared CXX=$(tc-getCXX) emake library
38 use static-libs && CXX=$(tc-getCXX) emake library
39 use doc && emake docPdf
40 }
41
42 src_install() {
43 dobin bin/frobby
44 dolib.so bin/libfrobby.so
45 dosym libfrobby.so "${PREFIX}/usr/$(get_libdir)/libfrobby.so.0"
46 use static-libs && dolib.a bin/libfrobby.a
47
48 insinto /usr/include
49 doins src/frobby.h
50
51 insinto /usr/include/"${PN}"
52 doins src/stdinc.h
53
54 use doc && dodoc bin/manual.pdf
55 }

  ViewVC Help
Powered by ViewVC 1.1.20