blob: 16fcd3aaaf51a371433b037ce0e697ab95113d5e (
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
|
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=5
inherit fortran-2 multilib toolchain-funcs
DESCRIPTION="a compiler cache for fortran"
HOMEPAGE="http://people.irisa.fr/Edouard.Canot/f90cache/"
SRC_URI="http://people.irisa.fr/Edouard.Canot/${PN}/${P}.tar.bz2"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~x86"
IUSE=""
DEPEND=""
RDEPEND="dev-util/ccache"
src_prepare() {
sed -i -e '/^CFLAGS/d' -e 's/CFLAGS/LDFLAGS/' Makefile.in || die
}
src_install() {
#make install does too much magic
dodoc README CHANGES
doman f90cache.1
dohtml web/*
dobin f90cache
#we depend on ccache, put links in there so that portage uses them
#TODO improve this
dosym "/usr/bin/f90cache" "${ROOT}/usr/$(get_libdir)/ccache/bin/gfortran"
}
pkg_postinst() {
elog "Please add F90CACHE_DIR=\"${ROOT%/}/var/tmp/f90cache\""
elog "to your make.conf otherwise f90cache files end up in"
elog "home of the user executing portage"
}
|