source: trunk/dports/editors/hexfiend/Portfile

Last change on this file was 135962, checked in by cal@…, 2 years ago

HexFiend: Disable i386 builds where unit128_t isn't available, closes #46106

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.7 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 135962 2015-05-08 06:44:06Z ryandesign@macports.org $
3
4PortSystem      1.0
5PortGroup       xcode 1.0
6PortGroup       github 1.0
7
8github.setup    ridiculousfish HexFiend 2.3.0 v
9checksums       rmd160  4084dd22c4c6151e01f790fd71c7cde52640a842 \
10                sha256  41f73da50490b417b19176068b4a3e7224fa3c06b73d0c4788bf6ed21dceb439
11
12epoch           1
13subport HexFiend {
14    revision    1
15}
16categories      editors aqua
17maintainers     cal openmaintainer
18license         BSD
19
20long_description \n\
21    * Insert, delete, rearrange. Hex Fiend is not limited to in-place changes like some hex editors.\n\
22    * 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 \
23      large as 118 GB.\n\
24    * Small footprint. Hex Fiend does not need to keep your files in memory. You won't dread launching or working with \
25       Hex Fiend even on low-RAM machines.\n\
26    * Fast. Open a huge file, scroll around, copy and paste, all instantly. Find what you're looking for with fast \
27       searching.\n\
28    * Smart saving. Hex Fiend knows not to waste time overwriting the parts of your files that haven't changed.\n\
29    * Data inspector. Interpret data as integer or floating point, signed or unsigned, big or little endian...\n\
30    * Smooth scrolling. No separate pages - scroll like any text document.
31
32supported_archs x86_64
33patch.pre_args  -p1
34patchfiles      disable-sparkle.patch
35
36if {${subport} eq ${name}} {
37    description     HexFiend is a fast and clever hex editor
38
39    xcode.target        HexFiend_2
40    xcode.configuration Release
41
42    destroot {
43        copy "${worksrcpath}/build/Release/Hex Fiend.app" ${destroot}${applications_dir}
44        xinstall -d ${destroot}${prefix}/share/doc/${name}
45        xinstall -m 644 ${worksrcpath}/License.txt ${destroot}${prefix}/share/doc/${name}
46    }
47}
48
49subport HexFiend-framework {
50    description         The HexFiend Framework is an embeddable Cocoa hex editor component from the HexFiend editor
51
52    xcode.target        HexFiend_Framework
53    xcode.configuration Release
54
55    destroot {
56        copy "${worksrcpath}/build/Release/HexFiend.framework" ${destroot}${frameworks_dir}
57        set framework_lib ${frameworks_dir}/HexFiend.framework/Versions/A/HexFiend
58        system "install_name_tool -id ${framework_lib} ${destroot}${framework_lib}"
59    }
60}
61
62if {${os.platform} ne "darwin" || ${os.major} < 11} {
63    depends_fetch
64    depends_build
65    depends_lib
66    pre-fetch {
67        ui_error "${subport} @${version} only works with OS X 10.7 Lion or later."
68        return -code error "incompatible OS X version"
69    }
70}
Note: See TracBrowser for help on using the repository browser.