Revision: 74431 http://trac.macports.org/changeset/74431 Author: jmr@macports.org Date: 2010-12-16 21:08:16 -0800 (Thu, 16 Dec 2010) Log Message: ----------- ftidy: remove gcc3x variants, add gcc4{3,4,5}, gcc44 default, use fflags and (-m32/-m64) archflags, add sha1, don't hardcode version in description Modified Paths: -------------- trunk/dports/lang/ftidy/Portfile Modified: trunk/dports/lang/ftidy/Portfile =================================================================== --- trunk/dports/lang/ftidy/Portfile 2010-12-17 02:16:06 UTC (rev 74430) +++ trunk/dports/lang/ftidy/Portfile 2010-12-17 05:08:16 UTC (rev 74431) @@ -12,49 +12,60 @@ distname tidy72sc use_zip yes extract.mkdir yes -build.target tidy.for -o ftidy +build.args tidy.for -o ftidy use_configure no universal_variant no description Fortran Tidy long_description \ - TIDY v7.2 (ftidy) is a highly configurable FORTRAN program \ + TIDY v${version} (ftidy) is a highly configurable FORTRAN program \ to indent and renumber statements, selectively change case \ of keywords or non-keywords, and do various other clean-up \ tasks on FORTRAN-77 source programs. checksums \ - md5 f940dfa793408368f92af6aab535619b + md5 f940dfa793408368f92af6aab535619b \ + sha1 200e4531f172355cde49c455e2f7e9df8f1f8404 -if { ![variant_isset gcc33] && ![variant_isset gcc34] && ![variant_isset gcc40] && ![variant_isset gcc41] && ![variant_isset gcc42] } { - default_variants +gcc42 +if { ![variant_isset gcc40] && ![variant_isset gcc41] && ![variant_isset gcc42] && ![variant_isset gcc43] && ![variant_isset gcc45] } { + default_variants +gcc44 } -variant gcc33 conflicts gcc34 gcc40 gcc41 gcc42 description {Build using gcc33} { - depends_build port:gcc33 - build.cmd g77-dp-3.3 +variant gcc40 conflicts gcc41 gcc42 gcc43 gcc44 gcc45 description {Build using gcc40} { + depends_build port:gcc40 + configure.compiler macports-gcc-4.0 } -variant gcc34 conflicts gcc33 gcc40 gcc41 gcc42 description {Build using gcc34} { - depends_build port:gcc34 - build.cmd g77-dp-3.4 +variant gcc41 conflicts gcc40 gcc42 gcc43 gcc44 gcc45 description {Build using gcc41} { + depends_build port:gcc41 + configure.compiler macports-gcc-4.1 } -variant gcc40 conflicts gcc33 gcc34 gcc41 gcc42 description {Build using gcc40} { - depends_build port:gcc40 - build.cmd gfortran-mp-4.0 +variant gcc42 conflicts gcc40 gcc41 gcc43 gcc44 gcc45 description {Build using gcc42} { + depends_build port:gcc42 + configure.compiler macports-gcc-4.2 } -variant gcc41 conflicts gcc33 gcc34 gcc40 gcc42 description {Build using gcc41} { - depends_build port:gcc41 - build.cmd gfortran-mp-4.1 +variant gcc43 conflicts gcc40 gcc41 gcc42 gcc44 gcc45 description {Build using gcc43} { + depends_build port:gcc43 + configure.compiler macports-gcc-4.3 } -variant gcc42 conflicts gcc33 gcc34 gcc40 gcc41 description {Build using gcc42} { - depends_build port:gcc42 - build.cmd gfortran-mp-4.2 +variant gcc44 conflicts gcc40 gcc41 gcc42 gcc43 gcc45 description {Build using gcc44} { + depends_build port:gcc44 + configure.compiler macports-gcc-4.4 } +variant gcc45 conflicts gcc40 gcc41 gcc42 gcc43 gcc44 description {Build using gcc45} { + depends_build port:gcc45 + configure.compiler macports-gcc-4.5 +} + +build.pre_args ${configure.fflags} ${configure.f77_archflags} +pre-build { + build.cmd ${configure.f77} +} + destroot { - xinstall -m 755 -W ${worksrcpath} ftidy ${destroot}${prefix}/bin/ + xinstall -m 755 -W ${worksrcpath} ftidy ${destroot}${prefix}/bin }
participants (1)
-
jmr@macports.org