summaryrefslogtreecommitdiff
blob: bdf30379cfdf7674a3a6ff52fa040e83cf221dd2 (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
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

DIST_AUTHOR=KGB
DIST_VERSION=1.24
inherit perl-module toolchain-funcs

DESCRIPTION="Facilitate use of FORTRAN from Perl/XS code"

SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux"

RDEPEND="
	dev-perl/File-Which
	virtual/perl-Scalar-List-Utils
	virtual/perl-Text-ParseWords
	virtual/fortran
"
BDEPEND="${RDEPEND}
	virtual/perl-ExtUtils-MakeMaker
"
src_test() {
	# https://github.com/PDLPorters/extutils-f77/issues/10
	tc-export F77
	mkdir -p "${T}/bin" || die "Can't make ${T}/bin"
	ln -vs "$(type -p "${F77}")" "${T}/bin/gfortran" || die "Can't make gfortran symlink"
	PATH="${T}/bin:$PATH" perl-module_src_test
}