Revision
100162
Author
jmr@macports.org
Date
2012-11-30 22:01:24 -0800 (Fri, 30 Nov 2012)

Log Message

textmate2: use configured macosx_deployment_target

Modified Paths

Added Paths

Diff

Modified: trunk/dports/editors/textmate2/Portfile (100161 => 100162)


--- trunk/dports/editors/textmate2/Portfile	2012-11-30 23:24:08 UTC (rev 100161)
+++ trunk/dports/editors/textmate2/Portfile	2012-12-01 06:01:24 UTC (rev 100162)
@@ -37,10 +37,12 @@
 }
 
 patchfiles              patch-configure-versionnumber.diff \
-                        patch-create_default_bundles_tbz-verbose.diff
+                        patch-create_default_bundles_tbz-verbose.diff \
+                        patch-configure-mdt.diff
 
 post-patch {
     reinplace "s/@REVISION@/${github.version}/" ${worksrcpath}/configure
+    reinplace "s/__MACOSX_DEPLOYMENT_TARGET__/${macosx_deployment_target}/" ${worksrcpath}/configure
     fs-traverse file ${worksrcpath} {
         if {[file tail ${file}] == "target"} {
             reinplace "/TEST_SOURCES =/d" ${file}

Added: trunk/dports/editors/textmate2/files/patch-configure-mdt.diff (0 => 100162)


--- trunk/dports/editors/textmate2/files/patch-configure-mdt.diff	                        (rev 0)
+++ trunk/dports/editors/textmate2/files/patch-configure-mdt.diff	2012-12-01 06:01:24 UTC (rev 100162)
@@ -0,0 +1,11 @@
+--- configure.orig	2012-12-01 16:55:18.000000000 +1100
++++ configure	2012-12-01 16:54:47.000000000 +1100
+@@ -17,7 +17,7 @@
+ name=TextMate
+ ver=2.0.0-alpha.\$APP_REVISION${tag:-+git.$(git rev-parse --short HEAD)}
+ rev=@REVISION@
+-min_os=10.7
++min_os=__MACOSX_DEPLOYMENT_TARGET__
+ 
+ # ===============================================
+ # = Find clang via xcrun, MacPorts, or Homebrew =