diff options
author | Patrick Lauer <patrick@gentoo.org> | 2012-11-27 13:32:59 +0000 |
---|---|---|
committer | Patrick Lauer <patrick@gentoo.org> | 2012-11-27 13:32:59 +0000 |
commit | 411e3df0b08b73b7fa2a823d61f761be9b00af69 (patch) | |
tree | b63f7c469282885237ee40adc746b055dc0faeb8 /sci-mathematics | |
parent | Initial import, ebuild by me (diff) | |
download | historical-411e3df0b08b73b7fa2a823d61f761be9b00af69.tar.gz historical-411e3df0b08b73b7fa2a823d61f761be9b00af69.tar.bz2 historical-411e3df0b08b73b7fa2a823d61f761be9b00af69.zip |
Initial import, ebuild by me
Package-Manager: portage-2.2.0_alpha142/cvs/Linux x86_64
Diffstat (limited to 'sci-mathematics')
-rw-r--r-- | sci-mathematics/ggnfs/Manifest | 3 | ||||
-rw-r--r-- | sci-mathematics/ggnfs/ggnfs-0.77.1.ebuild | 53 | ||||
-rw-r--r-- | sci-mathematics/ggnfs/metadata.xml | 8 |
3 files changed, 63 insertions, 1 deletions
diff --git a/sci-mathematics/ggnfs/Manifest b/sci-mathematics/ggnfs/Manifest index 34da9ad28e90..e2a09e7ba3d2 100644 --- a/sci-mathematics/ggnfs/Manifest +++ b/sci-mathematics/ggnfs/Manifest @@ -1,3 +1,4 @@ DIST ggnfs-0.77.1.zip 2279013 SHA256 f6509661f22c562b3616e99989d39c160e8f49664e1fe3215d2f0d1441003a7a SHA512 77f5050d1310df5de45e80a25c8421cc9240ce11776fc4af596ce19d8b064b926dcc7e6dd7b2ef12d86056f7af0b67db2f746fc261cba24bbcf1efef06287513 WHIRLPOOL 5cb0e67aebd7ed9001ea2347b2211f9ca84ec50d18982436b111c0abb1c3223c66fbb5d029fa38d43e1137e7e7c7087daca85648fba7da92bbfcfe3760ccf87e -EBUILD ggnfs-0.77.1.ebuild 1792 SHA256 91769b8a8fa2127b0ca39df5be99263f1ce1fb35d9adf6d74b4693f38d2ad22f SHA512 9dbecf48a1376d76f8bc32065c9630e142b26a0eaedce24ef1306685621d73e9568f443464b83cf4289423dc463a4527c3dddd72b81a1ae47f0383f1c2084c49 WHIRLPOOL 6c6138b7d711a43e8131c44e244f0be13fb5bd97e0c78a1ebc4ebeeff036f88e2dd0c2c41a592b7747a50616d3b85209afbaf07101195a7a213823a1d4b3740d +EBUILD ggnfs-0.77.1.ebuild 1792 SHA256 d984503b468011d579b88ead06925ae4bfb0e504a4c23a49ee87181a56377107 SHA512 271c155e8ef5e2a018831ec6982591419b47dd97e3d01d82d450d45118b512e70bba87c4de3a03460c5a70afee3a5d4f83d3d1d7b7dfbba136eba16d7618b9f5 WHIRLPOOL 9f327b360d56202bbe7088b9c172f15f3706d303960e174a44b73fe180aee1829548244b0fa9844ba0ce07ffea6ab576ee7ae8a714ca6cbb4f004c600f4c24a9 +MISC ChangeLog 365 SHA256 fe79c484e31d5479373120126f0274f527f81c5cd315e19862f4c7d194997fa8 SHA512 7678c51bd129050eb3b764fb19c38ca85c5ca8ac50dccb070f52d76452f54b48194a057246f84169d6c8f6411b28a4a1838f26a4e18678cfaf6bf89b309d9b84 WHIRLPOOL c1518a09e7431e410b84530b9966a0b9d757a246e743cb2d70b55ba3ae88a87bed6376064e9a1e22d1e5b04e770352b647415cc4535d81fdadd43309b351bd13 MISC metadata.xml 233 SHA256 65209e280ca6de32a92e1a57301ff69fb3472e55ba07848d6f80405d35e92d47 SHA512 0d30bfb39315a04767e07896409f5d3954f8e954e20fcbac7b92bb9a636c9f61c50b1b2cf55e6c1db9a199a0edc159b5c8cc8f541efb9c4adafa28e3652cff7b WHIRLPOOL 027c5101e1cbc665c9d2ef240f73a874c9f49a9b70175c5947e012df61de484585088a46b6ce9078816e548e6bcc326e7223539cc999159eee2757d0a2eb1480 diff --git a/sci-mathematics/ggnfs/ggnfs-0.77.1.ebuild b/sci-mathematics/ggnfs/ggnfs-0.77.1.ebuild new file mode 100644 index 000000000000..474de667c31c --- /dev/null +++ b/sci-mathematics/ggnfs/ggnfs-0.77.1.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/ggnfs/ggnfs-0.77.1.ebuild,v 1.1 2012/11/27 13:32:51 patrick Exp $ + +EAPI=4 +DESCRIPTION="A suite of algorithms to help factoring large integers" +# inactive old homepage exists, this is a fork +HOMEPAGE="https://github.com/radii/ggnfs" +# snapshot because github makes people stupid +SRC_URI="http://dev.gentooexperimental.org/~dreeevil/${P}.zip" + +inherit eutils + +LICENSE="GPL-2" +SLOT="0" +# Need to test if it actually compiles on x86 +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="" +RDEPEND="${DEPEND} + !sci-mathematics/cado-nfs" # file collisions, fixable + +S=${WORKDIR}/${PN}-master + +src_prepare() { + echo "#define GGNFS_VERSION \"0.77.1-$ARCH\"" > include/version.h + # fix directory symlink, add missing targets, rewrite variable used by portage internally + cd src/lasieve4 && rm -f -r asm && ln -s ppc32 asm || die + sed -i -e 's/all: liblasieve.a/all: liblasieve.a liblasieveI11.a liblasieveI15.a liblasieveI16.a/' asm/Makefile || die + cd "${S}" + sed -i -e 's/ARCH/MARCH/g' Makefile src/Makefile || die + sed -i -e 's/$(LSBINS) strip/$(LSBINS)/' src/Makefile || die #No stripping! +} + +src_configure() { :; } + +src_compile() { + # setting MARCH like this is fugly, but it uses -march=$ARCH - better fix welcome + # it also assumes a recent-ish compiler + cd src + HOST="generic" MARCH="native" emake +} + +src_install() { + mkdir -p "${D}/usr/bin/" + for i in gnfs-lasieve4I11e gnfs-lasieve4I12e gnfs-lasieve4I13e gnfs-lasieve4I14e \ + gnfs-lasieve4I15e gnfs-lasieve4I16e makefb matbuild matprune matsolve pol51m0b pol51m0n \ + pol51opt polyselect procrels sieve sqrt; do + cp "${S}/bin/${i}" "${D}/usr/bin/" || die + done + # TODO: docs? File collisions? +} diff --git a/sci-mathematics/ggnfs/metadata.xml b/sci-mathematics/ggnfs/metadata.xml new file mode 100644 index 000000000000..24cbb90cf0c4 --- /dev/null +++ b/sci-mathematics/ggnfs/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>patrick@gentoo.org</email> + <name>Patrick Lauer</name> + </maintainer> +</pkgmetadata> |