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

Diff of /sci-mathematics/frobby/frobby-0.9.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.4 Revision 1.5
1# Copyright 1999-2012 Gentoo Foundation 1# Copyright 1999-2012 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/frobby/Attic/frobby-0.9.0.ebuild,v 1.4 2012/05/18 16:32:13 tomka Exp $ 3# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/frobby/Attic/frobby-0.9.0.ebuild,v 1.5 2012/07/04 06:27:07 jlec Exp $
4 4
5EAPI=4 5EAPI=4
6 6
7inherit eutils 7inherit eutils
8 8
9DESCRIPTION="Frobby is a software system and project for computations with monomial ideals" 9DESCRIPTION="Software system and project for computations with monomial ideals"
10HOMEPAGE="http://www.broune.com/frobby/" 10HOMEPAGE="http://www.broune.com/frobby/"
11SRC_URI="http://www.broune.com/frobby/frobby_v${PV}.tar.gz" 11SRC_URI="http://www.broune.com/frobby/frobby_v${PV}.tar.gz"
12 12
13LICENSE="GPL-2" 13LICENSE="GPL-2"
14SLOT="0" 14SLOT="0"
15KEYWORDS="amd64 x86" 15KEYWORDS="amd64 x86"
16IUSE="doc" 16IUSE="doc static-libs"
17 17
18RDEPEND="dev-libs/gmp[cxx]" 18RDEPEND="dev-libs/gmp[cxx]"
19DEPEND="${RDEPEND} 19DEPEND="${RDEPEND}
20 doc? ( virtual/latex-base )" 20 doc? ( virtual/latex-base )"
21 21
22S="${WORKDIR}/frobby_v${PV}" 22S="${WORKDIR}/frobby_v${PV}"
23 23
24src_prepare() { 24src_prepare() {
25 epatch \
25 epatch "${FILESDIR}/${PN}-cflags-no-strip.patch" 26 "${FILESDIR}/${PN}-cflags-no-strip.patch" \
27 "${FILESDIR}/${PN}-gcc-4.7.patch"
26 # CXXFLAGS are called CPPFLAGS 28 # CXXFLAGS are called CPPFLAGS
27 sed "s/CPPFLAGS/CXXFLAGS/" -i Makefile 29 sed "s/CPPFLAGS/CXXFLAGS/" -i Makefile || die
28} 30}
29 31
30src_compile() { 32src_compile() {
31 # Makefile uses the value of CXX which may be defined in /etc/env, 33 # Makefile uses the value of CXX which may be defined in /etc/env,
32 # breaking cross-compile. 34 # breaking cross-compile.
33 CXX=$(tc-getCXX) emake 35 CXX=$(tc-getCXX) emake
34 CXX=$(tc-getCXX) emake library 36 CXX=$(tc-getCXX) emake library
35 if use doc; then 37 use doc && emake docPdf
36 emake docPdf
37 fi
38} 38}
39 39
40src_install() { 40src_install() {
41 dobin bin/frobby 41 dobin bin/frobby
42 dolib.a bin/libfrobby.a 42 use static-libs && dolib.a bin/libfrobby.a
43
43 insinto /usr/include 44 insinto /usr/include
44 doins src/frobby.h 45 doins src/frobby.h
45 dodir /usr/include/"${PN}" 46
46 insinto /usr/include/"${PN}" 47 insinto /usr/include/"${PN}"
47 doins src/stdinc.h 48 doins src/stdinc.h
48 if use doc; then 49
49 dodoc bin/manual.pdf 50 use doc && dodoc bin/manual.pdf
50 fi
51} 51}

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

  ViewVC Help
Powered by ViewVC 1.1.20