From 8af93c014c2cec57b4f93b963756266f5967c35c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Van=C4=9Bk?= Date: Wed, 7 Aug 2024 13:00:30 +0200 Subject: [PATCH] net-mail/mailfront: respect AR, RANLIB and LDFLAGS MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes: https://bugs.gentoo.org/727834 Closes: https://bugs.gentoo.org/792249 Closes: https://bugs.gentoo.org/792252 Signed-off-by: Petr Vaněk --- net-mail/mailfront/mailfront-2.22-r1.ebuild | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/net-mail/mailfront/mailfront-2.22-r1.ebuild b/net-mail/mailfront/mailfront-2.22-r1.ebuild index 1ca496fbbd323..d7880f49f5c71 100644 --- a/net-mail/mailfront/mailfront-2.22-r1.ebuild +++ b/net-mail/mailfront/mailfront-2.22-r1.ebuild @@ -19,13 +19,26 @@ RDEPEND="${DEPEND} virtual/qmail net-libs/cvm" +src_prepare() { + default + local sed_args=( + # make compilation more verbose + -e '/exec/ {h;s/exec/echo/g;G}' + # replace AR and be more verbose, bug #792249 + -e "/ar cr/ {h;s/ar/echo &/;G;s:ar:$(tc-getAR):g}" + # replace RANLIB and be more verbose, bug #792252 + -e "/ranlib/ {h;s/ranlib/echo &/;G;s:ranlib:$(tc-getRANLIB):g}" + ) + sed -i "${sed_args[@]}" Makefile || die +} + src_configure() { echo "${EPREFIX}/var/qmail" > conf-qmail || die echo "/var/qmail/bin" > conf-bin || die echo "/usr/$(get_libdir)/mailfront" > conf-modules || die echo "/usr/include" > conf-include || die echo "$(tc-getCC) ${CFLAGS}" > conf-cc || die - echo "$(tc-getCC) ${CFLAGS} -fPIC -shared" > conf-ccso || die + echo "$(tc-getCC) ${CFLAGS} -fPIC -shared ${LDFLAGS}" > conf-ccso || die echo "$(tc-getCC) ${LDFLAGS}" > conf-ld || die }