From 1277c3fe98a0966b8dacea94b38f90cea7dcfd4f Mon Sep 17 00:00:00 2001 From: Michael Cummings Date: Mon, 16 Apr 2007 16:39:43 +0000 Subject: [PATCH] Bump and patch for gcc-4.1 and greater so that gfortran is seen Package-Manager: portage-2.1.2.3 --- dev-perl/ExtUtils-F77/ChangeLog | 8 ++- .../ExtUtils-F77/ExtUtils-F77-1.15-r1.ebuild | 22 ++++++++ dev-perl/ExtUtils-F77/Manifest | 27 +++++++--- .../files/digest-ExtUtils-F77-1.15-r1 | 3 ++ .../perl-ExtUtils-F77-1.15-alt-g77.patch | 50 +++++++++++++++++++ 5 files changed, 101 insertions(+), 9 deletions(-) create mode 100644 dev-perl/ExtUtils-F77/ExtUtils-F77-1.15-r1.ebuild create mode 100644 dev-perl/ExtUtils-F77/files/digest-ExtUtils-F77-1.15-r1 create mode 100644 dev-perl/ExtUtils-F77/files/perl-ExtUtils-F77-1.15-alt-g77.patch 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 + +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 -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/Manifest b/dev-perl/ExtUtils-F77/Manifest index 067330cf8a63..ce07c0ee655a 100644 --- a/dev-perl/ExtUtils-F77/Manifest +++ b/dev-perl/ExtUtils-F77/Manifest @@ -1,15 +1,23 @@ -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 +AUX perl-ExtUtils-F77-1.15-alt-g77.patch 1910 RMD160 07a17b3148fdf8280f0da986f16c2de78f59c32f SHA1 86c67ebb7a16fde12f003b5292ee86b0e9f62378 SHA256 e4c0e707064cf5d9627809a109b3b51c3d47d0c93fdbbbb905ba802ff409cfdc +MD5 219736daff9ef90235441b89a1e41f4a files/perl-ExtUtils-F77-1.15-alt-g77.patch 1910 +RMD160 07a17b3148fdf8280f0da986f16c2de78f59c32f files/perl-ExtUtils-F77-1.15-alt-g77.patch 1910 +SHA256 e4c0e707064cf5d9627809a109b3b51c3d47d0c93fdbbbb905ba802ff409cfdc files/perl-ExtUtils-F77-1.15-alt-g77.patch 1910 DIST ExtUtils-F77-1.15.tar.gz 9526 RMD160 f702c45e240eb62986c407cfa7886bf4c18504f0 SHA1 b49b86e3c18c46906368d27b22d5459605388895 SHA256 03c1cb5e93ce874924ee52a61584de34679339d31deef54e3294ddfb59671d87 +EBUILD ExtUtils-F77-1.15-r1.ebuild 698 RMD160 d23a4792b439a539d66c76822570f7f577837181 SHA1 0267aa968d50493ecc8eee99610372b19da4c617 SHA256 fab4a81c98b05b7154a9760b2fd7eac1880ecc23dc78b74d6e36ba35d7f32f99 +MD5 5891b4eb811db434b87d2e9bf2c3f062 ExtUtils-F77-1.15-r1.ebuild 698 +RMD160 d23a4792b439a539d66c76822570f7f577837181 ExtUtils-F77-1.15-r1.ebuild 698 +SHA256 fab4a81c98b05b7154a9760b2fd7eac1880ecc23dc78b74d6e36ba35d7f32f99 ExtUtils-F77-1.15-r1.ebuild 698 EBUILD ExtUtils-F77-1.15.ebuild 552 RMD160 c3f04ee83509e203476bbb8f2ed71e76e26b8a8e SHA1 d5ec32ab76a4d1c69fca338c1b133e2b7214127d SHA256 f4af77259f824d2e4eb64983e175ffd09367594ecbd9ff72b45924d65085baf3 MD5 bbe0542f6c960fd8805dd9b5739540ac ExtUtils-F77-1.15.ebuild 552 RMD160 c3f04ee83509e203476bbb8f2ed71e76e26b8a8e ExtUtils-F77-1.15.ebuild 552 SHA256 f4af77259f824d2e4eb64983e175ffd09367594ecbd9ff72b45924d65085baf3 ExtUtils-F77-1.15.ebuild 552 -MISC ChangeLog 3387 RMD160 8047c795d8e150f80385efca49474e5c2f2a41af SHA1 187aaf3f9f94f229255b7ae66c11754a596ec259 SHA256 33bbda8a6936dc9c4979283b4f13e1653e6fd12aa3bea4a382902ea5386c56ed -MD5 5a8a0597dfd2eb1e61768ab4f4089171 ChangeLog 3387 -RMD160 8047c795d8e150f80385efca49474e5c2f2a41af ChangeLog 3387 -SHA256 33bbda8a6936dc9c4979283b4f13e1653e6fd12aa3bea4a382902ea5386c56ed ChangeLog 3387 +MISC ChangeLog 3623 RMD160 18dd228cec65a83c57aeae9131b169d66cfbc869 SHA1 2b8dcf1c69c1e041f3f04ebbb0476905f966ac46 SHA256 d8ef6fdbaafd8d3139114f98438f80a5626a0734d654ca6c3200499e64600b92 +MD5 7eaecfa6014c9ae7eed514605f9d6607 ChangeLog 3623 +RMD160 18dd228cec65a83c57aeae9131b169d66cfbc869 ChangeLog 3623 +SHA256 d8ef6fdbaafd8d3139114f98438f80a5626a0734d654ca6c3200499e64600b92 ChangeLog 3623 MISC metadata.xml 305 RMD160 647980838c590f54441a053916ea629e53e551c0 SHA1 99ef1deeae9a934fb6e46cf5fc4a5fcb8379a74a SHA256 f05dbef15061919972882cab07057e102760a542beba17d131194091401cd7ca MD5 e2d8f1bf77722def1dd432e26455c818 metadata.xml 305 RMD160 647980838c590f54441a053916ea629e53e551c0 metadata.xml 305 @@ -17,10 +25,13 @@ SHA256 f05dbef15061919972882cab07057e102760a542beba17d131194091401cd7ca metadata MD5 833a3413dec141571b5482532e998f73 files/digest-ExtUtils-F77-1.15 247 RMD160 7dbb5fb07615565e7a38552e3c63dbe933718e00 files/digest-ExtUtils-F77-1.15 247 SHA256 cbbb606864129129123df9456427d5ceb6580db2597c2ea350b6c463bd39170a files/digest-ExtUtils-F77-1.15 247 +MD5 833a3413dec141571b5482532e998f73 files/digest-ExtUtils-F77-1.15-r1 247 +RMD160 7dbb5fb07615565e7a38552e3c63dbe933718e00 files/digest-ExtUtils-F77-1.15-r1 247 +SHA256 cbbb606864129129123df9456427d5ceb6580db2597c2ea350b6c463bd39170a files/digest-ExtUtils-F77-1.15-r1 247 -----BEGIN PGP SIGNATURE----- -Version: GnuPG v1.4.6 (GNU/Linux) +Version: GnuPG v2.0.3 (GNU/Linux) -iD8DBQFFq718tG5z4I8BtQoRAvSAAJ4sSEy8GK8aasH4qTzxQoPbTAsa6gCeIxJ2 -HQKabL+rWiD0qkKBzBtCoqQ= -=LNlf +iD8DBQFGI6bVtG5z4I8BtQoRAixxAJ99M2GWJZaunMhHZUCd9xsl68BiCgCgkXSx +q9G2oR60TI6Zq3GJwYZO1VE= +=UDQx -----END PGP SIGNATURE----- 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 ### + -- 2.26.2