[79014] trunk/dports/devel/tortoisehg

ryandesign at macports.org ryandesign at macports.org
Mon May 30 00:43:46 PDT 2011


Revision: 79014
          http://trac.macports.org/changeset/79014
Author:   ryandesign at macports.org
Date:     2011-05-30 00:43:44 -0700 (Mon, 30 May 2011)
Log Message:
-----------
tortoisehg: add launcher in applications_dir; see #29624

Modified Paths:
--------------
    trunk/dports/devel/tortoisehg/Portfile

Added Paths:
-----------
    trunk/dports/devel/tortoisehg/files/TortoiseHg.in

Modified: trunk/dports/devel/tortoisehg/Portfile
===================================================================
--- trunk/dports/devel/tortoisehg/Portfile	2011-05-30 05:40:28 UTC (rev 79013)
+++ trunk/dports/devel/tortoisehg/Portfile	2011-05-30 07:43:44 UTC (rev 79014)
@@ -6,6 +6,7 @@
 
 name                tortoisehg
 version             2.0.4
+revision            1
 categories          devel python
 platforms           darwin
 license             GPL-2
@@ -49,3 +50,17 @@
 
     xinstall -m 644 -W ${worksrcpath} COPYING.txt ${destroot}${prefix}/share/doc/${name}
 }
+
+platform darwin {
+    set appname {TortoiseHg}
+    post-extract {
+        copy ${filespath}/${appname}.in ${workpath}/${appname}
+    }
+    post-patch {
+        reinplace "s|@PREFIX@|${prefix}|g" ${workpath}/${appname}
+    }
+    post-destroot {
+        xinstall -d ${destroot}${applications_dir}/${appname}.app/Contents/MacOS
+        xinstall ${workpath}/${appname} ${destroot}${applications_dir}/${appname}.app/Contents/MacOS
+    }
+}

Added: trunk/dports/devel/tortoisehg/files/TortoiseHg.in
===================================================================
--- trunk/dports/devel/tortoisehg/files/TortoiseHg.in	                        (rev 0)
+++ trunk/dports/devel/tortoisehg/files/TortoiseHg.in	2011-05-30 07:43:44 UTC (rev 79014)
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+exec "@PREFIX@/bin/thg"


Property changes on: trunk/dports/devel/tortoisehg/files/TortoiseHg.in
___________________________________________________________________
Added: svn:executable
   + *
Added: svn:eol-style
   + native
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110530/a439bff1/attachment.html>


More information about the macports-changes mailing list