Skip to content
Browse files

[sci-libs/fplll] Fix bug #449116

Package-Manager: portage-2.1.11.31
  • Loading branch information...
1 parent 41896ee commit d95c9e9577bf342e75fd8ea0eb90f2436e6edf89 Christopher Schwan committed Dec 29, 2012
Showing with 68 additions and 9 deletions.
  1. +6 −0 sci-libs/fplll/ChangeLog
  2. +10 −9 sci-libs/fplll/Manifest
  3. +52 −0 sci-libs/fplll/fplll-3.0.12-r3.ebuild
View
6 sci-libs/fplll/ChangeLog
@@ -2,6 +2,12 @@
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
+*fplll-3.0.12-r3 (29 Dec 2012)
+
+ 29 Dec 2012; Christopher Schwan <cschwan@students.uni-mainz.de>
+ +fplll-3.0.12-r3.ebuild:
+ Rename 'generate' binary to 'generate_matrix'. Fixes bug #449116.
+
21 Jan 2012; Christopher Schwan <cschwan@students.uni-mainz.de>
fplll-3.1.1.ebuild, fplll-3.1.2.ebuild:
Modify according to new autotools-utils eclass behavior
View
19 sci-libs/fplll/Manifest
@@ -1,9 +1,10 @@
-AUX fplll-3.1.1-installation.patch 751 RMD160 02d6490c4daa3560ed53fbf2b986c196e3631f63 SHA1 21a600521ff93efbc0acbf5130adea7cafcadf58 SHA256 2b07e67f959e71d38de699f36895ffbd886f6bf1f5430e39d460085adbbd0e18
-DIST libfplll-3.0.12.tar.gz 399360 RMD160 033ae585c899fb1586baa39811e6fb1243ffdda1 SHA1 a18b39a4939c4f613912a931e3c4d236035b06a2 SHA256 459230daeb32f5173a0c6d5dc634f975f13dbde6bba1bd4b960dd352544adf80
-DIST libfplll-3.1.1.tar.gz 407845 RMD160 b8206b39f8ad1984b3272a84a977466dc3c1fd85 SHA1 2d4daf3bc425898f5a4a2b401fd6b25b1e05a492 SHA256 dbcdaa89eca512755a35835a4280b94a88c595962b64c021a9886e7d7a499394
-DIST libfplll-3.1.2.tar.gz 411699 RMD160 9704327a8600d8823c1b40488879c1841c225c94 SHA1 dd5809ebcb0a7426d6a93ff3e7b7cc1c094beb1c SHA256 0114daec077c9c5549ea5f351c469fd62c45a4219fdb387b498642d3bebfabcf
-EBUILD fplll-3.0.12-r2.ebuild 1199 RMD160 a0f8b690f22350cad3dba1643215236467f8e835 SHA1 d66dc1475b890122fe1d99fae882e84c03693def SHA256 502819bc87b5d82cc5d7d262f599446cad5f5fd92213e1fa19e6f9b6f580632f
-EBUILD fplll-3.1.1.ebuild 1049 RMD160 efdda6f648f8f02e14862536cd6bbdbe962b35ef SHA1 e1851899953d9a3672cd55e3258322800e89c54e SHA256 8f00255e908944bee7422c866fa9e50a1220882baf47a0927101decf5710e449
-EBUILD fplll-3.1.2.ebuild 1049 RMD160 efdda6f648f8f02e14862536cd6bbdbe962b35ef SHA1 e1851899953d9a3672cd55e3258322800e89c54e SHA256 8f00255e908944bee7422c866fa9e50a1220882baf47a0927101decf5710e449
-MISC ChangeLog 2798 RMD160 0400ff23b37dcccada3c7981f859f8b4bca81a83 SHA1 c9db8fda9edb2d582a7dad6f9e5d29ce1e5a19ad SHA256 6a71728b8f553bbf5d4ee5675b163df2a135b5a10a61d2743f7ddd97c19cf920
-MISC metadata.xml 221 RMD160 7eadc05a3b59378a71a7673a40e1619b52bb3c53 SHA1 9eb0f2c18af375f4bebd95bdc32a609c559df06a SHA256 4bfd6fb8052fb320678f8bd882a5ba060986d75da158468a3f7185b8626349df
+AUX fplll-3.1.1-installation.patch 751 SHA256 2b07e67f959e71d38de699f36895ffbd886f6bf1f5430e39d460085adbbd0e18 SHA512 86561fa7d413fd656588bf5ecb10c6656ca6c7b651b326fa0603f368b33e9375fc2c7a8c15a374adc0029b686beb57480a11ce13855b34de85eb24cea6d43501 WHIRLPOOL 2209192638104c03b83f02cc84b12c31a09031033527d53e34ef1f233b2e95bc24183f37b0837b796325d1896d3c6628e840a87c9477243170bdd9b182e0fa3a
+DIST libfplll-3.0.12.tar.gz 399360 SHA256 459230daeb32f5173a0c6d5dc634f975f13dbde6bba1bd4b960dd352544adf80 SHA512 6b14fcf75d136578cc7f4a312980cb5470cb5edf5e4f19c2d2a0c21094ecaea2e181abd464d46e347581a14358cacec1138fc03f2dd5ffcedcd966ae1a5d6271 WHIRLPOOL 856dbd0e9c7d8805dca76fbdf0eb10b6b643020bfb5df8ca3ab3e682a626e3a37e00fd3bcbb88060506408531e84ca1c8bd23687a6d487c72be52f09ec705a15
+DIST libfplll-3.1.1.tar.gz 407845 SHA256 dbcdaa89eca512755a35835a4280b94a88c595962b64c021a9886e7d7a499394 SHA512 0c1cf434d0f876c4800b91c1f6ab3c99578de7598aae08619112d91d23a408662ee9974842376d55a115b3095df299c5b49aeac63b6b5dd30dd6239c7c68cd23 WHIRLPOOL f0c2f94a75b16114ce7f750355433efdad84ce111a6fc75fb383b298ceb273db4f43981604527f94c57ea1df9dcdca37ac1a969e56809312bfbd9a480a59bb1b
+DIST libfplll-3.1.2.tar.gz 411699 SHA256 0114daec077c9c5549ea5f351c469fd62c45a4219fdb387b498642d3bebfabcf SHA512 7128c49dd245a502e62cd4f41b33a862946eb5eb8d90a849b572f49948b33a8cfcd67f4b90b869b4d8aaccd656dc225311a7bd87f1d49fd201ac0d09826e9ec3 WHIRLPOOL 51b52d95e15e55e8a0b89d9ae2f11d4a774d84f6e467aa3cfb77d35ce19019ecf017b0dd292cc164c93e7b938e76920cfab9b3ad45bb9939f5cb22f152ea1ce7
+EBUILD fplll-3.0.12-r2.ebuild 1199 SHA256 502819bc87b5d82cc5d7d262f599446cad5f5fd92213e1fa19e6f9b6f580632f SHA512 e03867c6b52c11b6683f6f7c733d96f223463b9577049b90bd5345086163b8f7d22e2eba7eaef3f6e60bd5c533af285c8f0cde1806f157dc676903119d71162c WHIRLPOOL b305fd76c9021bd9751aecaa43ca94a50da7e8446cde7ab4bc8329d0dd1766dc3cd029c281c59e8e9858efcd7ceb78d67c53bacf2d8640c6bbf0413f90cb69ff
+EBUILD fplll-3.0.12-r3.ebuild 1389 SHA256 eadb5ffa4d598b2690304526c42bacdc14d66935d8a7fd1bbbe3ac68655a296d SHA512 18a63ecfb74bec2571efc2494e1ff7de0f1d92d54d1a1a44abd0097b55e213b2b55f7e038ff8abaab5fdc0452125327421023b7439dbca2454718c136dde0842 WHIRLPOOL fb1524d8e84cd567538ae50d2b32916b7749e5a0042980e74545c3336406a41e59bea664bb00bf7e0fd02c14a55af617e15bd580b0febaa9376d4644e853c2d3
+EBUILD fplll-3.1.1.ebuild 1049 SHA256 8f00255e908944bee7422c866fa9e50a1220882baf47a0927101decf5710e449 SHA512 e486cd69b15c54b3fe6e43312c3e05c963560f21d2636508db4d6f085857db510145bb840b6684a06db58619acf79d08df75d1a5b24e419154f164e526e019f5 WHIRLPOOL cc6b03c1efd5bfacc8414f5e0b75901361da5317a0a1849013942530163e088763de7147165e87177887c306b138ba04596ff382f26a9dc3d594b797d19b5d15
+EBUILD fplll-3.1.2.ebuild 1049 SHA256 8f00255e908944bee7422c866fa9e50a1220882baf47a0927101decf5710e449 SHA512 e486cd69b15c54b3fe6e43312c3e05c963560f21d2636508db4d6f085857db510145bb840b6684a06db58619acf79d08df75d1a5b24e419154f164e526e019f5 WHIRLPOOL cc6b03c1efd5bfacc8414f5e0b75901361da5317a0a1849013942530163e088763de7147165e87177887c306b138ba04596ff382f26a9dc3d594b797d19b5d15
+MISC ChangeLog 2992 SHA256 3db4b97f8242282ffbf3a1a61eef3ad3e5d839b76ba38f9777e3641bc0ae9524 SHA512 39690208619018699afef1e4a4d3c7c2ee53c4bf22ff60b0c3670bb6f4ccf08c5491fe1ac2886cc3ef3c479abe3426c8547dbcca936d088e678e502533c676b4 WHIRLPOOL b4c9d3ea87eb30033049b48a586fc413d9bce21a6ce6a4b56c76744dc2eb0c4c1a517da7b071a449f260cd2fd143559a647d5344291f5a49f6be120bfdaf54e5
+MISC metadata.xml 221 SHA256 4bfd6fb8052fb320678f8bd882a5ba060986d75da158468a3f7185b8626349df SHA512 3ff2eef3aee0eb8ee2e7694c332098e9fc748d489380034bcc198a3e63abb1e0c1f07df698887dbbdc9681109c9d4dabb765c6953409c4e19154b1a5d103b63d WHIRLPOOL 858e3c74a97308083c71a2cba05142bef8d6e7b2da37fb08dfc0db92db762232425d70be61b876da99f4fb8cc2e31917806e5e18b1edfdea6b111be9d27241f3
View
52 sci-libs/fplll/fplll-3.0.12-r3.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="5"
+
+inherit autotools-utils flag-o-matic
+
+MY_P="lib${P}"
+
+DESCRIPTION="fpLLL contains several algorithms on lattices"
+HOMEPAGE="http://perso.ens-lyon.fr/damien.stehle/"
+SRC_URI="http://perso.ens-lyon.fr/damien.stehle/downloads/${MY_P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+IUSE="static-libs"
+
+RESTRICT="mirror"
+
+DEPEND=">=dev-libs/gmp-4.2.0
+ >=dev-libs/mpfr-2.3.0"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${MY_P}"
+
+AUTOTOOLS_IN_SOURCE_BUILD="1"
+DOCS=( AUTHORS NEWS README )
+
+myeconfargs=(
+ # place headers into a subdirectory where it cannot conflict with others
+ --includedir="${EPREFIX}"/usr/include/fplll
+ # .. and rename 'generate' to 'matrix_generate' (bug #449116)
+ --program-transform-name='s/generate/generate_matrix/'
+)
+
+src_prepare() {
+ # -O3 hangs up the compiler. See issue #66 at
+ # https://github.com/cschwan/sage-on-gentoo/issues/66
+ replace-flags -O3 -O2
+
+ # rename 'generate' in README as well
+ sed -i 's/generate /generate_matrix /' README \
+ || die "failed to patch README"
+
+ autotools-utils_src_prepare
+
+ # Replace deprecated gmp functions which are removed with mpir-1.3.0
+ sed -i "s:mpz_div_2exp:mpz_tdiv_q_2exp:g" src/nr.cpp src/util.h \
+ || die "failed to patch depracated gmp function calls"
+}

0 comments on commit d95c9e9

Please sign in to comment.
Something went wrong with that request. Please try again.