[142561] trunk/dports/sysutils/autojump/Portfile

mk at macports.org mk at macports.org
Sat Dec 12 06:16:45 PST 2015


Revision: 142561
          https://trac.macports.org/changeset/142561
Author:   mk at macports.org
Date:     2015-11-15 09:47:14 -0800 (Sun, 15 Nov 2015)
Log Message:
-----------
autojump: fix broken port (see #49212)

Modified Paths:
--------------
    trunk/dports/sysutils/autojump/Portfile

Modified: trunk/dports/sysutils/autojump/Portfile
===================================================================
--- trunk/dports/sysutils/autojump/Portfile	2015-11-15 17:37:18 UTC (rev 142560)
+++ trunk/dports/sysutils/autojump/Portfile	2015-11-15 17:47:14 UTC (rev 142561)
@@ -5,6 +5,7 @@
 PortGroup           github 1.0
 
 github.setup        wting autojump 22.2.4 release-v
+revision            1
 categories          sysutils
 platforms           darwin
 maintainers         nomaintainer
@@ -21,7 +22,6 @@
 depends_run         port:python27
 
 post-patch {
-    reinplace "s:/etc/profile.d:${prefix}/etc/profile.d:g" ${worksrcpath}/bin/autojump.sh
     reinplace "s:/usr/bin/env python:${prefix}/bin/python2.7:g" ${worksrcpath}/bin/autojump
 }
 
@@ -29,27 +29,26 @@
 
 build {}
 
-destroot {
-    xinstall -m 755 -W ${worksrcpath}/bin autojump ${destroot}${prefix}/bin/
-    xinstall -m 755 -W ${worksrcpath}/docs autojump.1 ${destroot}${prefix}/share/man/man1/
-    xinstall -d ${destroot}${prefix}/etc/profile.d/
-    xinstall -m 644 -W ${worksrcpath}/bin autojump.sh autojump.bash autojump.zsh ${destroot}${prefix}/etc/profile.d/
-    xinstall -d ${destroot}${prefix}/share/zsh/site-functions/
-    xinstall -m 644 -W ${worksrcpath}/bin _j ${destroot}${prefix}/share/zsh/site-functions/
-}
+destroot.cmd    ${prefix}/bin/python2.7
+destroot.args   install.py --force
+destroot.target {}
+destroot.destdir --destdir=${destroot}${prefix} --zshshare=${destroot}${prefix}/share/zsh/site-functions
 
+post-destroot {
+    reinplace "s:${destroot}${prefix}:${prefix}:g" ${destroot}${prefix}/etc/profile.d/autojump.sh
+}
 notes "
-To use autojump for bash, add the following to the end of your .bash_profile:
+To use autojump for bash, add the following to the end of your .bashrc:
 
-if \[ -f ${prefix}/etc/profile.d/autojump.bash \]; then
-    . ${prefix}/etc/profile.d/autojump.bash
+if \[ -f ${prefix}/etc/profile.d/autojump.sh \]; then
+    . ${prefix}/etc/profile.d/autojump.sh
 fi
 
 To use autojump for zsh, add the following to the end of your .zshrc:
 
 export FPATH=\"\$FPATH:${prefix}/share/zsh/site-functions/\"
-if \[ -f ${prefix}/etc/profile.d/autojump.zsh \]; then
-    . ${prefix}/etc/profile.d/autojump.zsh
+if \[ -f ${prefix}/etc/profile.d/autojump.sh \]; then
+    . ${prefix}/etc/profile.d/autojump.sh
 fi
 
 To use zsh tab completion, load compinit in your .zshrc:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20151212/0c7c3c11/attachment.html>


More information about the macports-changes mailing list