Ticket #35620: port-platypus.diff

File port-platypus.diff, 2.8 KB (added by anddam (Andrea D'Amore), 12 years ago)
  • files/project.pbxproj.patch

     
    1 --- Platypus.xcodeproj/project.pbxproj.orig     2010-08-18 06:14:30.000000000 +1000
    2 +++ Platypus.xcodeproj/project.pbxproj  2012-07-16 16:07:17.000000000 +1000
    3 @@ -1142,7 +1142,6 @@
    4                                 GCC_CW_ASM_SYNTAX = NO;
    5                                 GCC_ENABLE_CPP_EXCEPTIONS = NO;
    6                                 GCC_ENABLE_CPP_RTTI = NO;
    7 -                               GCC_ENABLE_OBJC_EXCEPTIONS = NO;
    8                                 GCC_ENABLE_PASCAL_STRINGS = YES;
    9                                 GCC_ENABLE_SSE3_EXTENSIONS = YES;
    10                                 GCC_ENABLE_SUPPLEMENTAL_SSE3_INSTRUCTIONS = YES;
  • Portfile

     
    44PortGroup               xcode 1.0
    55
    66name                    Platypus
    7 version                 4.4
    8 revision                1
     7version                 4.7
    98categories              aqua devel
    10 maintainers             me.com:tsupplis
     9maintainers             me.com:tsupplis openmaintainer
    1110description             Program for creating application wrappers around scripts.
    1211
    1312long_description        Platypus is a program for creating application \
     
    2423distname                platypus${version}.src
    2524use_zip                 yes
    2625
    27 checksums           md5     e6fe23f7037a873394b70bcc62843940 \
    28                     sha1    31faa5ea5e3e266a213aa3dd3c1fa1173e611110 \
    29                     rmd160  0708e489de457d79cecb8192f1747459df8402c8
     26checksums           md5     a2a24f6d4cd3da850bbfc54175e3332e \
     27                    sha1    87b959b96df9221caacccba3e843558d6800ebec \
     28                    rmd160  54dc72eb2af47523561d5140d0cbad842bcfd38c
    3029
    31 worksrcdir              "${name}-${version}-Source"
    3230
    33 supported_archs i386 ppc
     31supported_archs i386 x86_64
    3432
    3533build.target platypus ScriptExec Platypus
    3634destroot.target Platypus
     
    3937    universal_variant   no
    4038}
    4139
    42 patchfiles              project.pbxproj.patch
     40set extracted_dir   "${name} ${version} Source Code"
     41set target_dir      [string map {" " _} "$extracted_dir"]
     42worksrcdir                  $target_dir
     43
     44post-extract {
     45    file rename ${workpath}/${extracted_dir} ${workpath}/${target_dir}
     46}
     47
     48
    4349post-patch {
    44         reinplace "s|/usr/local|${prefix}|" ${worksrcpath}/CommandLineTool/platypus.1 ${worksrcpath}/CommonDefs.h
     50        reinplace "s|/usr/local|${prefix}|" ${worksrcpath}/CommandLineTool/platypus.1 ${worksrcpath}/Common.h
     51    reinplace "s|build/Platypus/Build/Products/Development|build/Deployment|" ${worksrcpath}/Platypus.xcodeproj/project.pbxproj
    4552}
    4653
    4754post-destroot {
     
    5259                reinplace "s|English.lproj/||g" ${worksrcpath}/Scripts/InstallCommandLineTool.sh
    5360        }
    5461
    55         exec /bin/bash ${worksrcpath}/Scripts/InstallCommandLineTool.sh ${destroot}${applications_dir}/Platypus.app/Contents/Resources
     62    system -W ${worksrcpath}/Scripts "./InstallCommandLineTool.sh ${destroot}${applications_dir}/Platypus.app/Contents/Resources"
    5663}
    5764
    5865livecheck.type  regex