dev-lang/polyml: bump to 5.9.2

Signed-off-by: Maciej Barć <xgqt@gentoo.org>
This commit is contained in:
Maciej Barć
2025-08-09 15:49:09 +02:00
parent 1b35119736
commit bdcc7e8c65
2 changed files with 69 additions and 0 deletions

View File

@@ -1 +1,2 @@
DIST polyml-5.9.1.tar.gz 3887664 BLAKE2B ae10fc9c4097879fe05ab931c541cdab8a61755210e2f6b084e31a08490a762234ea32d18d9d60e3ec52407861106b1b85d0ca8a92d2bc3e97b1d14fbd57bf8e SHA512 e471abef01b7f2bfac6d847904c0fcef6ae5a1356b1246a2e8982d24fd590b49feb03752642efe09d34344b4faf89bc3edd4418e9993e72ea22e5482e6d37271
DIST polyml-5.9.2.gh.tar.gz 3878657 BLAKE2B 71659af033cd5349dd0fb2cfc0f5eb4f2de5878e463226c18ff97b02d06da0ab0700f8e219d7a992632f8c622d7b0b1df9f17300e4c6f4d5c8657af5c335270f SHA512 71aa5375c185b59f1da7805d610ceeb388472a204b0a88f2b42f100005cfe76cdd73e8fb1d15f518843218e5e075563b76e1f28082910c74c8e16892adce5996

View File

@@ -0,0 +1,68 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit autotools
DESCRIPTION="Poly/ML is a full implementation of Standard ML"
HOMEPAGE="https://www.polyml.org/
https://github.com/polyml/polyml/"
if [[ "${PV}" == *9999* ]] ; then
inherit git-r3
EGIT_REPO_URI="https://github.com/${PN}/${PN}"
else
SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz
-> ${P}.gh.tar.gz"
KEYWORDS="~amd64 ~x86"
fi
LICENSE="LGPL-2.1"
SLOT="0/${PV}"
IUSE="X +gmp portable"
RDEPEND="
dev-libs/libffi:=
X? ( x11-libs/motif:0 )
gmp? ( >=dev-libs/gmp-5:= )
"
DEPEND="${RDEPEND}"
PATCHES=(
"${FILESDIR}/polyml-5.9-c++11.patch"
)
src_prepare() {
default
eautoreconf
}
src_configure() {
local myconf=(
--enable-shared
--with-pic=pic-only
$(use_enable !portable native-codegeneration)
$(use_with X x)
$(use_with gmp)
)
econf "${myconf[@]}"
}
src_test() {
emake tests
}
src_install() {
default
if [[ -f "${ED}"/usr/$(get_libdir)/libpolymain.la ]] ; then
rm "${ED}"/usr/$(get_libdir)/libpolymain.la || die
fi
if [[ -f "${ED}"/usr/$(get_libdir)/libpolyml.la ]] ; then
rm "${ED}"/usr/$(get_libdir)/libpolyml.la || die
fi
}