Gentoo Archives: gentoo-commits

From: Patrick Lauer <patrick@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/libtommath/
Date: Sun, 28 Feb 2016 21:04:30
Message-Id: 1456693401.975fdb0e4a2cb60729540035e4e4731ab34eb7cc.patrick@gentoo
1 commit: 975fdb0e4a2cb60729540035e4e4731ab34eb7cc
2 Author: Patrick Lauer <patrick <AT> gentoo <DOT> org>
3 AuthorDate: Sun Feb 28 21:03:06 2016 +0000
4 Commit: Patrick Lauer <patrick <AT> gentoo <DOT> org>
5 CommitDate: Sun Feb 28 21:03:21 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=975fdb0e
7
8 dev-libs/libtommath: Bump #575848
9
10 Package-Manager: portage-2.2.27
11
12 dev-libs/libtommath/Manifest | 1 +
13 dev-libs/libtommath/libtommath-1.0.ebuild | 64 +++++++++++++++++++++++++++++++
14 2 files changed, 65 insertions(+)
15
16 diff --git a/dev-libs/libtommath/Manifest b/dev-libs/libtommath/Manifest
17 index 741f088..f5c3d88 100644
18 --- a/dev-libs/libtommath/Manifest
19 +++ b/dev-libs/libtommath/Manifest
20 @@ -1 +1,2 @@
21 DIST libtommath-0.42.0.tar.gz 1732144 SHA256 5246356ba18c1b6edf4a7bc836a3d223842b86914cdba6dd8c112bfc59e227c8 SHA512 d26e7737e5750530a7b96432502f0d458931e67af528872c46ad8dfc921b8f6ef4b3e05cb07d22bd13a8b24db65812928ae4c381250a4df95f6ca55efc3dae23 WHIRLPOOL beab5007a204042fd0a5b86ccc639ee37d82bb4afe2ceebcfe062deffaa259c8a699c81a52e804c2a79cb36914d805c81826a6e456523f729063240d1bfca9e6
22 +DIST libtommath-1.0.tar.gz 643248 SHA256 5a0d4f9a72dfbacb05cb5dbc545cffe58b08c103506de68b278dc76d05cfe010 SHA512 2744caa886d179a23a96b51dbf0c9090a7a4e923bb4b9c22d3e92fde73e11222861806018f565f3d5425d2ba31b9bb9e1dbf098bfc37d1fd26d33ceb81a8657e WHIRLPOOL 4830fb5a1802908652e4d4629cc205a55a267d60400041685f3c13fb03d2aff5b3e7f9a0b99e7813aaebf6cb41399c9a373de6296514215ac2fdfde90531d5ce
23
24 diff --git a/dev-libs/libtommath/libtommath-1.0.ebuild b/dev-libs/libtommath/libtommath-1.0.ebuild
25 new file mode 100644
26 index 0000000..544a4c6
27 --- /dev/null
28 +++ b/dev-libs/libtommath/libtommath-1.0.ebuild
29 @@ -0,0 +1,64 @@
30 +# Copyright 1999-2015 Gentoo Foundation
31 +# Distributed under the terms of the GNU General Public License v2
32 +# $Id$
33 +
34 +EAPI=5
35 +
36 +inherit autotools eutils multilib toolchain-funcs
37 +
38 +DESCRIPTION="highly optimized and portable routines for integer based number theoretic applications"
39 +HOMEPAGE="https://github.com/libtom/libtommath"
40 +SRC_URI="https://github.com/libtom/libtommath/archive/v${PV}.tar.gz -> ${P}.tar.gz"
41 +
42 +LICENSE="WTFPL-2"
43 +SLOT="0"
44 +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"
45 +IUSE="doc examples static-libs"
46 +
47 +DEPEND="sys-devel/libtool"
48 +RDEPEND=""
49 +
50 +src_prepare() {
51 + # need libtool for cross compilation. Bug #376643
52 + cat <<-EOF > configure.ac
53 + AC_INIT(libtommath, 0)
54 + AM_INIT_AUTOMAKE
55 + LT_INIT
56 + AC_CONFIG_FILES(Makefile)
57 + AC_OUTPUT
58 + EOF
59 + touch NEWS README AUTHORS ChangeLog Makefile.am
60 + eautoreconf
61 + export LT="${S}"/libtool
62 +}
63 +
64 +src_configure() {
65 + econf $(use_enable static-libs static)
66 +}
67 +
68 +_emake() {
69 + emake CC="$(tc-getCC)" -f makefile.shared \
70 + IGNORE_SPEED=1 \
71 + LIBPATH="${EPREFIX}/usr/$(get_libdir)" \
72 + INCPATH="${EPREFIX}/usr/include" \
73 + "$@"
74 +}
75 +
76 +src_compile() {
77 + _emake
78 +}
79 +
80 +src_install() {
81 + _emake DESTDIR="${ED}" install
82 + # We only link against -lc, so drop the .la file.
83 + find "${ED}" -name '*.la' -delete
84 +
85 + dodoc changes.txt
86 +
87 + use doc && dodoc *.pdf
88 +
89 + if use examples ; then
90 + docinto demo
91 + dodoc demo/*.c
92 + fi
93 +}