summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Lauer <patrick@gentoo.org>2012-11-30 07:25:15 +0000
committerPatrick Lauer <patrick@gentoo.org>2012-11-30 07:25:15 +0000
commitde55648dec90e480a4a8a2f69e132f2953214a53 (patch)
tree4ece4b9a9e40a2f0c9a6880c849e3d076406ed3e /sci-mathematics/factmsieve
parentReassign to maintainer-needed - but note that we still have a proxy maintainer (diff)
downloadgentoo-2-de55648dec90e480a4a8a2f69e132f2953214a53.tar.gz
gentoo-2-de55648dec90e480a4a8a2f69e132f2953214a53.tar.bz2
gentoo-2-de55648dec90e480a4a8a2f69e132f2953214a53.zip
Initial import, ebuild by me
(Portage version: 2.2.0_alpha143/cvs/Linux x86_64, unsigned Manifest commit)
Diffstat (limited to 'sci-mathematics/factmsieve')
-rw-r--r--sci-mathematics/factmsieve/ChangeLog9
-rw-r--r--sci-mathematics/factmsieve/Manifest4
-rw-r--r--sci-mathematics/factmsieve/factmsieve-76.ebuild36
-rw-r--r--sci-mathematics/factmsieve/files/factmsieve-76.patch63
-rw-r--r--sci-mathematics/factmsieve/metadata.xml8
5 files changed, 120 insertions, 0 deletions
diff --git a/sci-mathematics/factmsieve/ChangeLog b/sci-mathematics/factmsieve/ChangeLog
new file mode 100644
index 000000000000..79a7a83f3a0a
--- /dev/null
+++ b/sci-mathematics/factmsieve/ChangeLog
@@ -0,0 +1,9 @@
+# ChangeLog for sci-mathematics/factmsieve
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/factmsieve/ChangeLog,v 1.1 2012/11/30 07:25:15 patrick Exp $
+
+*factmsieve-76 (30 Nov 2012)
+
+ 30 Nov 2012; Patrick Lauer <patrick@gentoo.org> +factmsieve-76.ebuild,
+ +files/factmsieve-76.patch, +metadata.xml:
+ Initial import, ebuild by me
diff --git a/sci-mathematics/factmsieve/Manifest b/sci-mathematics/factmsieve/Manifest
new file mode 100644
index 000000000000..1250612091ca
--- /dev/null
+++ b/sci-mathematics/factmsieve/Manifest
@@ -0,0 +1,4 @@
+AUX factmsieve-76.patch 1836 SHA256 b29055a88074369b594b4f69fbdfaed19d14b07362b4eac1f169081f40e9aae0 SHA512 861e7cf1e4175a4d2eaed018c48defdd71b66937f72c0d1117ed02dae2a0d80595bb51686414a1c95a7d77f6bf3b3868bf59d25cf135bef3f8ec871264c0f444 WHIRLPOOL f1c9ffaa8a171ad7ba8b4615851d089f2c0e73a6038db5e22ab595a3c7d4c24ca1bdd03c67c28fc8c58fff185e13f0b9ee4fcf8d289e33ff921b777e54f1c497
+DIST factmsieve.76.zip 19563 SHA256 961db0a36acc58ebf5ce2f5ba9f952e018a9aefbc2f9f8ab8b2a425757c2e2a2 SHA512 b07b0676a635ff746b1edfaf064d27388df8f9c5c2fe1bd1e80d4c839c6e518e3a0b39a06b76f3d59c9fa3f4cc99df0831ba6309a2a7d2eb779b952a29996431 WHIRLPOOL c5d818122f5db9b744272999bb72c42eb73a35dd20ad4ce46822b7e5be2f978a6582c9c5a2402f5fc9a1db4e8ec9f5373f7b090421000f85abecec156cf97a81
+EBUILD factmsieve-76.ebuild 946 SHA256 38f817e8401746a729d59a67ddf3d9aeada92181621d3ec692afbbe1fe825c3d SHA512 2f2427cee1238cc43c60f7c4ab7318fb120dcbd93ddef6ad0c49c8eec6aed1f14e5ac557d8bad33c9a27d5d988036f44c5f68024f1b835fdc79522bab097faa4 WHIRLPOOL 59f1abc60536d9c38ddfb4f1737b1a6b59a72915b19302309cc31b13a3a83e15084167070250e814776ced849a0f524aaf47f865f82c2d6cc2ada54f2d10f5fc
+MISC metadata.xml 233 SHA256 65209e280ca6de32a92e1a57301ff69fb3472e55ba07848d6f80405d35e92d47 SHA512 0d30bfb39315a04767e07896409f5d3954f8e954e20fcbac7b92bb9a636c9f61c50b1b2cf55e6c1db9a199a0edc159b5c8cc8f541efb9c4adafa28e3652cff7b WHIRLPOOL 027c5101e1cbc665c9d2ef240f73a874c9f49a9b70175c5947e012df61de484585088a46b6ce9078816e548e6bcc326e7223539cc999159eee2757d0a2eb1480
diff --git a/sci-mathematics/factmsieve/factmsieve-76.ebuild b/sci-mathematics/factmsieve/factmsieve-76.ebuild
new file mode 100644
index 000000000000..828745a31144
--- /dev/null
+++ b/sci-mathematics/factmsieve/factmsieve-76.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/factmsieve/factmsieve-76.ebuild,v 1.1 2012/11/30 07:25:15 patrick Exp $
+
+EAPI=4
+DESCRIPTION="Convenient factorization helper script using msieve and ggnfs"
+HOMEPAGE="http://gladman.plushost.co.uk/oldsite/computing/factoring.php"
+SRC_URI="http://gladman.plushost.co.uk/oldsite/computing/${PN}.${PV}.zip"
+
+inherit eutils
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+# I guess no one really "needs" python 2.6, but I'm a nice person
+RDEPEND="|| ( dev-lang/python:2.7 dev-lang/python:2.6 )
+ sci-mathematics/msieve
+ sci-mathematics/ggnfs"
+DEPEND=""
+
+S=${WORKDIR}
+
+src_prepare() {
+ epatch "${FILESDIR}/${P}.patch"
+}
+
+src_compile() { :;
+}
+
+src_install() {
+ mkdir -p "${D}/usr/bin/"
+ cp "${S}/${PN}.py" "${D}/usr/bin/${PN}" || die "Failed to install"
+ chmod +x "${D}/usr/bin/${PN}" || die
+}
diff --git a/sci-mathematics/factmsieve/files/factmsieve-76.patch b/sci-mathematics/factmsieve/files/factmsieve-76.patch
new file mode 100644
index 000000000000..830caa7e48fb
--- /dev/null
+++ b/sci-mathematics/factmsieve/files/factmsieve-76.patch
@@ -0,0 +1,63 @@
+--- factmsieve.py 2010-12-02 13:59:20.000000000 +0800
++++ factmsieve.py.new 2012-11-30 15:06:50.566116187 +0800
+@@ -1,3 +1,4 @@
++#!/usr/bin/env python2
+ # factmsieve.py - A Python driver for GGNFS and MSIEVE
+ #
+ # Copyright (c) 2010, Brian Gladman
+@@ -56,9 +57,12 @@
+ import time, subprocess, gzip, glob, math, tempfile, datetime
+ import atexit, threading, collections, multiprocessing, platform
+
++# need to save pwd
++CUR_DIR=os.path.realpath(os.curdir)
++
+ # Set binary directory paths
+-GGNFS_PATH = '../../bin/x64/Release/'
+-MSIEVE_PATH = '../../../msieve/build.vc10/x64/Release/'
++GGNFS_PATH = '/usr/bin/'
++MSIEVE_PATH = '/usr/bin/'
+
+ # Set the number of CPU cores and threads
+ NUM_CORES = 4
+@@ -69,7 +73,7 @@
+ # number of linear algebra threads to launch
+ LA_THREADS = NUM_CORES * THREADS_PER_CORE
+
+-USE_CUDA = True
++USE_CUDA = False
+ GPU_NUM = 0
+ MSIEVE_POLY_TIME_LIMIT = 0
+
+@@ -103,8 +107,8 @@
+
+ # default parameter files
+
+-DEFAULT_PAR_FILE = GGNFS_PATH + 'def-par.txt'
+-DEFAULT_POLSEL_PAR_FILE = GGNFS_PATH + 'def-nm-params.txt'
++DEFAULT_PAR_FILE = '/usr/share/doc/ggnfs/def-par.txt'
++DEFAULT_POLSEL_PAR_FILE = '/usr/share/doc/ggnfs/def-nm-params.txt'
+
+ # temporary files
+
+@@ -258,7 +262,8 @@
+ # write string to log(s):
+
+ def write_string_to_log(s):
+- with open(LOGNAME, 'a') as out_f:
++ # XXX hax
++ with open(CUR_DIR+'/'+LOGNAME, 'a') as out_f:
+ print(date_time_string() + s, file = out_f)
+
+ def output(s, console = True, log = True):
+@@ -357,8 +362,9 @@
+ msd = os.path.abspath(os.path.join(cwd, MSIEVE_PATH))
+ os.chdir(msd)
+ rel = os.path.relpath(cwd)
++ LOGNAME_m=LOGNAME+"_m"
+ dp = os.path.join(rel, DATNAME)
+- lp = os.path.join(rel, LOGNAME)
++ lp = os.path.join(rel, LOGNAME_m)
+ ip = os.path.join(rel, ININAME)
+ fp = os.path.join(rel, FBNAME)
+ args = ('-s {0:s} -l {1:s} -i {2:s} -nf {3:s} '
diff --git a/sci-mathematics/factmsieve/metadata.xml b/sci-mathematics/factmsieve/metadata.xml
new file mode 100644
index 000000000000..24cbb90cf0c4
--- /dev/null
+++ b/sci-mathematics/factmsieve/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>