mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2025-12-21 09:07:26 -08:00
dev-lang/polyml: fix deps and lto build
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
This commit is contained in:
parent
8fbc7a9c35
commit
1d44b65ee1
@ -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
|
||||
Loading…
x
Reference in New Issue
Block a user