Changeset 148974


Ignore:
Timestamp:
May 24, 2016, 1:57:49 AM (3 years ago)
Author:
dstrubbe@…
Message:

qrupdate: Fix test phase with +g95 (needed to modify test/Makefile too). Remove useless patch. Consolidate blocks.

Location:
trunk/dports/math/qrupdate
Files:
1 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/math/qrupdate/Portfile

    r148973 r148974  
    3434test.args           PREFIX=${prefix} LAPACK=""
    3535
    36 patchfiles          patch-Makefile.diff
    37 
    38 post-patch {
     36post-extract {
    3937    # Mac install program does not support -D flag.
    4038    reinplace "s|install -D|install|"  ${worksrcpath}/src/Makefile
     
    4240    # Running ranlib on static libraries make universal builds a little more complicated.
    4341    reinplace "s|ar -cr |libtool -o |"  ${worksrcpath}/src/Makefile
     42
     43    if {[variant_isset g95]} {
     44        reinplace "s|Makeconf|Makeconf.g95|" ${worksrcpath}/Makefile
     45        reinplace "s|Makeconf|Makeconf.g95|" ${worksrcpath}/src/Makefile
     46        reinplace "s|Makeconf|Makeconf.g95|" ${worksrcpath}/test/Makefile
     47    } else {
     48        reinplace "s|gfortran|${configure.fc}|" ${worksrcpath}/Makeconf
     49    }
    4450}
    4551
     
    7379}
    7480
    75 if {[variant_isset g95]} {
    76     post-patch {
    77         reinplace "s|Makeconf|Makeconf.g95|" ${worksrcpath}/Makefile
    78         reinplace "s|Makeconf|Makeconf.g95|" ${worksrcpath}/src/Makefile
    79     }
    80 } else {
    81     post-patch {
    82         reinplace "s|gfortran|${configure.fc}|" ${worksrcpath}/Makeconf
    83     }
    84 }
    85 
    8681test.run    yes
Note: See TracChangeset for help on using the changeset viewer.