summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Cummings <mcummings@gentoo.org>2007-04-16 16:39:43 +0000
committerMichael Cummings <mcummings@gentoo.org>2007-04-16 16:39:43 +0000
commit6c6e768731f18c1b6a3d7bab54d4285cb5307f02 (patch)
tree3ef0c449b18f327960f7956105165ab42262e1bc /dev-perl/ExtUtils-F77
parentAdd intltool dep; bug #173291 (diff)
downloadgentoo-2-6c6e768731f18c1b6a3d7bab54d4285cb5307f02.tar.gz
gentoo-2-6c6e768731f18c1b6a3d7bab54d4285cb5307f02.tar.bz2
gentoo-2-6c6e768731f18c1b6a3d7bab54d4285cb5307f02.zip
Bump and patch for gcc-4.1 and greater so that gfortran is seen
(Portage version: 2.1.2.3)
Diffstat (limited to 'dev-perl/ExtUtils-F77')
-rw-r--r--dev-perl/ExtUtils-F77/ChangeLog8
-rw-r--r--dev-perl/ExtUtils-F77/ExtUtils-F77-1.15-r1.ebuild22
-rw-r--r--dev-perl/ExtUtils-F77/files/digest-ExtUtils-F77-1.15-r13
-rw-r--r--dev-perl/ExtUtils-F77/files/perl-ExtUtils-F77-1.15-alt-g77.patch50
4 files changed, 82 insertions, 1 deletions
diff --git a/dev-perl/ExtUtils-F77/ChangeLog b/dev-perl/ExtUtils-F77/ChangeLog
index b961ec72918c..1486d1222e28 100644
--- a/dev-perl/ExtUtils-F77/ChangeLog
+++ b/dev-perl/ExtUtils-F77/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-perl/ExtUtils-F77
# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-perl/ExtUtils-F77/ChangeLog,v 1.28 2007/01/15 17:44:22 mcummings Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-perl/ExtUtils-F77/ChangeLog,v 1.29 2007/04/16 16:39:43 mcummings Exp $
+
+*ExtUtils-F77-1.15-r1 (16 Apr 2007)
+
+ 16 Apr 2007; Michael Cummings <mcummings@gentoo.org>
+ +files/perl-ExtUtils-F77-1.15-alt-g77.patch, +ExtUtils-F77-1.15-r1.ebuild:
+ Bump and patch for gcc-4.1 and greater so that gfortran is seen
15 Jan 2007; Michael Cummings <mcummings@gentoo.org>
-ExtUtils-F77-1.14-r1.ebuild, ExtUtils-F77-1.15.ebuild:
diff --git a/dev-perl/ExtUtils-F77/ExtUtils-F77-1.15-r1.ebuild b/dev-perl/ExtUtils-F77/ExtUtils-F77-1.15-r1.ebuild
new file mode 100644
index 000000000000..b1fc61f7dcec
--- /dev/null
+++ b/dev-perl/ExtUtils-F77/ExtUtils-F77-1.15-r1.ebuild
@@ -0,0 +1,22 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-perl/ExtUtils-F77/ExtUtils-F77-1.15-r1.ebuild,v 1.1 2007/04/16 16:39:43 mcummings Exp $
+
+inherit perl-module eutils
+
+DESCRIPTION="Facilitate use of FORTRAN from Perl/XS code"
+HOMEPAGE="http://search.cpan.org/~kgb/"
+SRC_URI="mirror://cpan/authors/id/K/KG/KGB/${P}.tar.gz"
+
+LICENSE="|| ( Artistic GPL-2 )"
+SLOT="0"
+KEYWORDS="alpha amd64 arm hppa ia64 m68k mips ppc s390 sh sparc x86"
+IUSE=""
+
+DEPEND="dev-lang/perl"
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ has_version '>sys-devel/gcc-4.0.9999' && epatch ${FILESDIR}/perl-ExtUtils-F77-1.15-alt-g77.patch
+}
diff --git a/dev-perl/ExtUtils-F77/files/digest-ExtUtils-F77-1.15-r1 b/dev-perl/ExtUtils-F77/files/digest-ExtUtils-F77-1.15-r1
new file mode 100644
index 000000000000..20b46b8c1be9
--- /dev/null
+++ b/dev-perl/ExtUtils-F77/files/digest-ExtUtils-F77-1.15-r1
@@ -0,0 +1,3 @@
+MD5 29eda7785a5b78d23f31f057b7474ac1 ExtUtils-F77-1.15.tar.gz 9526
+RMD160 f702c45e240eb62986c407cfa7886bf4c18504f0 ExtUtils-F77-1.15.tar.gz 9526
+SHA256 03c1cb5e93ce874924ee52a61584de34679339d31deef54e3294ddfb59671d87 ExtUtils-F77-1.15.tar.gz 9526
diff --git a/dev-perl/ExtUtils-F77/files/perl-ExtUtils-F77-1.15-alt-g77.patch b/dev-perl/ExtUtils-F77/files/perl-ExtUtils-F77-1.15-alt-g77.patch
new file mode 100644
index 000000000000..0cd323fe7004
--- /dev/null
+++ b/dev-perl/ExtUtils-F77/files/perl-ExtUtils-F77-1.15-alt-g77.patch
@@ -0,0 +1,50 @@
+diff -Naurp ExtUtils-F77-1.15.old/F77.pm ExtUtils-F77-1.15/F77.pm
+--- ExtUtils-F77-1.15.old/F77.pm 2005-02-03 10:12:49.000000000 -0500
++++ ExtUtils-F77-1.15/F77.pm 2007-04-16 12:28:35.000000000 -0400
+@@ -169,31 +169,32 @@ $F77config{Solaris}{DEFAULT} = 'F77';
+
+ ### Generic GNU-77 or F2C system ###
+
++$F77config{Generic}{G77}{Compiler} = find_in_path('g77','f77','fort77','gfortran');
+ $F77config{Generic}{G77}{Link} = sub {
+- my @libs = ('g2c', 'f2c');
++foreach my $ext qw(so a) {
++ my @libs = ('gfortran', 'g2c', 'f2c');
+ my ($dir, $lib, $test);
+ foreach $test (@libs) {
+- $dir = `g77 -print-file-name=lib$test.a`;
++ $dir = `$F77config{Generic}{G77}{Compiler} -print-file-name=lib$test.$ext`;
+ chomp $dir;
+ # Note that -print-file-name returns just the library name
+ # if it cant be found - make sure that we only accept the
+ # directory if it returns a proper path (or matches a /)
+- if (defined $dir && $dir ne "lib$test.a") {
++ if (defined $dir && $dir ne "lib$test.$ext") {
+ $lib = $test; # Found an existing library
+ last;
+ }
+ }
+
+ if( defined $dir && defined $lib) {
+- $dir =~ s,/lib$lib.a$,,;
++ $dir =~ s,/lib$lib.$ext$,,;
+ } else {
+ $dir = "/usr/local/lib";
+ $lib = "f2c";
+ }
+ return( "-L$dir -L/usr/lib -l$lib -lm" );
+-};
++}};
+ $F77config{Generic}{G77}{Trail_} = 1;
+-$F77config{Generic}{G77}{Compiler} = find_in_path('g77','f77','fort77');
+ $F77config{Generic}{G77}{Cflags} = '-O';
+ $F77config{Generic}{DEFAULT} = 'G77';
+ $F77config{Generic}{F2c} = $F77config{Generic}{G77};
+@@ -219,6 +220,7 @@ $F77config{Cygwin}{DEFAULT} = 'G77';
+ $F77config{Linux}{G77} = $F77config{Generic}{G77};
+ $F77config{Linux}{F2c} = $F77config{Generic}{G77};
+ $F77config{Linux}{DEFAULT} = 'G77';
++$F77config{Linux}{G77}{Cflags} = $Config{optimize};
+
+ ### DEC OSF/1 ###
+