Ticket #34346: aquaterm.diff

File aquaterm.diff, 4.4 KB (added by mojca (Mojca Miklavec), 12 years ago)

Patch (from v.5) - for visual comparison only

  • Portfile

    old new  
    22
    33PortSystem              1.0
    44PortGroup               xcode 1.0
     5PortGroup               github 1.0
    56
     7github.setup            AquaTerm AquaTerm 1.1.1 v
    68name                    aquaterm
    7 version                 1.0.1
    8 revision                5
    99categories              aqua math science
    1010maintainers             mcalhoun openmaintainer
    1111license                 BSD
    long_description AquaTerm is a viewer app that displays vector \ 
    1616                        \"adapters\" to legacy code very little coding is \
    1717                        needed to bring it to OS X.
    1818platforms               darwin
    19 homepage                http://aquaterm.sourceforge.net/
    20 master_sites            sourceforge
    21 distname                ${name}_src.${version}
     19homepage                http://aquaterm.github.com/
    2220
    23 checksums               md5 e9d3ecdfe770d6f09a748add9886d1a9 \
    24                         sha1 d5770bb3a95cfae21c5c39c96171a52d9af8ae24 \
    25                         rmd160 24410589dd8c3071b6e0d5e652b7d92933d86b5f
     21checksums               rmd160  007db0806a2b1b1263043647035fa428b15560e3 \
     22                        sha256  8e35cb81f5f024382ba4b2c96569631b34cf798966aa2870258f272e551c0e34
    2623
    27 worksrcdir              ${name}
    28 
    29 # Allow xcode PortGroup to set ARCHS (for universal builds), MACOSX_DEPLOYMENT_TARGET, and SDKROOT.
    30 # Modify INSTALL_PATH to ensure aquaterm is installed into FRAMEWORKS_DIR.
    31 patchfiles      patch-project.pbxproj.diff
     24build.dir               ${worksrcpath}/aquaterm
    3225
    3326xcode.target            AquaTerm
     27xcode.configuration     Default
    3428
    35 xcode.build.settings    USER_APPS_DIR=${applications_dir} \
    36                         FRAMEWORKS_DIR=${frameworks_dir}
    37 
     29xcode.build.settings    LOCAL_APPS_DIR=${applications_dir} LOCAL_FRAMEWORKS_DIR=${frameworks_dir}
     30xcode.destroot.settings LOCAL_APPS_DIR=${applications_dir} LOCAL_FRAMEWORKS_DIR=${frameworks_dir}
    3831xcode.destroot.type     mixed
    39 xcode.destroot.settings USER_APPS_DIR=${applications_dir} \
    40                         FRAMEWORKS_DIR=${frameworks_dir}
    4132
    4233post-patch {
     34    # Try to open the right version of AquaTerm.app.
     35    # (If incompatible version is installed in /Applications,
     36    #  we need to make sure that the one from MacPorts is found first.)
     37    reinplace "s|/Applications/AquaTerm.app|${applications_dir}/AquaTerm.app|" \
     38        ${worksrcpath}/aquaterm/AQTClientManager.m
     39
     40    reinplace "s|# FRAMEWORKS_DIR.*|FRAMEWORKS_DIR = ${frameworks_dir}|" \
     41        ${worksrcpath}/adapters/c/Makefile \
     42        ${worksrcpath}/adapters/fortran/Makefile
     43
    4344    reinplace "s|/usr/local|${prefix}|g" \
    44         ${workpath}/adapters/pgplot/ChangeLog \
    45         ${workpath}/adapters/pgplot/g77_gcc_AQT.conf \
    46         ${workpath}/adapters/pgplot/xlf_gcc_AQT.conf
    47     reinplace "s|\$(HOME)|${prefix}|g" \
    48         ${workpath}/adapters/c/Makefile \
    49         ${workpath}/adapters/fortran/Makefile
     45        ${worksrcpath}/adapters/pgplot/ChangeLog \
     46        ${worksrcpath}/adapters/pgplot/g77_gcc_AQT.conf \
     47        ${worksrcpath}/adapters/pgplot/xlf_gcc_AQT.conf
     48
     49    # those are not really needed, it's just cosmetics
    5050    reinplace "s|/*<PREFIX>|${prefix}|g" \
    51         ${workpath}/adapters/pgplot/g77_cc_AQT.conf \
    52         ${workpath}/adapters/pgplot/g77_gcc_AQT.conf \
    53         ${workpath}/adapters/pgplot/xlf_gcc_AQT.conf
     51        ${worksrcpath}/adapters/pgplot/g77_cc_AQT.conf \
     52        ${worksrcpath}/adapters/pgplot/g77_gcc_AQT.conf \
     53        ${worksrcpath}/adapters/pgplot/xlf_gcc_AQT.conf
    5454    reinplace "s|/sw|${prefix}|g" \
    55         ${workpath}/adapters/pgplot/ReadMe
     55        ${worksrcpath}/adapters/pgplot/ReadMe
    5656}
    5757
    5858post-destroot {
    59     set fdir ${frameworks_dir}/AquaTerm.framework/Versions/A
    60     xinstall -d -m 755 ${destroot}${prefix}/include/aquaterm
    61     foreach header [glob -tails -directory ${destroot}${fdir}/Headers/ *] {
    62         ln -s ${fdir}/Headers/${header} ${destroot}${prefix}/include/aquaterm
    63     }
    64     ln -s ${fdir}/AquaTerm ${destroot}${prefix}/lib/libaquaterm.dylib
    65     ln -s ${fdir}/AquaTerm ${destroot}${prefix}/lib/libaquaterm.${version}.dylib
    66    
    67     xinstall -d -m 0755 ${destroot}${prefix}/share/${name}
    68     copy ${workpath}/adapters ${destroot}${prefix}/share/${name}
     59    xinstall -d -m 0755 ${destroot}${prefix}/share/AquaTerm
     60    copy ${worksrcpath}/adapters ${destroot}${prefix}/share/AquaTerm
    6961}
    70 
    71 livecheck.regex "<title>AquaTerm v(\\d+(?:\\.\\d+)*) released.*</title>"