source: trunk/dports/sysutils/autojump/Portfile

Last change on this file was 153661, checked in by mk@…, 2 months ago

autojump: update to 22.5.0

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.6 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 153661 2016-10-07 01:33:06Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           github 1.0
6
7github.setup        wting autojump 22.5.0 release-v
8categories          sysutils
9platforms           darwin
10maintainers         nomaintainer
11license             GPL-3+
12supported_archs     noarch
13
14description         a cd command that learns
15
16long_description    ${name} is ${description}.
17
18checksums           rmd160  d2bd4be97b81505ee05f6f7aaa33c42cbefee375 \
19                    sha256  50858806a51ee9ba109d34fbdecc5ebdeb70fcd0b0eeb4a3c4403c496475f3f7
20
21depends_run         port:python27
22
23post-patch {
24    reinplace "s:/usr/bin/env python:${prefix}/bin/python2.7:g" ${worksrcpath}/bin/autojump
25}
26
27use_configure       no
28
29build {}
30
31destroot.cmd    ${prefix}/bin/python2.7
32destroot.args   install.py --force
33destroot.target {}
34destroot.destdir --destdir=${destroot}${prefix} --zshshare=${destroot}${prefix}/share/zsh/site-functions
35
36post-destroot {
37    reinplace "s:${destroot}${prefix}:${prefix}:g" ${destroot}${prefix}/etc/profile.d/autojump.sh
38}
39notes "
40To use autojump for bash, add the following to the end of your .bashrc:
41
42if \[ -f ${prefix}/etc/profile.d/autojump.sh \]; then
43    . ${prefix}/etc/profile.d/autojump.sh
44fi
45
46To use autojump for zsh, add the following to the end of your .zshrc:
47
48export FPATH=\"\$FPATH:${prefix}/share/zsh/site-functions/\"
49if \[ -f ${prefix}/etc/profile.d/autojump.sh \]; then
50    . ${prefix}/etc/profile.d/autojump.sh
51fi
52
53To use zsh tab completion, load compinit in your .zshrc:
54
55autoload -U compinit; compinit
56"
Note: See TracBrowser for help on using the repository browser.