[MacPorts] #65466: irssi needs perl build fixes
MacPorts
noreply at macports.org
Sat Jul 9 09:10:36 UTC 2022
#65466: irssi needs perl build fixes
----------------------+----------------------
Reporter: dgilman | Owner: l2dy
Type: defect | Status: reopened
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: irssi |
----------------------+----------------------
Comment (by jmroot):
I would suggest something like this:
{{{#!diff
diff --git a/irc/irssi/Portfile b/irc/irssi/Portfile
index 911e0b721cc..0187519366a 100644
--- a/irc/irssi/Portfile
+++ b/irc/irssi/Portfile
@@ -36,9 +36,11 @@ configure.args --without-socks \
--with-perl=no
variant perl description {Add Perl support} {
- depends_lib-append port:perl5 port:perl5.28
+ set perl5.major 5.34
+ depends_lib-append port:perl${perl5.major}
configure.args-replace --with-perl=no --with-perl=yes
- configure.args-append --with-perl-lib=${prefix}/lib/perl5/5.28
+ configure.args-append --with-perl-
lib=${prefix}/lib/perl5/${perl5.major}
+ configure.env-append perlpath=${prefix}/bin/perl${perl5.major}
}
default_variants +perl
}}}
A couple of other points: I'm not sure it's even desirable to use a custom
path with `--with-perl-lib`, it may be better to set it to `vendor`? Also,
`perllocal.pod` should not be installed.
--
Ticket URL: <https://trac.macports.org/ticket/65466#comment:5>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list