summaryrefslogtreecommitdiff
blob: 892331aacc8007247f66d06d48ea730e13ff038b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

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
}