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

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

textmate2: require at least Xcode 4.4, see #36443

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.9 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 98372 2012-10-03 21:47:43Z cal@macports.org $
3
4PortSystem              1.0
5PortGroup               github 1.0
6
7github.setup            textmate textmate 9315 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    if {[vercmp $xcodeversion 4.4] < 0} {
33        ui_error "${name} needs to build against the 10.8 SDK not available in Xcode prior 4.4. Please update your Xcode."
34        return -code error "incompatible Xcode version"
35    }
36}
37fetch.type              git
38post-fetch {
39    system -W ${worksrcpath} "git submodule update --init"
40}
41
42patchfiles              patch-configure-versionnumber.diff
43
44post-patch {
45    reinplace "s/@REVISION@/${github.version}/" ${worksrcpath}/configure
46    fs-traverse file ${worksrcpath} {
47        if {[file tail ${file}] == "target"} {
48            reinplace "/TEST_SOURCES =/d" ${file}
49        }
50    }
51}
52
53depends_build-append    port:ninja \
54                        port:ragel \
55                        port:proctools
56
57set depends_skip_archcheck {ninja ragel proctools}
58
59if {[vercmp ${xcodeversion} "4.4"] < 0} {
60    depends_build-append    port:clang-3.2
61    #configure.compiler      macports-clang-3.2
62    configure.cc            ${prefix}/bin/clang-mp-3.2
63    configure.cxx           ${prefix}/bin/clang++-mp-3.2
64}
65
66depends_lib-append      port:boost \
67                        port:multimarkdown \
68                        port:curl \
69                        port:openssl \
70                        port:libiconv \
71                        port:zlib
72
73configure.env-append    builddir=${worksrcpath}/build \
74                        tag=-macports
75
76build.cmd               ninja
77build.args              -j ${build.jobs}
78build.target            TextMate mate
79
80destroot {
81    copy ${worksrcpath}/build/Applications/TextMate/TextMate.app ${destroot}${applications_dir}
82    xinstall -m 0755 ${worksrcpath}/build/Applications/mate/mate ${destroot}${prefix}/bin
83    xinstall -m 0755 ${worksrcpath}/rmate/rmate ${destroot}${prefix}/bin
84}
Note: See TracBrowser for help on using the repository browser.