[99420] trunk/dports/shells/fish
and.damore at macports.org
and.damore at macports.org
Sun Nov 4 12:07:31 PST 2012
Revision: 99420
http://trac.macports.org//changeset/99420
Author: and.damore at macports.org
Date: 2012-11-04 12:07:31 -0800 (Sun, 04 Nov 2012)
Log Message:
-----------
port fish: adding revision, adding license, moving ${prefix}/bin at start of default PATH; nomantainer
Modified Paths:
--------------
trunk/dports/shells/fish/Portfile
Added Paths:
-----------
trunk/dports/shells/fish/files/patch-share_config_fish.diff
Modified: trunk/dports/shells/fish/Portfile
===================================================================
--- trunk/dports/shells/fish/Portfile 2012-11-04 20:04:38 UTC (rev 99419)
+++ trunk/dports/shells/fish/Portfile 2012-11-04 20:07:31 UTC (rev 99420)
@@ -4,8 +4,9 @@
PortSystem 1.0
name fish
+license GPL-2
version 1.23.1
-revision 1
+revision 2
categories shells
platforms darwin
maintainers nomaintainer
@@ -35,8 +36,13 @@
configure.args --mandir=${prefix}/share/man \
--without-xsel
# ticket #29839
-patchfiles patch-fix-freeze.diff
+patchfiles patch-fix-freeze.diff \
+ patch-share_config_fish.diff
+post-patch {
+ reinplace "s|@@PREFIX@@|${prefix}/bin|g" "${worksrcpath}/share/config.fish.in"
+}
+
platform darwin {
# there's something wonky about the libiconv headers installed by
# macports that prevents autoconf from detecting libiconv, so i
Added: trunk/dports/shells/fish/files/patch-share_config_fish.diff
===================================================================
--- trunk/dports/shells/fish/files/patch-share_config_fish.diff (rev 0)
+++ trunk/dports/shells/fish/files/patch-share_config_fish.diff 2012-11-04 20:07:31 UTC (rev 99420)
@@ -0,0 +1,24 @@
+--- share/config.fish.in.orig 2012-11-04 20:14:03.000000000 +0100
++++ share/config.fish.in 2012-11-04 20:16:31.000000000 +0100
+@@ -88,6 +88,21 @@
+ end
+ end
+
++# MacPorts specific PATH setting, move ${prefix}/bin at PATH's head
++set MP_PREFIX @@PREFIX@@
++if contains $MP_PREFIX $PATH
++ set -e MP_PATH
++ for i in $PATH
++ if test $i != /opt/local/bin
++ set MP_PATH $MP_PATH $i
++ end
++ end
++ set MP_PATH $MP_PREFIX $MP_PATH
++end
++set PATH $MP_PATH
++set -e MP_PATH
++set -e MP_PREFIX
++
+ #
+ # Launch debugger on SIGTRAP
+ #
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20121104/039689f8/attachment.html>
More information about the macports-changes
mailing list