Ticket #3716: Portfile.2.patch

File Portfile.2.patch, 784 bytes (added by jens@…, 19 years ago)

Patches the portfile to use the correct directory structure

  • Portfile

    old new  
    3333
    3434destroot        {
    3535                xinstall -d -m 755 ${destroot}/Applications/DarwinPorts/${name}
    36                 file rename ${worksrcpath}/build/NmapFE\ Launcher.app ${destroot}/Applications/DarwinPorts/${name}
     36                if {[file exists ${worksrcpath}/build/Deployment]} {
     37                        file rename ${worksrcpath}/build/Deployment/NmapFE\ Launcher.app ${destroot}/Applications/DarwinPorts/${name}
     38                } else {
     39                        file rename ${worksrcpath}/build/NmapFE\ Launcher.app ${destroot}/Applications/DarwinPorts/${name}
     40                }
    3741                file rename ${worksrcpath}/Documentation ${destroot}/Applications/DarwinPorts/${name}
    3842                file rename ${worksrcpath}/NmapFE\ Read\ Me.rtf ${destroot}/Applications/DarwinPorts/${name}
    3943}