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

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

textmate2: update to r9307

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