Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/libtommath/
Date: Fri, 01 Feb 2019 17:02:56
Message-Id: 1549040565.23c81c440a1a6baeca38f377415d749d055c4643.polynomial-c@gentoo
1 commit: 23c81c440a1a6baeca38f377415d749d055c4643
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Fri Feb 1 17:01:14 2019 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Fri Feb 1 17:02:45 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=23c81c44
7
8 dev-libs/libtommath: Bump to version 1.1.0
9
10 Package-Manager: Portage-2.3.59, Repoman-2.3.12
11 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
12
13 dev-libs/libtommath/Manifest | 1 +
14 dev-libs/libtommath/libtommath-1.1.0.ebuild | 75 +++++++++++++++++++++++++++++
15 2 files changed, 76 insertions(+)
16
17 diff --git a/dev-libs/libtommath/Manifest b/dev-libs/libtommath/Manifest
18 index 1b15f3aaffe..64746e492b7 100644
19 --- a/dev-libs/libtommath/Manifest
20 +++ b/dev-libs/libtommath/Manifest
21 @@ -1,3 +1,4 @@
22 DIST libtommath-0.42.0.tar.gz 1732144 BLAKE2B 624697bfa0bab0244783c3d2c92df2a1c0418611dc7f25989d038a5689beae325a426d8de38967ec856bd1e6f2d9413615333eebbf9316add838deda5b122de3 SHA512 d26e7737e5750530a7b96432502f0d458931e67af528872c46ad8dfc921b8f6ef4b3e05cb07d22bd13a8b24db65812928ae4c381250a4df95f6ca55efc3dae23
23 DIST ltm-1.0.1.tar.xz 2210120 BLAKE2B e616f0359a1fffe8e1280dc24df1a83eb568d55f9f8acd0e4016fdd63b8ef10d939a8acbd4d49d70a69adf0e492ea5127200798f02af6af1c30e2e1f57870e3a SHA512 f98f7b0f91268e898803478fd52f578f476d378d096a25e48fa2e291159dc89bd1a6dc7d8c5c2254df840c731e5d009ec9728b72190318b6d1ba2916f5c66fb6
24 DIST ltm-1.0.tar.xz 2191540 BLAKE2B 8794d81558f8e4236256c12201e03aad423b9e69ebd35fde941bd0e70174509a09973ad5cdf432c5c0cbf43f78693351782d9c2ea1085f2fa2a5bb77bafa89c5 SHA512 da2ced516106fb056373d97f9ac443805c57ebeb0a33982c14703d6dd8c3925e49aeb690b790ba91768ed5d41f5875dc50a3d3435dbb4088cfa3fddee9162082
25 +DIST ltm-1.1.0.tar.xz 2125456 BLAKE2B 3aca7993704341f6a81e7fbef35389ac8ecd957dd78b5d576f0305d37493c3ddc32462cd787de2fb67d8e165417b18fcfde70accf991cd9433ff87591d8265ac SHA512 6d1b8b09d5b975a2b84ef6ab9cb1cc63db2f0503a906e499cb9d7eaba3f487be6e7f69bf692b188f888418c61ea563aa7e2411638d8979eac426b3d603ad1b91
26
27 diff --git a/dev-libs/libtommath/libtommath-1.1.0.ebuild b/dev-libs/libtommath/libtommath-1.1.0.ebuild
28 new file mode 100644
29 index 00000000000..742f169f67a
30 --- /dev/null
31 +++ b/dev-libs/libtommath/libtommath-1.1.0.ebuild
32 @@ -0,0 +1,75 @@
33 +# Copyright 1999-2019 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +
38 +inherit autotools toolchain-funcs
39 +
40 +DESCRIPTION="Optimized and portable routines for integer theoretic applications"
41 +HOMEPAGE="http://www.libtom.net/"
42 +SRC_URI="https://github.com/libtom/libtommath/releases/download/v${PV}/ltm-${PV}.tar.xz"
43 +
44 +LICENSE="WTFPL-2"
45 +SLOT="0"
46 +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"
47 +IUSE="doc examples static-libs"
48 +
49 +DEPEND="sys-devel/libtool"
50 +
51 +src_prepare() {
52 + default
53 + # need libtool for cross compilation. Bug #376643
54 + cat <<-EOF > configure.ac
55 + AC_INIT(libtommath, 0)
56 + AM_INIT_AUTOMAKE
57 + LT_INIT
58 + AC_CONFIG_FILES(Makefile)
59 + AC_OUTPUT
60 + EOF
61 + touch NEWS README AUTHORS ChangeLog Makefile.am
62 + eautoreconf
63 + export LT="${S}"/libtool
64 +}
65 +
66 +src_configure() {
67 + econf $(use_enable static-libs static)
68 +}
69 +
70 +_emake() {
71 + emake \
72 + CC="$(tc-getCC)" \
73 + AR="$(tc-getAR)" \
74 + RANLIB="$(tc-getRANLIB)" \
75 + -f makefile.shared \
76 + IGNORE_SPEED=1 \
77 + LIBPATH="${EPREFIX}/usr/$(get_libdir)" \
78 + INCPATH="${EPREFIX}/usr/include" \
79 + "$@"
80 +}
81 +
82 +src_compile() {
83 + _emake
84 +}
85 +
86 +src_test() {
87 + _emake test_standalone
88 + ./test || die
89 +}
90 +
91 +src_install() {
92 + _emake DESTDIR="${D}" install
93 + # We only link against -lc, so drop the .la file.
94 + find "${ED}" -name '*.la' -delete || die
95 + if ! use static-libs ; then
96 + find "${ED}" -name "*.a" -delete || die
97 + fi
98 +
99 + dodoc changes.txt
100 +
101 + use doc && dodoc *.pdf
102 +
103 + if use examples ; then
104 + docinto demo
105 + dodoc demo/*.c
106 + fi
107 +}