diff --git a/mail/fetchmail/Portfile b/mail/fetchmail/Portfile index 36e99a2a2cef..03ff04cd9f58 100644 --- a/mail/fetchmail/Portfile +++ b/mail/fetchmail/Portfile @@ -42,7 +42,8 @@ subport fetchmail-devel { revision 1 checksums rmd160 fd6ec69e643c538c626243f1592121859c78f6da \ - sha256 25d8dcf6cbbccaf9f407cbcd85df7805b917a3ce9c5215011a719337a5bb86bc + sha256 25d8dcf6cbbccaf9f407cbcd85df7805b917a3ce9c5215011a719337a5bb86bc \ + size 1251904 conflicts fetchmail } @@ -53,17 +54,32 @@ master_sites sourceforge:project/${name}/branch_${branch} use_xz yes -depends_lib port:gettext \ - port:kerberos5 +set py_ver 3.12 +set py_ver_nodot [string map {. {}} ${py_ver}] -configure.args --mandir=${prefix}/share/man \ +depends_build-append \ + port:gettext \ + port:python${py_ver_nodot} + +depends_lib-append port:gettext-runtime \ + port:kerberos5 \ + port:libiconv + +configure.python ${prefix}/bin/python${py_ver} + +configure.args-append \ + --mandir=${prefix}/share/man \ + --with-gssapi \ --with-libiconv-prefix=${prefix} \ - --without-ssl --with-kerberos5=${prefix} --with-gssapi + --with-kerberos5=${prefix} \ + --without-ssl default_variants +ssl +build.env-append PYTHON=${configure.python} + post-destroot { - if { ! [variant_isset fetchmailconf] } { + if {![variant_isset fetchmailconf]} { system "find ${destroot} -type f -iname '*fetchmailconf*' -delete" } }