Ticket #6645: openmcl_Portfile.diff

File openmcl_Portfile.diff, 1017 bytes (added by bfulgham@…, 19 years ago)

Patch to set up asdf-install support.

  • Portfile

    old new  
    2121
    2222distfiles       ${name}-darwinppc-all-${version}${extract.suffix}
    2323
     24set prefixpath  \\\"[regsub -all / [strsed ${prefix}/share/asdf-install {g/^\///}] "\\\" \\\""]\\\"
     25
    2426checksums       md5  7e8b584100d0a2b8cb438b29bd891505                   \
    2527                sha1 10e0d3922462fc11d18c334ca542b668b793bce9
    2628
     
    4749                  ${workpath}/ccl/scripts/openmcl
    4850                  system "chmod +x ${workpath}/ccl/scripts/openmcl"
    4951                  file copy ${workpath}/ccl/scripts/openmcl ${destroot}/${prefix}/bin
     52                  reinplace "s|\"usr\" \"local\" \"asdf-install\")))))|${prefixpath})))))|" \
     53                  ${destroot}/${prefix}/share/${name}/${version}/tools/asdf-install/installer.lisp
     54                }
     55
     56post-activate   {
     57                  # Prepare asdf install folders and so forth.
     58                  file mkdir ${prefix}/share/asdf-install
     59                  system "chgrp admin ${prefix}/share/asdf-install"
     60                  system "chmod g+w ${prefix}/share/asdf-install"
    5061                }