1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 inherit autotools pax-utils
8 DESCRIPTION="Poly/ML is a full implementation of Standard ML"
9 HOMEPAGE="https://www.polyml.org"
10 SRC_URI="https://codeload.github.com/polyml/polyml/tar.gz/v${PV} -> ${P}.tar.gz"
14 KEYWORDS="~amd64 ~x86"
15 IUSE="X elibc_glibc +gmp portable test +threads"
16 RESTRICT="!test? ( test )"
18 RDEPEND="X? ( x11-libs/motif:0 )
19 gmp? ( >=dev-libs/gmp-5 )
20 elibc_glibc? ( threads? ( >=sys-libs/glibc-2.13 ) )
25 "${FILESDIR}"/${PN}-5.6-configure.patch
26 "${FILESDIR}"/${PN}-5.6-ffi3.patch
38 --with-system-libffi \
42 $(use_with portable) \
47 # Bug 453146 - dev-lang/polyml-5.5.0: fails to build (pax kernel?)
48 pushd libpolyml || die "Could not cd to libpolyml"
52 pax-mark m "${S}/.libs/polyimport"
54 pax-mark m "${S}/.libs/poly"