-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
/
Portfile
92 lines (73 loc) · 3.09 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
# -*- 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
PortGroup legacysupport 1.1
github.setup universal-ctags ctags 6.1.20240714.0 p
name universal-ctags
epoch 1
revision 0
categories devel
platforms darwin
license GPL-2+
maintainers {@kaimingguo gmail.com:augustin.guo} \
{@catap korins.ky:kirill} \
{@judaew judaew} \
openmaintainer
description A maintained ctags implementation
long_description \
universal-ctags has the objective of continuing the development from what \
existed in the Sourceforge area. Github exuberant-ctags repository was \
started by Reza Jelveh and was later moved to the universal-ctags organization.
homepage https://ctags.io
checksums rmd160 f5ea94bb8ae1a1cff4704de518ae1934024857c7 \
sha256 2006b50c95cdb7a132c8e3275d5e8bc59a982a5d33c71298986dc85296fffaac \
size 3167579
# LegacySupport is needed for strnlen before 10.7
legacysupport.newest_darwin_requires_legacy 10
use_autoconf yes
autoconf.cmd ./autogen.sh
configure.args --program-prefix=u --enable-json --enable-yaml
depends_build port:autoconf \
port:automake \
port:pkgconfig \
port:libtool
depends_lib port:jansson \
port:pcre2 \
port:libyaml
universal_variant no
default_variants +iconv +libxml2 +manpages
variant aspell description {Enable aspell backend} {
depends_lib-append port:aspell
depends_run port:aspell-dict-en
configure.args-append --enable-aspell
}
variant debug description {Build with debug support} {
configure.args-append --enable-debugging
}
variant iconv description {Add iconv support} {
depends_lib-append port:libiconv
configure.args-append --enable-iconv
}
variant libxml2 description {Extra support for XML based languages} {
depends_lib-append port:libxml2
configure.args-append --enable-xml
}
variant manpages description {Enable documentation} {
set python_branch 3.12
set python_version [string map {. {}} ${python_branch}]
depends_build-append port:py${python_version}-docutils
configure.args-append --with-rst2man=${prefix}/bin/rst2man-${python_branch} \
--with-rst2html=${prefix}/bin/rst2html-${python_branch}
}
variant link_to_ctags description {Create a link from uctags to ctags} {
conflicts ctags
post-destroot {
ln -s ${prefix}/bin/uctags ${destroot}${prefix}/bin/ctags
}
notes-append {
The link_to_ctags variant conflicts with the `ctag` (Exuberant Ctags)
and `global` (GNU Global) ports. In the case of the global port, the
issue is that it depends on Exuberant Ctags and Universal Ctags at
the same time.
}
}