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 DA607139694 for ; Fri, 21 Jul 2017 00:23:07 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 09C6E1FC019; Fri, 21 Jul 2017 00:23:05 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.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 D0FBD1FC017 for ; Fri, 21 Jul 2017 00:23:04 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (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 B44203416B9 for ; Fri, 21 Jul 2017 00:23:03 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A8B7874C1 for ; Fri, 21 Jul 2017 00:23:00 +0000 (UTC) From: "Sebastien Fabbro" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sebastien Fabbro" Message-ID: <1500596549.08d7b5d5d95d439f16c90c07eac68411c8dc4c50.bicatali@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/gf2x/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-libs/gf2x/Manifest dev-libs/gf2x/gf2x-1.2.ebuild dev-libs/gf2x/metadata.xml X-VCS-Directories: dev-libs/gf2x/ X-VCS-Committer: bicatali X-VCS-Committer-Name: Sebastien Fabbro X-VCS-Revision: 08d7b5d5d95d439f16c90c07eac68411c8dc4c50 X-VCS-Branch: master Date: Fri, 21 Jul 2017 00:23:00 +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-Archives-Salt: e53e3719-f5d9-4504-b41f-27626d47bce6 X-Archives-Hash: c3d256cb0e81a2b509378e0e5bc04b64 commit: 08d7b5d5d95d439f16c90c07eac68411c8dc4c50 Author: Sébastien Fabbro gentoo org> AuthorDate: Thu Jul 20 23:39:08 2017 +0000 Commit: Sebastien Fabbro gentoo org> CommitDate: Fri Jul 21 00:22:29 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=08d7b5d5 dev-libs/gf2x: version bump with cpu flags Package-Manager: Portage-2.3.6, Repoman-2.3.2 dev-libs/gf2x/Manifest | 1 + dev-libs/gf2x/gf2x-1.2.ebuild | 54 +++++++++++++++++++++++++++++++++++++++++++ dev-libs/gf2x/metadata.xml | 27 +++++++++++----------- 3 files changed, 69 insertions(+), 13 deletions(-) diff --git a/dev-libs/gf2x/Manifest b/dev-libs/gf2x/Manifest index 566ed912f90..08371224db7 100644 --- a/dev-libs/gf2x/Manifest +++ b/dev-libs/gf2x/Manifest @@ -1,2 +1,3 @@ DIST gf2x-1.0.tar.gz 460810 SHA256 b64ffa9275cc2e995d37bcecbcdce9ba1df1e17d3d31d8685128d00df305e753 SHA512 f4658698972e31428d8349b423762e9ef5aaeb52d8081c9831baa4eb066737ab3e9667a700d5df79e0f0df2626db39f2f994df17da14719506d44dbb9b33af40 WHIRLPOOL 1f4bc9deca4a0e08555800f327b4ad76e58564523271dac29b337fa757e4aebcedec0ed9bfb738e0a24892ac25d9d8d65315a12f462e91d680a908ab1b35b050 DIST gf2x-1.1.tar.gz 496708 SHA256 0d3f01604680102a00ca34e079903cc4d5a3208afda223748979b724d358849f SHA512 052cb2152773dc114a2a80cc64cd0679c1f57eceabcdc7cc25987b8d2599fa6d4871b5bb6ff71319727411b9b5aca11e431e43eafa474a419cf306d42d22ac2c WHIRLPOOL 6336dd24f05b8f18713578b65d129e667029876b3d67ab13113140d73aa7b14f2afbd2f4f2ef15d25470589b15aad382c0efefd3f1d0e47ba5e2bada42ee0580 +DIST gf2x-1.2.tar.gz 706519 SHA256 61427ffa03b5006aa154def6dce8bcff0fdefb3bd72f43fb1a7b4fdd6b80db34 SHA512 efddad2b99fa103fa77caed4a62f4a763dbff67bc7cf4527bbbf33ca826829e4a4f94e97454ef1a6498bdc2cee8934ff43f9dabf41a4a4f256721527a1dffa30 WHIRLPOOL e6cc949799b9b2c42d67be57f9cc6a3426311ef829a40f90053a4c37542bf34d9f3e154d3f1dad82096ee37d35603059d6a189d245ad0909f7cb122c3b226c1a diff --git a/dev-libs/gf2x/gf2x-1.2.ebuild b/dev-libs/gf2x/gf2x-1.2.ebuild new file mode 100644 index 00000000000..69bc4312a40 --- /dev/null +++ b/dev-libs/gf2x/gf2x-1.2.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit eutils autotools + +PACKAGEID=36934 # inriaforge hardcoded ID + +DESCRIPTION="C/C++ routines for fast arithmetic in GF(2)[x]" +HOMEPAGE="http://gf2x.gforge.inria.fr/" +SRC_URI="http://gforge.inria.fr/frs/download.php/${PACKAGEID}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0/1" +KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos" +IUSE="fft static-libs custom-tune" +IUSE_CPU_FLAGS=" pclmul sse2 sse3 sse4_1 ssse3" +IUSE+=" ${IUSE_CPU_FLAGS// / cpu_flags_x86_}" + +src_prepare() { + default + # fix for cross-compiling, avoid ABI detection + sed -e 's/VERIFY_WORDSIZE(\[$ABI\].*/echo "skipping ABI check"/' \ + -e 's/AC_MSG_ERROR(\[already_t.*/echo "skipping ABI check"/' \ + -i configure.ac || die + eautoreconf +} + +src_configure() { + econf \ + $(use_enable cpu_flags_x86_sse2 sse2) \ + $(use_enable cpu_flags_x86_sse3 sse3) \ + $(use_enable cpu_flags_x86_ssse3 ssse3) \ + $(use_enable cpu_flags_x86_sse4_1 sse41) \ + $(use_enable cpu_flags_x86_pclmul pclmul) \ + $(use_enable fft fft-interface) \ + $(use_enable static-libs static) +} + +src_compile() { + emake + if use custom-tune; then + einfo "Starting tuning" + emake tune-lowlevel + emake tune-toom + use fft && emake tune-fft + fi +} + +src_install() { + default + use static-libs || prune_libtool_files --all +} diff --git a/dev-libs/gf2x/metadata.xml b/dev-libs/gf2x/metadata.xml index b6bc45f942c..3a09b312482 100644 --- a/dev-libs/gf2x/metadata.xml +++ b/dev-libs/gf2x/metadata.xml @@ -1,17 +1,18 @@ - - sci-mathematics@gentoo.org - Gentoo Mathematics Project - - - gf2x is a C/C++ software package containing routines for fast - arithmetic in GF(2)[x] (multiplication, squaring, GCD) and searching - for irreducible/primitive trinomials. - - - Disable automatic fine-tuning to local - processor features like pclmul or sse2. - + + sci-mathematics@gentoo.org + Gentoo Mathematics Project + + + gf2x is a C/C++ software package containing routines for fast + arithmetic in GF(2)[x] (multiplication, squaring, GCD) and searching + for irreducible/primitive trinomials. + + + Disable automatic fine-tuning to local processor features like pclmul or sse2. + Extra long compile time for tuning hardware specific low-level routines + Build an FFT API for multiplication of 2 polynomials over GF(2) +