Commits

Marius Schamschula authored 6f033a07309
zeek: set Python version as variant

Closes: https://trac.macports.org/ticket/59853
No tags

net/zeek/Portfile

Modified
30 30 }
31 31
32 32 checksums rmd160 d94d29d1854e7b7b4923e1231fa88d20bf79cc82 \
33 33 sha256 66e838c03c448429497626903683224a61ac76ab365f5f2c5a9a14e7c7ad993a \
34 34 size 13165585
35 35
36 36 depends_build path:bin/cmake:cmake \
37 37 port:libgeoip \
38 38 port:swig-python
39 39
40 +variant python37 conflicts python38 description {Build using Python 3.7} {
41 + set PythonBranch 37
42 +}
43 +
44 +variant python38 conflicts python37 description {Build using Python 3.8} {
45 + set PythonBranch 38
46 +}
47 +
48 +if {![variant_isset python37] && ![variant_isset python38]} {
49 + default_variants +python38
50 + set PythonBranch 38
51 +}
52 +
40 53 # use the system-provided flex
41 54 depends_lib-append port:bison \
42 55 port:caf \
43 56 port:curl \
44 57 port:libmagic \
45 58 port:libpcap \
46 59 path:lib/libssl.dylib:openssl \
47 60 port:perl5 \
48 - port:python37 \
61 + port:python${PythonBranch} \
49 62 port:readline \
50 63 port:zlib
51 64
52 65 variant universal {}
53 66
54 67 configure.cflags-append "${configure.cflags} [get_canonical_archflags cc]"
55 68 configure.universal_args
56 69
57 70 configure.args --enable-mobile-ipv6 \
58 71 --conf-files-dir=${prefix}/etc/zeek \

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut