blob: ee3f51a098e5a4f3ee97c4624b77dc6f5fe165ce (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="2"
WX_GTK_VER="2.6"
inherit eutils fortran wxwidgets
DESCRIPTION="Scalable Performance Analysis of Large-Scale Applications"
HOMEPAGE="http://www.fz-juelich.de/jsc/scalasca/"
SRC_URI="http://www.fz-juelich.de/jsc/datapool/scalasca/${P}.tar.gz"
LICENSE="scalasca"
SLOT="0"
KEYWORDS="~x86"
IUSE="doc examples fortran mpi openmp wxwidgets"
DEPEND="mpi? ( virtual/mpi )
x11-libs/qt-core:4
x11-libs/qt-gui:4
wxwidgets? ( x11-libs/wxGTK:2.6 )"
RDEPEND="${DEPEND}"
FORTRAN="g77 gfortran ifc"
pkg_setup() {
use fortran && fortran_pkg_setup
use wxwidgets && wxwidgets_pkg_setup
}
src_prepare() {
sed -e "s:CFLAGS =.*:CFLAGS = ${CFLAGS}:" \
-e "s:CXXFLAGS =.*:CXXFLAGS = ${CXXFLAGS}:" \
-i mf/Makefile.defs.linux-gomp mf/Makefile.defs.linux-gnu \
|| die "sed CFLAGS,CXXFLAGS failed"
sed -e "s:DOCDIR =.*:DOCDIR = \${PREFIX}/share/doc/${PF}:" \
-i mf/common.defs \
|| die "sed DOCDIR failed"
}
src_configure() {
local myconf
use openmp || myconf="${myconf} --disable-omp"
use mpi || myconf="${myconf} --disable-mpi"
./configure --prefix=/usr ${myconf} --compiler=gnu || die "configure failed"
}
src_compile() {
#multi job build is broken
emake -j1 || die "emake failed"
}
src_install() {
#no DESTDIR support
emake install PREFIX="${D}"/usr || die "Installing failed"
#examples are always installed in /usr
cd "${D}"/usr
docinto example
dodoc -r example/*
rm -rf example
}
|