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

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

textmate2: update to r9345

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