/[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.5 Revision 1.6
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.5 2012/07/04 06:27:07 jlec Exp $ 3# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/frobby/Attic/frobby-0.9.0.ebuild,v 1.6 2012/07/30 12:28:16 tomka Exp $
4 4
5EAPI=4 5EAPI=4
6 6
7inherit eutils 7inherit eutils
8 8
21 21
22S="${WORKDIR}/frobby_v${PV}" 22S="${WORKDIR}/frobby_v${PV}"
23 23
24src_prepare() { 24src_prepare() {
25 epatch \ 25 epatch \
26 "${FILESDIR}/${PN}-cflags-no-strip.patch" \ 26 "${FILESDIR}/${PN}-cflags-no-strip-soname.patch" \
27 "${FILESDIR}/${PN}-gcc-4.7.patch" 27 "${FILESDIR}/${PN}-gcc-4.7.patch"
28 # CXXFLAGS are called CPPFLAGS 28 # CXXFLAGS are called CPPFLAGS
29 sed "s/CPPFLAGS/CXXFLAGS/" -i Makefile || die 29 sed "s/CPPFLAGS/CXXFLAGS/" -i Makefile || die
30} 30}
31 31
32src_compile() { 32src_compile() {
33 # 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,
34 # breaking cross-compile. 34 # breaking cross-compile.
35 CXX=$(tc-getCXX) emake 35 CXX=$(tc-getCXX) emake
36 CXX=$(tc-getCXX) emake library 36 MODE=shared CXX=$(tc-getCXX) emake library
37 use static-libs && CXX=$(tc-getCXX) emake library
37 use doc && emake docPdf 38 use doc && emake docPdf
38} 39}
39 40
40src_install() { 41src_install() {
41 dobin bin/frobby 42 dobin bin/frobby
43 dolib.so bin/libfrobby.so
44 dosym libfrobby.so "${EPREFIX}/usr/$(get_libdir)/libfrobby.so.0"
42 use static-libs && dolib.a bin/libfrobby.a 45 use static-libs && dolib.a bin/libfrobby.a
43 46
44 insinto /usr/include 47 insinto /usr/include
45 doins src/frobby.h 48 doins src/frobby.h
46 49

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

  ViewVC Help
Powered by ViewVC 1.1.20