Gentoo Archives: gentoo-commits

From: Christoph Junghans <junghans@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: dev-util/f90cache/
Date: Wed, 12 Apr 2017 02:19:38
Message-Id: 1491963567.e91665803f697f31dc3b36b90ad20a3c9320c67c.junghans@gentoo
1 commit: e91665803f697f31dc3b36b90ad20a3c9320c67c
2 Author: Christoph Junghans <ottxor <AT> gentoo <DOT> org>
3 AuthorDate: Wed Apr 12 02:19:09 2017 +0000
4 Commit: Christoph Junghans <junghans <AT> gentoo <DOT> org>
5 CommitDate: Wed Apr 12 02:19:27 2017 +0000
6 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=e9166580
7
8 dev-util/f90cache: version bump
9
10 Package-Manager: Portage-2.3.3, Repoman-2.3.1
11
12 dev-util/f90cache/f90cache-0.99.ebuild | 37 ++++++++++++++++++++++++++++++++++
13 1 file changed, 37 insertions(+)
14
15 diff --git a/dev-util/f90cache/f90cache-0.99.ebuild b/dev-util/f90cache/f90cache-0.99.ebuild
16 new file mode 100644
17 index 000000000..6012e0ae6
18 --- /dev/null
19 +++ b/dev-util/f90cache/f90cache-0.99.ebuild
20 @@ -0,0 +1,37 @@
21 +# Copyright 1999-2017 Gentoo Foundation
22 +# Distributed under the terms of the GNU General Public License v2
23 +
24 +EAPI=6
25 +
26 +inherit fortran-2 multilib toolchain-funcs
27 +
28 +DESCRIPTION="a compiler cache for fortran"
29 +HOMEPAGE="http://people.irisa.fr/Edouard.Canot/f90cache/"
30 +SRC_URI="http://people.irisa.fr/Edouard.Canot/${PN}/${P}.tar.bz2"
31 +
32 +LICENSE="GPL-3"
33 +SLOT="0"
34 +KEYWORDS="~x86 ~amd64"
35 +IUSE=""
36 +
37 +DEPEND=""
38 +RDEPEND="dev-util/ccache"
39 +
40 +src_prepare() {
41 + default
42 + sed -i -e '/OBJS/s/CFLAGS/LDFLAGS/' -e '/strip/d' Makefile.in || die
43 +}
44 +
45 +src_install() {
46 + default
47 +
48 + #we depend on ccache, put links in there so that portage find it
49 + #TODO improve this
50 + dosym "/usr/bin/f90cache" "${ROOT}/usr/$(get_libdir)/ccache/bin/gfortran"
51 +}
52 +
53 +pkg_postinst() {
54 + elog "Please add F90CACHE_DIR=\"${ROOT%/}/var/tmp/f90cache\""
55 + elog "to your make.conf otherwise f90cache files end up in"
56 + elog "home of the user executing portage"
57 +}