[99484] trunk/dports/shells/fish

and.damore at macports.org and.damore at macports.org
Wed Nov 7 05:57:21 PST 2012


Revision: 99484
          http://trac.macports.org//changeset/99484
Author:   and.damore at macports.org
Date:     2012-11-07 05:57:21 -0800 (Wed, 07 Nov 2012)
Log Message:
-----------
port fish: making alias function (legacy compatibility) working with OSX's BSD sed; nomaintainer

Modified Paths:
--------------
    trunk/dports/shells/fish/Portfile

Added Paths:
-----------
    trunk/dports/shells/fish/files/patch-alias_function.diff

Modified: trunk/dports/shells/fish/Portfile
===================================================================
--- trunk/dports/shells/fish/Portfile	2012-11-07 13:53:28 UTC (rev 99483)
+++ trunk/dports/shells/fish/Portfile	2012-11-07 13:57:21 UTC (rev 99484)
@@ -6,7 +6,7 @@
 name                    fish
 license                 GPL-2
 version                 1.23.1
-revision                3
+revision                4
 categories              shells
 platforms               darwin
 maintainers             nomaintainer
@@ -38,7 +38,8 @@
                         --without-xsel
 # ticket #29839
 patchfiles              patch-fix-freeze.diff \
-                        patch-share_config_fish.diff
+                        patch-share_config_fish.diff \
+                        patch-alias_function.diff
 
 post-patch {
     reinplace "s|@@PREFIX@@|${prefix}/bin|g"     "${worksrcpath}/share/config.fish.in"

Added: trunk/dports/shells/fish/files/patch-alias_function.diff
===================================================================
--- trunk/dports/shells/fish/files/patch-alias_function.diff	                        (rev 0)
+++ trunk/dports/shells/fish/files/patch-alias_function.diff	2012-11-07 13:57:21 UTC (rev 99484)
@@ -0,0 +1,14 @@
+--- share/functions/alias.fish.orig	2012-11-07 14:52:32.000000000 +0100
++++ share/functions/alias.fish	2012-11-07 14:52:44.000000000 +0100
+@@ -14,9 +14,8 @@
+ 	switch (count $argv)
+ 
+ 		case 1
+-			set -l tmp (echo $argv|sed -e "s/\([^=]\)=/\1\n/")
+-			set name $tmp[1]
+-			set body $tmp[2]
++			set name (echo $argv| cut -d\= -f 1)
++			set body (echo $argv| cut -d\= -f 2-)
+ 
+ 		case 2
+ 			set name $argv[1]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20121107/b66916c1/attachment-0001.html>


More information about the macports-changes mailing list