[96483] trunk/dports/editors
cal at macports.org
cal at macports.org
Sat Aug 11 04:22:03 PDT 2012
Revision: 96483
https://trac.macports.org/changeset/96483
Author: cal at macports.org
Date: 2012-08-11 04:21:58 -0700 (Sat, 11 Aug 2012)
Log Message:
-----------
New port: textmate2
Todo: Disable auto-update in favor of updating via MacPorts and installation of
the mate command line binary.
Added Paths:
-----------
trunk/dports/editors/textmate2/
trunk/dports/editors/textmate2/Portfile
trunk/dports/editors/textmate2/files/
trunk/dports/editors/textmate2/files/patch-configure-make-builddir-configurable.diff
trunk/dports/editors/textmate2/files/patch-configure-remove-brew-and-usr-local.diff
trunk/dports/editors/textmate2/files/patch-configure-use-exit-1.diff
Added: trunk/dports/editors/textmate2/Portfile
===================================================================
--- trunk/dports/editors/textmate2/Portfile (rev 0)
+++ trunk/dports/editors/textmate2/Portfile 2012-08-11 11:21:58 UTC (rev 96483)
@@ -0,0 +1,72 @@
+# -*- 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
+# $Id$
+
+PortSystem 1.0
+PortGroup github 1.0
+
+github.setup textmate textmate a921f258e1eab5ee19e20e0f4700820ea5c51d6b
+version 2.0
+revision 2012081100
+
+maintainers cal openmaintainer
+name textmate2
+
+categories editors aqua
+description \
+ TextMate brings Apple's approach to operating systems into the world of text editors. By \
+ bridging UNIX underpinnings and GUI, TextMate cherry-picks the best of both worlds to the \
+ benefit of expert scripters and novice users alike.
+long_description ${description}\
+ TextMate is well-known for its large number of bundles adding support, snippets, completions \
+ and commands for a huge number of file types.
+
+platforms darwin
+license GPL-3+
+
+fetch.type git
+post-fetch {
+ system -W ${worksrcpath} "git submodule update --init"
+}
+
+patchfiles patch-configure-use-exit-1.diff \
+ patch-configure-make-builddir-configurable.diff \
+ patch-configure-remove-brew-and-usr-local.diff
+
+post-patch {
+ reinplace "s|@BUILDDIR@|${worksrcpath}/build|g" ${worksrcpath}/configure
+ fs-traverse file ${worksrcpath} {
+ if {[file tail ${file}] == "target"} {
+ reinplace "/TEST_SOURCES =/d" ${file}
+ }
+ }
+}
+
+supported_archs i386
+depends_build-append port:ninja \
+ port:ragel \
+ port:mercurial \
+ port:proctools
+
+set depends_skip_archcheck {ninja ragel mercurial proctools}
+
+if {[vercmp ${xcodeversion} "4.4"] < 0} {
+ depends_build-append port:clang-3.2
+ configure.compiler macports-clang-3.2
+}
+
+depends_lib-append port:boost \
+ port:multimarkdown \
+ port:pbzip2 \
+ port:curl \
+ port:openssl \
+ port:libiconv \
+ port:zlib
+
+build.cmd ninja
+build.target TextMate mate
+
+destroot {
+ copy ${worksrcpath}/build/Applications/TextMate/TextMate.app ${destroot}${applications_dir}
+ xinstall -m 0755 ${worksrcpath}/build/Applications/mate/mate ${destroot}${prefix}/bin
+ xinstall -m 0755 ${worksrcpath}/rmate/rmate ${destroot}${prefix}/bin
+}
Property changes on: trunk/dports/editors/textmate2/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
Added: trunk/dports/editors/textmate2/files/patch-configure-make-builddir-configurable.diff
===================================================================
--- trunk/dports/editors/textmate2/files/patch-configure-make-builddir-configurable.diff (rev 0)
+++ trunk/dports/editors/textmate2/files/patch-configure-make-builddir-configurable.diff 2012-08-11 11:21:58 UTC (rev 96483)
@@ -0,0 +1,11 @@
+--- configure.orig 2012-08-11 01:12:24.000000000 +0200
++++ configure 2012-08-11 01:12:34.000000000 +0200
+@@ -6,7 +6,7 @@
+ # = Fallback build directory and signing identity =
+ # =================================================
+
+-: ${builddir:=$HOME/build/TextMate}
++builddir=@BUILDDIR@
+ : ${identity:=-}
+ : ${rest_api:=https://api.textmate.org}
+
Added: trunk/dports/editors/textmate2/files/patch-configure-remove-brew-and-usr-local.diff
===================================================================
--- trunk/dports/editors/textmate2/files/patch-configure-remove-brew-and-usr-local.diff (rev 0)
+++ trunk/dports/editors/textmate2/files/patch-configure-remove-brew-and-usr-local.diff 2012-08-11 11:21:58 UTC (rev 96483)
@@ -0,0 +1,24 @@
+--- configure.orig 2012-08-11 01:13:03.000000000 +0200
++++ configure 2012-08-11 01:13:46.000000000 +0200
+@@ -33,7 +33,7 @@
+ : ${CXX:=$(xcrun -find clang++)}
+ fi
+
+-for cc in /{opt,usr}/local/bin/clang /usr/bin/clang; do
++for cc in /opt/local/bin/clang /usr/bin/clang; do
+ if [[ ! -x "$CC" || ! -x "$CXX" ]]; then
+ CC="${cc}"
+ CXX="${cc}++"
+@@ -47,11 +47,7 @@
+ # = Check if boost is installed =
+ # ===============================
+
+-if which -s brew && [[ -z "$boostdir" && ! -d /usr/local/include/boost ]]; then
+- boostdir=$(brew --prefix boost)/include/boost
+-fi
+-
+-for dir in "${boostdir:-/usr/include/boost}" /{opt,usr}/local/include/boost ${CPATH//:/ }; do
++for dir in "${boostdir:-/usr/include/boost}" /opt/local/include/boost ${CPATH//:/ }; do
+ if [[ ! -L "${builddir}/include/boost" && -d "${dir}" ]]; then
+ mkdir -p "${builddir}/include" && ln -fs "${dir}" "${builddir}/include/boost"
+ fi
Added: trunk/dports/editors/textmate2/files/patch-configure-use-exit-1.diff
===================================================================
--- trunk/dports/editors/textmate2/files/patch-configure-use-exit-1.diff (rev 0)
+++ trunk/dports/editors/textmate2/files/patch-configure-use-exit-1.diff 2012-08-11 11:21:58 UTC (rev 96483)
@@ -0,0 +1,10 @@
+--- configure.orig 2012-08-11 01:07:02.000000000 +0200
++++ configure 2012-08-11 01:07:07.000000000 +0200
+@@ -1,6 +1,6 @@
+ #!/bin/sh
+ # set -u
+-function error () { printf >&2 "%s\n\nPlease see README.md for build instructions.\n" "$1"; exit; }
++function error () { printf >&2 "%s\n\nPlease see README.md for build instructions.\n" "$1"; exit 1; }
+
+ # =================================================
+ # = Fallback build directory and signing identity =
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120811/3c72b107/attachment-0001.html>
More information about the macports-changes
mailing list