Ticket #12508: Portfile.diff

File Portfile.diff, 2.1 KB (added by jyrkiwahlstedt, 17 years ago)
  • Portfile

     
    22
    33PortSystem      1.0
    44name            TeXShop
    5 version         2.09d
     5version         2.13
     6epoch           20070809
    67categories      editors aqua
     8PortGroup       xcode 1.0
    79maintainers     waqar@macports.org
    810description     TeX previewer for Mac OS X
    911long_description   \
     
    1719master_sites    http://www.uoregon.edu/~koch/texshop
    1820use_zip         yes
    1921distname        texshopsource
    20 checksums       md5 50316d4b37fefed9de554f272a435a57                    \
    21                 sha1 c7f75100862804a6ab3cf14dbd7be3980f8c4fa8
     22checksums       md5 99ded2c48d9775384cc0af4f0f51103b \
     23                sha1 e2ff53199acf28ee330bc404d59a1304c3b5671b \
     24    rmd160 bfe938d6afd17e988dd52b1b9cccadeeeb824845
    2225
    2326platform darwin 7 {
    24 pre-fetch {
    25 ui_msg "\n
     27    pre-fetch {
     28        return -code error "\n
    2629        TeXShop 2.x will not install on less than OS X 10.4 and there isn't a
    27         TeXShop 1.x port contributed as yet to accommodate 10.3.
    28 \n"
     30        TeXShop 1.x port contributed as yet to accommodate 10.3.\n"
     31    }
     32}
    2933
    30 exit 1
     34post-extract {
     35    reinplace "s/defaultConfigurationName = Debug/defaultConfigurationName = Release/" ${worksrcpath}/${name}.xcodeproj/project.pbxproj
    3136}
    32 }
    3337
    3438use_configure   no
    35 pre-build       {
    36 # German.lproj has the help file with wrong case we have to move it to
    37 # tmp and then correct the case.
    38         file rename ${worksrcpath}/German.lproj/TexShopHelp             \
    39                 ${worksrcpath}/German.lproj/TexShopHelp1
    40         file rename ${worksrcpath}/German.lproj/TexShopHelp1            \
    41                 ${worksrcpath}/German.lproj/TeXShopHelp
    42 }
    4339
    44 build.type      pbx
    45 build.target    -target ${name}
    46 build.args      build FRAMEWORK_SEARCH_PATHS=${worksrcpath}
     40xcode.project           ${name}.xcodeproj
     41xcode.configuration     Release
    4742
     43xcode.build.settings    FRAMEWORK_SEARCH_PATHS=${worksrcpath}
     44
    4845destroot        {
    49         cd ${worksrcpath}
    50         system "${build.cmd} DSTROOT=${destroot}                        \
     46    cd ${worksrcpath}
     47    system "${build.cmd} DSTROOT=${destroot}                    \
    5148                INSTALL_PATH=/Applications/MacPorts -target ${name}     \
    5249                install INSTALL_MODE_FLAG=755                           \
    5350                FRAMEWORK_SEARCH_PATHS=${worksrcpath}"