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

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

textmate2: use configured macosx_deployment_target

  • 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 100162 2012-12-01 06:01:24Z jmr@macports.org $
3
4PortSystem              1.0
5PortGroup               github 1.0
6PortGroup               xcodeversion 1.0
7
8github.setup            textmate textmate 9315 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
28pre-fetch {
29    if {${os.platform} == "darwin" && ${os.major} < 11} {
30        ui_error "${name} only works with Mac OS X 10.7 Lion or later."
31        return -code error "incompatible Mac OS X version"
32    }
33}
34fetch.type              git
35post-fetch {
36    system -W ${worksrcpath} "git submodule update --init"
37}
38
39patchfiles              patch-configure-versionnumber.diff \
40                        patch-create_default_bundles_tbz-verbose.diff \
41                        patch-configure-mdt.diff
42
43post-patch {
44    reinplace "s/@REVISION@/${github.version}/" ${worksrcpath}/configure
45    reinplace "s/__MACOSX_DEPLOYMENT_TARGET__/${macosx_deployment_target}/" ${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
57depends_skip_archcheck  ninja ragel proctools
58
59minimum_xcodeversions   {11 4.4}
60
61depends_lib-append      port:boost \
62                        port:multimarkdown \
63                        port:curl \
64                        port:openssl \
65                        port:libiconv \
66                        port:zlib
67
68configure.env-append    builddir=${worksrcpath}/build \
69                        tag=-macports
70
71build.cmd               ninja
72build.args              -v -j ${build.jobs}
73build.target            TextMate mate
74
75destroot {
76    copy ${worksrcpath}/build/Applications/TextMate/TextMate.app ${destroot}${applications_dir}
77    xinstall -m 0755 ${worksrcpath}/build/Applications/mate/mate ${destroot}${prefix}/bin
78    xinstall -m 0755 ${worksrcpath}/rmate/rmate ${destroot}${prefix}/bin
79}
Note: See TracBrowser for help on using the repository browser.