Ticket #46157: Portfile-freecad.diff

File Portfile-freecad.diff, 795 bytes (added by Schamschula (Marius Schamschula), 10 years ago)
  • Portfile

    old new  
    100100
    101101    ln -s ${prefix}/libexec/${name}/bin/FreeCADCmd \
    102102        ${destroot}${prefix}/bin
    103 }
    104103
     104        # create stub App
     105        set appdir ${destroot}${applications_dir}/FreeCAD.app
     106        xinstall -d ${appdir}/Contents/MacOS
     107        xinstall -d ${appdir}/Contents/Resources
     108
     109        xinstall -m 644 ${filespath}/Info.plist ${appdir}/Contents/
     110        xinstall -m 644 ${filespath}/FreeCAD.icns ${appdir}/Contents/Resources/
     111        xinstall -m 755 ${filespath}/FreeCAD ${appdir}/Contents/MacOS
     112
     113        reinplace -W ${appdir}/Contents "s,@@VERSION@@,${version},g" Info.plist
     114        reinplace -W ${appdir}/Contents/MacOS "s,@@PREFIX@@,${prefix},g" FreeCAD
     115}
    105116livecheck.regex         ${name}-(\[0-9.\]+)${extract.suffix}