Ticket #44514: HexFiend-2.3.0.diff

File HexFiend-2.3.0.diff, 2.5 KB (added by ryandesign (Ryan Carsten Schmidt), 10 years ago)

proposed patch

  • Portfile

     
    55PortGroup       xcode 1.0
    66PortGroup       github 1.0
    77
    8 github.setup    ridiculousfish HexFiend 2.1.2 v
    9 checksums       rmd160  c36371fb1a54312952601ddf2a35f021af4da6ef \
    10                 sha256  ba78d047b7bb5394ec444cd3b86565b7d4754869544a656f7b6b2fc79eb7f37c
     8github.setup    ridiculousfish HexFiend 2.3.0 v
     9checksums       rmd160  4084dd22c4c6151e01f790fd71c7cde52640a842 \
     10                sha256  41f73da50490b417b19176068b4a3e7224fa3c06b73d0c4788bf6ed21dceb439
    1111
    1212epoch           1
    13 # MEMO: increasing version and setting dist_subdir due to stealth_update, remove them on next version upgrade
    14 revision        1
    15 dist_subdir     ${name}/${version}_1
    1613categories      editors aqua
    1714maintainers     dweber cal openmaintainer
    1815license         BSD
    1916
    20 # required to build on < Lion
    21 patchfiles      framework-sources-HFByteArrayEditScript.m.patch
    22 platform darwin 11 {
    23     patchfiles-delete \
    24                 framework-sources-HFByteArrayEditScript.m.patch
    25 }
    26 
    2717long_description \n\
    2818    * Insert, delete, rearrange. Hex Fiend is not limited to in-place changes like some hex editors.\n\
    2919    * Work with huge files. Hex Fiend can handle as big a file as you're able to create. It's been tested on files as \
     
    3929if {${subport} eq ${name}} {
    4030    description     HexFiend is a fast and clever hex editor
    4131
    42     post-patch {
    43         # this is required for builds on 32 bit systems, because NSTag is
    44         # a signed integer and these values (NSUTF16BigEndianStringEncoding and
    45         # NSUTF16LittleEndianStringEncoding) both have the MSB set making them
    46         # not representable in signed 32 bit integers.
    47         # Applying these on 64 bit systems is safe, too, because the leading
    48         # 4 bytes will be cut off by a cast.
    49         reinplace "s/2415919360/-1879047936/g" ${worksrcpath}/English.lproj/MainMenu.xib
    50         reinplace "s/2483028224/-1811939072/g" ${worksrcpath}/English.lproj/MainMenu.xib
    51     }
    52 
    5332    xcode.target        HexFiend_2
    5433    xcode.configuration Release
    5534
     
    7251        system "install_name_tool -id ${framework_lib} ${destroot}${framework_lib}"
    7352    }
    7453}
     54
     55if {${os.platform} ne "darwin" || ${os.major} < 11} {
     56    depends_fetch
     57    depends_build
     58    depends_lib
     59    pre-fetch {
     60        ui_error "${subport} @${version} only works with OS X 10.7 Lion or later."
     61        return -code error "incompatible OS X version"
     62    }
     63}