|
|
@ -1,21 +1,19 @@ |
|
|
|
# Copyright 1999-2017 Gentoo Foundation |
|
|
|
# Copyright 1999-2019 Gentoo Authors |
|
|
|
# Distributed under the terms of the GNU General Public License v2 |
|
|
|
|
|
|
|
EAPI=6 |
|
|
|
EAPI=7 |
|
|
|
|
|
|
|
inherit autotools eutils multilib-minimal toolchain-funcs |
|
|
|
inherit autotools multilib-minimal toolchain-funcs |
|
|
|
|
|
|
|
DESCRIPTION="highly optimized and portable routines for integer based number theoretic applications" |
|
|
|
HOMEPAGE="https://github.com/libtom/libtommath" |
|
|
|
DESCRIPTION="Optimized and portable routines for integer theoretic applications" |
|
|
|
HOMEPAGE="http://www.libtom.net/" |
|
|
|
SRC_URI="https://github.com/libtom/libtommath/releases/download/v${PV}/ltm-${PV}.tar.xz" |
|
|
|
|
|
|
|
LICENSE="WTFPL-2" |
|
|
|
SLOT="0" |
|
|
|
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos" |
|
|
|
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos" |
|
|
|
IUSE="doc examples static-libs" |
|
|
|
|
|
|
|
DEPEND="sys-devel/libtool" |
|
|
|
|
|
|
|
src_prepare() { |
|
|
|
default |
|
|
|
# need libtool for cross compilation. Bug #376643 |
|
|
@ -28,6 +26,7 @@ src_prepare() { |
|
|
|
EOF |
|
|
|
touch NEWS README AUTHORS ChangeLog Makefile.am |
|
|
|
eautoreconf |
|
|
|
export LIBTOOL="${S}"/libtool |
|
|
|
multilib_copy_sources |
|
|
|
} |
|
|
|
|
|
|
@ -58,9 +57,12 @@ src_test() { |
|
|
|
} |
|
|
|
|
|
|
|
src_install() { |
|
|
|
multilib_foreach_abi _emake DESTDIR="${ED}" install |
|
|
|
multilib_foreach_abi _emake DESTDIR="${D}" install |
|
|
|
# We only link against -lc, so drop the .la file. |
|
|
|
find "${ED}" -name '*.la' -delete |
|
|
|
find "${ED}" -name '*.la' -delete || die |
|
|
|
if ! use static-libs ; then |
|
|
|
find "${ED}" -name "*.a" -delete || die |
|
|
|
fi |
|
|
|
|
|
|
|
dodoc changes.txt |
|
|
|
|