-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
/
Portfile
67 lines (49 loc) · 1.9 KB
/
Portfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# -*- 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
PortSystem 1.0
PortGroup python 1.0
PortGroup github 1.0
github.setup wting autojump 22.5.3 release-v
revision 3
categories-prepend sysutils
maintainers nomaintainer
license GPL-3+
supported_archs noarch
platforms any
description a cd command that learns
long_description ${name} is {*}${description}.
checksums rmd160 3d4feaf96158b76cb94a14049c1a81108b2bb4f4 \
sha256 00e86809cef2529d77ff8ed88fa59910024411e9e6594ddb042ae1e0eda5aaae \
size 55445
python.default_version 311
python.pep517 no
post-patch {
reinplace "s:/usr/bin/env python:${python.bin}:g" ${worksrcpath}/bin/autojump
}
build {}
destroot.cmd ${python.bin} install.py
destroot.args --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
}
depends_test-append \
port:py${python.version}-pytest \
port:py${python.version}-mock
test.run yes
test.cmd py.test-${python.branch}
test.target
test.env PYTHONPATH=${worksrcpath}/build/lib
notes "
To use autojump for bash, add the following to the end of your .bashrc:
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.sh \]; then
. ${prefix}/etc/profile.d/autojump.sh
fi
To use zsh tab completion, load compinit in your .zshrc:
autoload -U compinit; compinit
"