Skip to content

Commit

Permalink
fetchmail: fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
barracuda156 committed Jul 6, 2024
1 parent c71ae0f commit c45b1d7
Showing 1 changed file with 22 additions and 6 deletions.
28 changes: 22 additions & 6 deletions mail/fetchmail/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ subport fetchmail-devel {
revision 1

checksums rmd160 fd6ec69e643c538c626243f1592121859c78f6da \
sha256 25d8dcf6cbbccaf9f407cbcd85df7805b917a3ce9c5215011a719337a5bb86bc
sha256 25d8dcf6cbbccaf9f407cbcd85df7805b917a3ce9c5215011a719337a5bb86bc \
size 1251904

conflicts fetchmail
}
Expand All @@ -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"
}
}
Expand Down

0 comments on commit c45b1d7

Please sign in to comment.