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

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

New port: textmate2

Todo: Disable auto-update in favor of updating via MacPorts and installation of
the mate command line binary.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.5 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 96483 2012-08-11 11:21:58Z cal@macports.org $
3
4PortSystem              1.0
5PortGroup               github 1.0
6
7github.setup            textmate textmate a921f258e1eab5ee19e20e0f4700820ea5c51d6b
8version                 2.0
9revision                2012081100
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
24license                 GPL-3+
25
26fetch.type              git
27post-fetch {
28    system -W ${worksrcpath} "git submodule update --init"
29}
30
31patchfiles              patch-configure-use-exit-1.diff \
32                        patch-configure-make-builddir-configurable.diff \
33                        patch-configure-remove-brew-and-usr-local.diff
34
35post-patch {
36    reinplace "s|@BUILDDIR@|${worksrcpath}/build|g" ${worksrcpath}/configure
37    fs-traverse file ${worksrcpath} {
38        if {[file tail ${file}] == "target"} {
39            reinplace "/TEST_SOURCES =/d" ${file}
40        }
41    }
42}
43
44supported_archs         i386
45depends_build-append    port:ninja \
46                        port:ragel \
47                        port:mercurial \
48                        port:proctools
49
50set depends_skip_archcheck {ninja ragel mercurial proctools}
51
52if {[vercmp ${xcodeversion} "4.4"] < 0} {
53    depends_build-append    port:clang-3.2
54    configure.compiler      macports-clang-3.2
55}
56
57depends_lib-append      port:boost \
58                        port:multimarkdown \
59                        port:pbzip2 \
60                        port:curl \
61                        port:openssl \
62                        port:libiconv \
63                        port:zlib
64
65build.cmd               ninja
66build.target            TextMate mate
67
68destroot {
69    copy ${worksrcpath}/build/Applications/TextMate/TextMate.app ${destroot}${applications_dir}
70    xinstall -m 0755 ${worksrcpath}/build/Applications/mate/mate ${destroot}${prefix}/bin
71    xinstall -m 0755 ${worksrcpath}/rmate/rmate ${destroot}${prefix}/bin
72}
Note: See TracBrowser for help on using the repository browser.