summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Lauer <patrick@gentoo.org>2012-11-25 07:36:41 +0000
committerPatrick Lauer <patrick@gentoo.org>2012-11-25 07:36:41 +0000
commitaa10c8657eba39f2ceb28cc0d5dae3e1973924e9 (patch)
treeb243682245a971d4d6e4f8b88f48795d6d1abb1e /sci-mathematics/gmp-ecm
parentamd64 stable, bug #442436 (diff)
downloadhistorical-aa10c8657eba39f2ceb28cc0d5dae3e1973924e9.tar.gz
historical-aa10c8657eba39f2ceb28cc0d5dae3e1973924e9.tar.bz2
historical-aa10c8657eba39f2ceb28cc0d5dae3e1973924e9.zip
Add more useflags
Package-Manager: portage-2.2.0_alpha142/cvs/Linux x86_64
Diffstat (limited to 'sci-mathematics/gmp-ecm')
-rw-r--r--sci-mathematics/gmp-ecm/ChangeLog8
-rw-r--r--sci-mathematics/gmp-ecm/Manifest6
-rw-r--r--sci-mathematics/gmp-ecm/gmp-ecm-6.4.3-r2.ebuild (renamed from sci-mathematics/gmp-ecm/gmp-ecm-6.4.3-r1.ebuild)20
-rw-r--r--sci-mathematics/gmp-ecm/metadata.xml3
4 files changed, 30 insertions, 7 deletions
diff --git a/sci-mathematics/gmp-ecm/ChangeLog b/sci-mathematics/gmp-ecm/ChangeLog
index 25f38af4daa8..1087d52df43e 100644
--- a/sci-mathematics/gmp-ecm/ChangeLog
+++ b/sci-mathematics/gmp-ecm/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for sci-mathematics/gmp-ecm
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/gmp-ecm/ChangeLog,v 1.2 2012/11/19 07:14:59 patrick Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/gmp-ecm/ChangeLog,v 1.3 2012/11/25 07:36:31 patrick Exp $
+
+*gmp-ecm-6.4.3-r2 (25 Nov 2012)
+
+ 25 Nov 2012; Patrick Lauer <patrick@gentoo.org> +gmp-ecm-6.4.3-r2.ebuild,
+ -gmp-ecm-6.4.3-r1.ebuild, metadata.xml:
+ Add more useflags
*gmp-ecm-6.4.3-r1 (19 Nov 2012)
diff --git a/sci-mathematics/gmp-ecm/Manifest b/sci-mathematics/gmp-ecm/Manifest
index b671c039ce05..937bf45b87f3 100644
--- a/sci-mathematics/gmp-ecm/Manifest
+++ b/sci-mathematics/gmp-ecm/Manifest
@@ -1,4 +1,4 @@
DIST gmp-ecm-6.4.3.tar.gz 944719 SHA256 946c9870c0b76ada2f6342515386828800c096fe32ff347c82374d5a4ec73685 SHA512 71ccdf3b48e96b0acad45302c87a7b17a20ad289efde212a34fb11491531b96848f1824606fdab7604874ca7d8165baba4bbfbc8424e27e8844444ad0d4f56a6 WHIRLPOOL b177904307fefbffc0c8aec2d20eb6de8475428f84f4e263b032fd47b671dba44211a2fcb80cacead76545429a7df5cd444137853145ee4ced62cb8356753579
-EBUILD gmp-ecm-6.4.3-r1.ebuild 745 SHA256 8d11f481106f957d6353e208409ce75a1f4656350675de347e1918f20f402c11 SHA512 d809334d008a420cbcc0a118a00404beaa20557529914fcc9a325a5892fbfbd3ff0a2ac58e0f1d2ed905018443fa515cc2e655dcb42a2331f32ea1d754650c78 WHIRLPOOL 12c7fe77a1a93f4b1dcf208f712d41cf4a7e9c2f2531566e960bea4cf419d857416b834d08201c30b95c42a3b17b06696198a33b35063f9a126686e8e642a83a
-MISC ChangeLog 532 SHA256 2d08b9e42c642ff9907107f8fa78ef089bb546b87641b16c8dbe6d22a59f9d7b SHA512 6e2a7aa227747752c737537eb96cdb599f09579015194eac2d2c54bfe36f7db7a159d7dedb026f460633c3529d6a08c9bf69fa0e2a163c18a94ce132577f3289 WHIRLPOOL 1ceea39c8e62d3ff02b0d12cfae85b3f81fc22d01587bcf518f38919371aa377e3fcc0f19fb7f36da8ac3da579b018d88516dde360342823d718ad8f61268934
-MISC metadata.xml 233 SHA256 65209e280ca6de32a92e1a57301ff69fb3472e55ba07848d6f80405d35e92d47 SHA512 0d30bfb39315a04767e07896409f5d3954f8e954e20fcbac7b92bb9a636c9f61c50b1b2cf55e6c1db9a199a0edc159b5c8cc8f541efb9c4adafa28e3652cff7b WHIRLPOOL 027c5101e1cbc665c9d2ef240f73a874c9f49a9b70175c5947e012df61de484585088a46b6ce9078816e548e6bcc326e7223539cc999159eee2757d0a2eb1480
+EBUILD gmp-ecm-6.4.3-r2.ebuild 1039 SHA256 37d07977ed43f26a4595f17ffa1cfa6828dae9f8cdd585569e7ec87ac4c95097 SHA512 ad6093b677c537d244e2916ab8118b87ce6bda29c7e3926ca87fce67d5d6709762d90e0fb00c66ae9af4875b63b3d2e98bf41fd62d5c4926939e594d3eb04f17 WHIRLPOOL 58e846fe7b2a5f1ff62acf57975df061bc0089a11ccf605be4b7df687bf479f970fb36b2d1cbf3cc22bf0ee3bec52d11b82edc81846de9f263c5c8f9747a1510
+MISC ChangeLog 704 SHA256 828fd45f631be0400066378f59114060c8a52cd15f066e5e9d6dac2d058d476f SHA512 45fbabbd6c7c4dcd26c5ed5345b3316db1a1cb6c26f42a190de40e4b75a1c4fa290b6b74aa865793fa39a627a3057a475e607e43710fa6f2e9e5e5ac2803638f WHIRLPOOL 7bd94e48e992d002227a0092b9570fed76f34b18abdc4249c81240f21b57f804f6f1fb2e0ccbe56e754a5185d995fa0f2c3e11c82a8ffd2b74df4978da7d4d34
+MISC metadata.xml 360 SHA256 e771f2b5b9b242617ec96edebe4e0f64bb4b5cbab43c1711c6ca982947cdcb45 SHA512 96c476a415bdefafb8dd80d525d421301c7fa15cb1eb6c2586760764dfb90d93777a3d5c445f88e3413eb2add2879fadee71464a03b7b17f3454384ec95dd551 WHIRLPOOL 273a0cf5a3632bd08f72e3da60310ff548bfc3e9e0ca6bc6c274f290249c9252299b814442054f8accb6d8ceaf4bd48fa58dc1b0291cab9c92a0483db8988a3b
diff --git a/sci-mathematics/gmp-ecm/gmp-ecm-6.4.3-r1.ebuild b/sci-mathematics/gmp-ecm/gmp-ecm-6.4.3-r2.ebuild
index b725bea3508e..8157ed2d681a 100644
--- a/sci-mathematics/gmp-ecm/gmp-ecm-6.4.3-r1.ebuild
+++ b/sci-mathematics/gmp-ecm/gmp-ecm-6.4.3-r2.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/gmp-ecm/gmp-ecm-6.4.3-r1.ebuild,v 1.1 2012/11/19 07:14:59 patrick Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/gmp-ecm/gmp-ecm-6.4.3-r2.ebuild,v 1.1 2012/11/25 07:36:31 patrick Exp $
EAPI=4
DESCRIPTION="Elliptic Curve Method for Integer Factorization"
@@ -12,13 +12,27 @@ inherit eutils
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
-IUSE=""
+IUSE="custom-tune openmp"
-DEPEND="dev-libs/gmp"
+DEPEND="dev-libs/gmp
+ openmp? ( sys-devel/gcc[openmp] )"
RDEPEND="${DEPEND}"
S=${WORKDIR}/ecm-${PV}
+src_configure() {
+ # --enable-shellcmd is broken
+ econf $(use_enable openmp) || die
+}
+
+src_compile() {
+ emake || die
+ if use custom-tune; then
+ ./bench_mulredc | tail -n 4 >> `readlink ecm-params.h` || die
+ make clean; emake || die
+ fi
+}
+
src_install() {
emake DESTDIR="${D}" install || die
mkdir -p "${D}/usr/include/${PN}/"
diff --git a/sci-mathematics/gmp-ecm/metadata.xml b/sci-mathematics/gmp-ecm/metadata.xml
index 24cbb90cf0c4..943079ae9149 100644
--- a/sci-mathematics/gmp-ecm/metadata.xml
+++ b/sci-mathematics/gmp-ecm/metadata.xml
@@ -5,4 +5,7 @@
<email>patrick@gentoo.org</email>
<name>Patrick Lauer</name>
</maintainer>
+ <use>
+ <flag name='custom-tune'>Improve performance of some operations by selecting machine-specific defaults</flag>
+ </use>
</pkgmetadata>