Ticket #40989: atlas-worksrcdir.diff

File atlas-worksrcdir.diff, 2.0 KB (added by ryandesign (Ryan Carsten Schmidt), 11 years ago)

proposed patch

  • Portfile

     
    4747                        rmd160  8740c35c9a85b71424fe1ffeed192256aebeb431 \
    4848                        sha256  60a65daaf16ec315034675942618a2230521ea7adf85eea788ee54841072faf0
    4949
     50worksrcdir              ATLAS
     51
    5052compiler.blacklist       macports-clang-3.1 macports-clang-3.0 \
    5153                         macports-clang-2.9
    5254
     
    371373# Phases
    372374# Work around some bugs in the 3.10.1 tarball:
    373375# https://code.google.com/p/libarchive/issues/detail?id=299
    374 # https://sourceforge.net/p/math-atlas/support-request/884
     376# https://sourceforge.net/p/math-atlas/support-requests/884/
    375377
    376378extract.post_args-replace   -xf -xkf
    377379extract.post_args-append    {|| true}
    378380
    379 post-extract {
    380     move ${workpath}/ATLAS ${worksrcpath}
    381 }
    382 
    383381post-patch {
    384382    if {${build_arch} == "ppc" || ${build_arch} == "ppc64"} {
    385383   
     
    686684                [join [split $merger_configure_args(${arch}) "{}"]]
    687685               
    688686            # Create ${arch} build tree
    689             copy ${workpath}/${name}-${version} \
    690                 ${workpath}/${name}-${version}-${arch}
    691             file mkdir ${workpath}/${name}-${version}-${arch}/build
     687            copy ${worksrcpath} ${worksrcpath}-${arch}
     688            file mkdir ${worksrcpath}-${arch}/build
    692689        }
    693690    }
    694691   
     
    723720
    724721        foreach arch ${universal_archs_to_use} {
    725722
    726             lappend atlas_paths ${workpath}/${name}-${version}-${arch}
     723            lappend atlas_paths ${worksrcpath}-${arch}
    727724        }
    728725    } else {
    729726
     
    782779
    783780        foreach arch ${universal_archs_to_use} {
    784781
    785             set libdir ${workpath}/${name}-${version}-${arch}/build/lib
     782            set libdir ${worksrcpath}-${arch}/build/lib
    786783            reinplace "s|^LIBTOOL=.*$|LIBTOOL=\$\(GCC\) \$\(GCCFLAGS\)|" \
    787784                ${libdir}/Makefile
    788785            reinplace "s|dynamic|dynamiclib|g" ${libdir}/Makefile