From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 13CC7138334 for ; Sun, 25 Aug 2019 14:45:00 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 19029E07B3; Sun, 25 Aug 2019 14:44:59 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id E002CE07B3 for ; Sun, 25 Aug 2019 14:44:57 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 1358C34A26B for ; Sun, 25 Aug 2019 14:44:56 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 52C8A2A5 for ; Sun, 25 Aug 2019 14:44:53 +0000 (UTC) From: "罗百科" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "罗百科" Message-ID: <1566744276.086077afa79e55f21c9285dec27752f18a34833b.patrick@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sci-mathematics/gmp-ecm/ X-VCS-Repository: repo/gentoo X-VCS-Files: sci-mathematics/gmp-ecm/Manifest sci-mathematics/gmp-ecm/gmp-ecm-7.0.4.ebuild X-VCS-Directories: sci-mathematics/gmp-ecm/ X-VCS-Committer: patrick X-VCS-Committer-Name: 罗百科 X-VCS-Revision: 086077afa79e55f21c9285dec27752f18a34833b X-VCS-Branch: master Date: Sun, 25 Aug 2019 14:44:53 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 2e563728-1860-4f70-8fd8-3041c3c7c0cb X-Archives-Hash: d3db7a53bde7857bb0f3d950f083ad95 commit: 086077afa79e55f21c9285dec27752f18a34833b Author: Patrick Lauer gentoo org> AuthorDate: Sun Aug 25 14:44:13 2019 +0000 Commit: 罗百科 gentoo org> CommitDate: Sun Aug 25 14:44:36 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=086077af sci-mathematics/gmp-ecm: Bump Package-Manager: Portage-2.3.72, Repoman-2.3.17 Signed-off-by: Patrick Lauer gentoo.org> sci-mathematics/gmp-ecm/Manifest | 1 + sci-mathematics/gmp-ecm/gmp-ecm-7.0.4.ebuild | 55 ++++++++++++++++++++++++++++ 2 files changed, 56 insertions(+) diff --git a/sci-mathematics/gmp-ecm/Manifest b/sci-mathematics/gmp-ecm/Manifest index aa8aa2b10d4..5306618db19 100644 --- a/sci-mathematics/gmp-ecm/Manifest +++ b/sci-mathematics/gmp-ecm/Manifest @@ -1,2 +1,3 @@ DIST gmp-ecm-6.4.3.tar.gz 944719 BLAKE2B aa07f0b6c4a4b0d3bb36b596ddbaefd259b2387fa0295a829c8e239b0edde0e1f3887bff19a6b0b67083cbec7706fa41214a21eeca8b83eb4b3f7e3cc372c113 SHA512 71ccdf3b48e96b0acad45302c87a7b17a20ad289efde212a34fb11491531b96848f1824606fdab7604874ca7d8165baba4bbfbc8424e27e8844444ad0d4f56a6 DIST gmp-ecm-6.4.4.tar.gz 941058 BLAKE2B e83f02592a8bb86285f258fefc3e302cc5168888109e7f87835b25412baf526df58e5ea38347acfd926b90fac15b4103981a14aa7b853dba0cb0168467a223e0 SHA512 039009de2d1a22de7abed2e2b843fa2bc684ddcfc45892891a24b93ad4b3640a97d2e7612ebcbdbca8db032534c226ad77c67199772b21a6139e5fa205687097 +DIST gmp-ecm-7.0.4.tar.gz 1101899 BLAKE2B 6d52364d9c752aee66510a7f6b273559bf1b7de0032fbbeff74e229ed68fd0cd1c236b480f8fc25bcad6435740e3e22b3099c8f018912918ab8f4b33dc7b8b3c SHA512 b863b9bfd26df26c3c4243686036a69110e69ca3eec5b31d4550fe713e2fac4ce70cd1d80f0614899793aa44710531aa4a21abc0fa1b99eb17f62bd92b971350 diff --git a/sci-mathematics/gmp-ecm/gmp-ecm-7.0.4.ebuild b/sci-mathematics/gmp-ecm/gmp-ecm-7.0.4.ebuild new file mode 100644 index 00000000000..54f7a1bbd2d --- /dev/null +++ b/sci-mathematics/gmp-ecm/gmp-ecm-7.0.4.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit autotools eutils flag-o-matic multilib + +DESCRIPTION="Elliptic Curve Method for Integer Factorization" +HOMEPAGE="http://ecm.gforge.inria.fr/" +SRC_URI="https://gforge.inria.fr/frs/download.php/36224/${P}.tar.gz" + +LICENSE="GPL-3 LGPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="+blas +custom-tune -openmp static-libs test" + +DEPEND=" + dev-libs/gmp:0= + blas? ( sci-libs/gsl ) + openmp? ( sys-devel/gcc:*[openmp] )" +RDEPEND="${DEPEND}" + +S=${WORKDIR}/ecm-${PV} + +MAKEOPTS+=" -j1" + +src_prepare() { + sed -e '/libecm_la_LIBADD/s:$: -lgmp:g' -i Makefile.am || die + eautoreconf +} + +src_configure() { + # --enable-shellcmd is broken + econf \ + --enable-shared \ + $(use_enable static-libs static) \ + $(use_enable openmp) \ + ${myconf} +} + +src_compile() { + append-ldflags "-Wl,-z,noexecstack" + if use custom-tune; then + use amd64 && cd x86_64 + use x86 && cd pentium4 + emake + fi + default +} + +src_install() { + default + mkdir -p "${ED}/usr/include/${PN}/" + cp "${S}"/*.h "${ED}/usr/include/${PN}" || die "Failed to copy headers" # needed by other apps like YAFU +}