/[gentoo-x86]/sci-visualization/spyview/spyview-20111018.ebuild
Gentoo

Contents of /sci-visualization/spyview/spyview-20111018.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sat Aug 11 15:53:48 2012 UTC (2 years, 2 months ago) by dilfridge
Branch: MAIN
Changes since 1.1: +3 -1 lines
Fix build with gcc-4.7, bug 425368

(Portage version: 2.2.0_alpha120/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-visualization/spyview/spyview-20111018.ebuild,v 1.1 2012/01/21 21:10:09 dilfridge Exp $
4
5 EAPI=4
6
7 inherit base flag-o-matic eutils multilib
8
9 DESCRIPTION="Interactive plotting program"
10 HOMEPAGE="http://kavli.nano.tudelft.nl/~gsteele/spyview/"
11 SRC_URI="http://kavli.nano.tudelft.nl/~gsteele/${PN}/versions/${P}.tar.gz"
12
13 LICENSE="GPL-3"
14 SLOT="0"
15 KEYWORDS="~amd64 ~x86"
16 IUSE=""
17
18 COMMON_DEPEND="
19 >=dev-libs/boost-1.42
20 media-libs/netpbm
21 media-libs/libpng:1.2
22 x11-libs/fltk:1
23 app-text/ghostscript-gpl
24 virtual/glu
25 "
26
27 DEPEND="${COMMON_DEPEND}
28 sys-apps/groff"
29
30 RDEPEND="${COMMON_DEPEND}
31 sci-visualization/gnuplot"
32
33 src_unpack() {
34 default
35 mv -v "${WORKDIR}"/spyview-20* "${S}" || die
36 }
37
38 src_prepare() {
39 append-cflags $(fltk-config --cflags)
40 append-cxxflags $(fltk-config --cxxflags) -I/usr/include/netpbm
41
42 # append-ldflags $(fltk-config --ldflags)
43 # this one leads to an insane amount of warnings
44
45 append-ldflags -L$(dirname $(fltk-config --libs))
46
47 find "${S}" -name Makefile.in -exec sed -i -e 's:-mwindows -mconsole::g' {} +
48
49 base_src_prepare
50 }
51
52 src_configure() {
53 econf --datadir=/usr/share/spyview --docdir=/usr/share/doc/${PF}
54 }

  ViewVC Help
Powered by ViewVC 1.1.20