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

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

textmate2: revert buildbot workaround

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.8 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 100164 2012-12-01 06:32:09Z 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
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
37post-patch {
38    reinplace "s/@REVISION@/${github.version}/" ${worksrcpath}/configure
39    reinplace "s/__MACOSX_DEPLOYMENT_TARGET__/${macosx_deployment_target}/" ${worksrcpath}/configure
40    fs-traverse file ${worksrcpath} {
41        if {[file tail ${file}] == "target"} {
42            reinplace "/TEST_SOURCES =/d" ${file}
43        }
44    }
45}
46
47depends_build-append    port:ninja \
48                        port:ragel \
49                        port:proctools
50
51depends_skip_archcheck  ninja ragel proctools
52
53minimum_xcodeversions   {11 4.4}
54
55depends_lib-append      port:boost \
56                        port:multimarkdown \
57                        port:curl \
58                        port:openssl \
59                        port:libiconv \
60                        port:zlib
61
62if {${os.platform} != "darwin" || ${os.major} < 11} {
63    depends_fetch
64    depends_build
65    depends_lib
66    pre-fetch {
67        ui_error "${name} only works with Mac OS X 10.7 Lion or later."
68        return -code error "incompatible Mac OS X version"
69    }
70}
71
72configure.env-append    builddir=${worksrcpath}/build \
73                        tag=-macports
74
75build.cmd               ninja
76build.args              -v -j ${build.jobs}
77build.target            TextMate mate
78
79destroot {
80    copy ${worksrcpath}/build/Applications/TextMate/TextMate.app ${destroot}${applications_dir}
81    xinstall -m 0755 ${worksrcpath}/build/Applications/mate/mate ${destroot}${prefix}/bin
82    xinstall -m 0755 ${worksrcpath}/rmate/rmate ${destroot}${prefix}/bin
83}
Note: See TracBrowser for help on using the repository browser.