Ignore:
Timestamp:
Sep 20, 2009, 10:30:15 PM (8 years ago)
Author:
toby@…
Message:

update to 3.6b1 to fix #21520 (Can't build Smultron after upgrade to Snow Leopard and migration of MacPorts)

Also remove a bunch of useless stuff from the port, use $applications_dir, and create symlinks sanely.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/aqua/Smultron/Portfile

    r54313 r58022  
    55
    66name                    Smultron
    7 version                 3.5.1
     7version                 3.6b1
    88categories              aqua editors
    99platforms               darwin
     
    1313
    1414long_description        Smultron is an open-source text editor written in Cocoa \
    15                         for Mac OS X Panther with many of the features that you \
     15                        for Mac OS X with many of the features that you \
    1616                        might need. It features easy selection of the opened documents, \
    1717                        line numbers, support for syntax colouring for many different \
     
    2424                       
    2525master_sites            sourceforge:smultron
    26 checksums           md5     08af90e57f58c4b2c99b376815ddfc43 \
    27                     sha1    b559ac4f83f4f14ee86d1695c12a05c106b04930 \
    28                     rmd160  414b3e41b9902f8f2bcfb22ac507a9c7fb9637d1
     26checksums           md5     73844a1bce1f9ff546d49be291658e85 \
     27                    sha1    723ec603c2d2371172cce3a9096adc46469a6ad7 \
     28                    rmd160  1b40870e2b028ecda156e1899378fb89e6214809
    2929
    3030
    3131use_zip                 yes
    3232distname                ${name}Source-${version}
    33 
    34 pre-fetch {
    35     if {[variant_isset darwin_7] || [variant_isset darwin_8]} {
    36         return -code error "${name} ${version} only builds on Mac OS X Leopard (10.5.x). Sorry."
    37     }
    38 }
    39 
    40 use_configure           no
    41 
    42 platform darwin 7 { }
    43 platform darwin 8 { }
    44 
    45 platform darwin 9 {
    46         if {$xcodeversion == "2.1"} {
    47                 set xcodebuilddir       build/Deployment
    48         }
    49 }
    50 
    51 build.type              pbx
    52 build.dir               ${workpath}/${name}Source
     33worksrcdir      ${name}Source
    5334
    5435destroot        {
    55         xinstall -m 755 -d ${destroot}/Applications/MacPorts
     36        xinstall -m 755 -d ${destroot}${applications_dir}
    5637        file copy ${workpath}/${name}Source/build/Release/Smultron.app \
    57                 ${destroot}/Applications/MacPorts
     38                ${destroot}${applications_dir}
     39        system "ln -sf ${applications_dir}/Smultron.app/Contents/Resources/smultron ${destroot}${prefix}/bin/smultron"
     40        system "ln -sf ${applications_dir}/Smultron.app/Contents/Resources/smultron.1 ${destroot}${prefix}/share/man/man1/smultron.1"
    5841}
    59 
    60 post-activate {
    61         system "ln -sf /Applications/MacPorts/Smultron.app/Contents/Resources/smultron ${prefix}/bin/smultron"
    62         system "ln -sf /Applications/MacPorts/Smultron.app/Contents/Resources/smultron.1 ${prefix}/share/man/man1/smultron.1"
    63 }
    64 
    65 # post-uninstall {
    66 #       file delete -force ${prefix}/bin/smultron
    67 #       file delete -force ${prefix}/bin/smultron.1
    68 #}
    69 
Note: See TracChangeset for help on using the changeset viewer.