[dev-libs/Ice] use eapi7-ver, sort useflags

This commit is contained in:
2018-04-14 14:49:46 +02:00
parent 9708fd2740
commit 3c43475d07
3 changed files with 18 additions and 10 deletions

View File

@@ -1,8 +1,7 @@
# Copyright 1999-2015 Gentoo Foundation
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
EAPI=6
inherit autotools-multilib eutils multilib toolchain-funcs
@@ -16,9 +15,9 @@ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~s
IUSE="doc examples static-libs"
DEPEND="sys-devel/libtool"
RDEPEND=""
src_prepare() {
default
# need libtool for cross compilation. Bug #376643
cat <<-EOF > configure.ac
AC_INIT(libtommath, 0)
@@ -38,7 +37,11 @@ src_configure() {
_emake() {
cd ${BUILD_DIR}
emake CC="$(tc-getCC)" -f makefile.shared \
emake \
CC="$(tc-getCC)" \
AR="$(tc-getAR)" \
RANLIB="$(tc-getRANLIB)" \
-f makefile.shared \
IGNORE_SPEED=1 \
LIBPATH="${EPREFIX}/usr/$(get_libdir)" \
INCPATH="${EPREFIX}/usr/include" \
@@ -49,6 +52,11 @@ src_compile() {
multilib_foreach_abi _emake
}
src_test() {
multilib_foreach_abi _emake test_standalone
multilib_foreach_abi ./test || die
}
src_install() {
multilib_foreach_abi _emake DESTDIR="${ED}" install
# We only link against -lc, so drop the .la file.