-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Expand file tree
/
Copy pathPortfile
More file actions
73 lines (59 loc) · 2.41 KB
/
Portfile
File metadata and controls
73 lines (59 loc) · 2.41 KB
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
68
69
70
71
72
73
# -*- 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 github 1.0
github.setup scop bash-completion 2.17.0
revision 1
epoch 1
categories sysutils
platforms any
supported_archs noarch
license GPL-2+
maintainers {raimue @raimue}
description Programmable bash completions
long_description \
Programmable completion library for bash. This port requires bash >=4.1 and \
is meant to be used together with the bash port.
github.tarball_from releases
use_xz yes
checksums rmd160 6c09f1d7af2d991f835b3247f76094a7f0f01e14 \
sha256 dd9d825e496435fb3beba3ae7bea9f77e821e894667d07431d1d4c8c570b9e58 \
size 482896
depends_run port:bash
patchfiles patch-vpnc.diff \
patch-xpdf-support-compressed-pdf.diff
post-patch {
reinplace "s:/etc/bash_completion:${prefix}/etc/bash_completion:g" \
${worksrcpath}/bash_completion
reinplace "s:readlink -f:readlink:g" \
${worksrcpath}/bash_completion
# Fix vpnc config location, #29281
reinplace "s:@@PREFIX@@:${prefix}:g" \
${worksrcpath}/completions/vpnc
}
use_autoreconf yes
autoreconf.args --verbose --force --install
post-destroot {
xinstall -m 644 -W ${filespath} port launchctl \
${destroot}${prefix}/share/bash-completion/completions/
# Add a link for compatibility with versions <2.0 of this port
ln -s ${prefix}/etc/profile.d/bash_completion.sh ${destroot}${prefix}/etc/bash_completion
# patchutil >= 0.4.3 contains the bash completions
file delete ${destroot}${prefix}/share/bash-completion/completions/interdiff
}
notes "
To use bash_completion, add the following lines at the end of your .bash_profile:
if \[ -f ${prefix}/etc/profile.d/bash_completion.sh ]; then
. ${prefix}/etc/profile.d/bash_completion.sh
fi
"
if {${os.platform} eq "darwin" && ${os.subplatform} eq "macosx"} {
# Insert an empty line into the notes
notes-append ""
notes-append "
The port bash-completion >=2.0 requires bash >=4.1; please make sure
you are using ${prefix}/bin/bash by changing the preferences of your
terminal accordingly. If your version of bash is too old, the script
above will not modify your shell environment and no extended completion
will be available.
"
}