[MacPorts] #72151: neomutt @20240329 -doc: Error: No usable pkg-config
MacPorts
noreply at macports.org
Thu May 1 16:57:53 UTC 2025
#72151: neomutt @20240329 -doc: Error: No usable pkg-config
------------------------+----------------------
Reporter: kprussing | Owner: l2dy
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.10.5
Resolution: | Keywords:
Port: neomutt |
------------------------+----------------------
Comment (by kprussing):
I was able to build neomutt by cloning the [https://github.com/macports
/macports-ports macport-ports] repository, applying the patch below, and
then running `port install` from the mail/neomutt directory. As I
mentioned above, this fixes the neomutt port, but would not fix any other
ports that run into the same issue. This also removed the need for me to
select the `-doc` variant (which fails now because
`${prefix}/etc/mime.types.sample` isn't created for that variant and the
post-activate step expects it to exist)
{{{
diff --git a/mail/neomutt/Portfile b/mail/neomutt/Portfile
index 3e9c02c15e5..a2430f11891 100644
--- a/mail/neomutt/Portfile
+++ b/mail/neomutt/Portfile
@@ -180,3 +180,13 @@ post-activate {
}
}
}
+
+pre-configure {
+ # Create an options to pass to command_exec to build jimsh0
+ options jimsh.cmd jimsh.dir
+
+ default jimsh.cmd {${configure.cc} -o jimsh0 autosetup/jimsh0.c}
+ default jimsh.dir {${worksrcpath}}
+
+ command_exec jimsh
+}
}}}
--
Ticket URL: <https://trac.macports.org/ticket/72151#comment:9>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list