source: trunk/dports/editors/textmate2/Portfile @ 100369

Last change on this file since 100369 was 100369, checked in by cal@…, 8 years ago

textmate2: update to r9323

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.2 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 100369 2012-12-09 21:12:06Z cal@macports.org $
3
4PortSystem              1.0
5PortGroup               github 1.0
6PortGroup               xcodeversion 1.0
7
8github.setup            textmate textmate 9323 r
9epoch                   1
10version                 2.0.${github.version}
11
12maintainers             cal openmaintainer
13name                    textmate2
14
15categories              editors aqua
16description             \
17    TextMate brings Apple's approach to operating systems into the world of text editors. By \
18    bridging UNIX underpinnings and GUI, TextMate cherry-picks the best of both worlds to the \
19    benefit of expert scripters and novice users alike.
20long_description        ${description}\
21    TextMate is well-known for its large number of bundles adding support, snippets, completions \
22    and commands for a huge number of file types.
23
24platforms               darwin
25supported_archs         x86_64
26license                 GPL-3+
27
28fetch.type              git
29post-fetch {
30    system -W ${worksrcpath} "git submodule update --init"
31}
32
33patchfiles              patch-configure-versionnumber.diff \
34                        patch-create_default_bundles_tbz-verbose.diff \
35                        patch-configure-mdt.diff \
36                        patch-bin-gen_credits.rb-use-mp-ruby.diff \
37                        patch-bin-gen_html-use-mp-ruby.diff
38
39post-patch {
40    reinplace "s/@REVISION@/${github.version}/" ${worksrcpath}/configure
41    reinplace "s/__MACOSX_DEPLOYMENT_TARGET__/${macosx_deployment_target}/" ${worksrcpath}/configure
42    reinplace "s#@PREFIX@#${prefix}#" ${worksrcpath}/bin/gen_credits.rb ${worksrcpath}/bin/gen_html
43    fs-traverse file ${worksrcpath} {
44        if {[file tail ${file}] == "target"} {
45            reinplace "/TEST_SOURCES =/d" ${file}
46        }
47    }
48}
49
50depends_build-append    port:ninja \
51                        port:ragel \
52                        port:proctools \
53                        port:ruby \
54                        port:rb-json
55
56depends_skip_archcheck  ninja ragel proctools
57
58minimum_xcodeversions   {11 4.4}
59
60depends_lib-append      port:boost \
61                        port:multimarkdown \
62                        port:curl \
63                        port:openssl \
64                        port:libiconv \
65                        port:zlib
66
67if {${os.platform} != "darwin" || ${os.major} < 11} {
68    depends_fetch
69    depends_build
70    depends_lib
71    pre-fetch {
72        ui_error "${name} only works with Mac OS X 10.7 Lion or later."
73        return -code error "incompatible Mac OS X version"
74    }
75}
76
77configure.env-append    builddir=${worksrcpath}/build \
78                        tag=-macports
79
80pre-build {
81    # the textmate build expects this to be present
82    file mkdir $env(HOME)/Library/Caches/com.macromates.TextMate
83}
84build.cmd               ninja
85build.args              -v -j ${build.jobs}
86build.target            TextMate mate
87
88destroot {
89    copy ${worksrcpath}/build/Applications/TextMate/TextMate.app ${destroot}${applications_dir}
90    xinstall -m 0755 ${worksrcpath}/build/Applications/mate/mate ${destroot}${prefix}/bin
91    xinstall -m 0755 ${worksrcpath}/rmate/rmate ${destroot}${prefix}/bin
92}
Note: See TracBrowser for help on using the repository browser.