commit: 1d44b65ee1700981583e3c3348fee4f6a13a5cef
Author: Maciej Barć <xgqt <AT> gentoo <DOT> org>
AuthorDate: Tue Aug 19 15:29:41 2025 +0000
Commit: Maciej Barć <xgqt <AT> gentoo <DOT> org>
CommitDate: Tue Aug 19 15:45:00 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1d44b65e
dev-lang/polyml: fix deps and lto build
Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org>
.../polyml/{polyml-5.9.2.ebuild => polyml-5.9.2-r1.ebuild} | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
diff --git a/dev-lang/polyml/polyml-5.9.2.ebuild
b/dev-lang/polyml/polyml-5.9.2-r1.ebuild
similarity index 90%
rename from dev-lang/polyml/polyml-5.9.2.ebuild
rename to dev-lang/polyml/polyml-5.9.2-r1.ebuild
index 9b3c4c4dbadd..ee0dab0b793c 100644
--- a/dev-lang/polyml/polyml-5.9.2.ebuild
+++ b/dev-lang/polyml/polyml-5.9.2-r1.ebuild
@@ -3,7 +3,7 @@
EAPI=8
-inherit autotools
+inherit dot-a autotools
DESCRIPTION="Poly/ML is a full implementation of Standard ML"
HOMEPAGE="https://www.polyml.org/
@@ -25,11 +25,13 @@ SLOT="0/${PV}"
IUSE="X +gmp portable"
RDEPEND="
- dev-libs/libffi:=
X? ( x11-libs/motif:0 )
gmp? ( >=dev-libs/gmp-5:= )
+ portable? ( dev-libs/libffi:= )
+"
+DEPEND="
+ ${RDEPEND}
"
-DEPEND="${RDEPEND}"
PATCHES=(
"${FILESDIR}/polyml-5.9-c++11.patch"
@@ -41,6 +43,8 @@ src_prepare() {
}
src_configure() {
+ lto-guarantee-fat
+
local myconf=(
--enable-shared
--with-pic=pic-only
@@ -57,6 +61,7 @@ src_test() {
src_install() {
default
+ strip-lto-bytecode
if [[ -f "${ED}"/usr/$(get_libdir)/libpolymain.la ]] ; then
rm "${ED}"/usr/$(get_libdir)/libpolymain.la || die