1 |
commit: 288f1e6e6930eebbfa94dcfeb70c9e7284acfa88 |
2 |
Author: David Seifert <soap <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Nov 3 19:49:32 2016 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Nov 3 20:22:58 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=288f1e6e |
7 |
|
8 |
sci-mathematics/factmsieve: Revbump to EAPI=6 |
9 |
|
10 |
* Use 'python-single-r1' |
11 |
* Make PATCHES -p1 compliant |
12 |
* Fix shebang |
13 |
|
14 |
Package-Manager: portage-2.3.2 |
15 |
|
16 |
...actmsieve-76.ebuild => factmsieve-76-r1.ebuild} | 30 ++++++++++------------ |
17 |
.../factmsieve/files/factmsieve-76.patch | 6 ++--- |
18 |
2 files changed, 16 insertions(+), 20 deletions(-) |
19 |
|
20 |
diff --git a/sci-mathematics/factmsieve/factmsieve-76.ebuild b/sci-mathematics/factmsieve/factmsieve-76-r1.ebuild |
21 |
similarity index 51% |
22 |
rename from sci-mathematics/factmsieve/factmsieve-76.ebuild |
23 |
rename to sci-mathematics/factmsieve/factmsieve-76-r1.ebuild |
24 |
index 892331a..182dc5d 100644 |
25 |
--- a/sci-mathematics/factmsieve/factmsieve-76.ebuild |
26 |
+++ b/sci-mathematics/factmsieve/factmsieve-76-r1.ebuild |
27 |
@@ -1,36 +1,32 @@ |
28 |
-# Copyright 1999-2012 Gentoo Foundation |
29 |
+# Copyright 1999-2016 Gentoo Foundation |
30 |
# Distributed under the terms of the GNU General Public License v2 |
31 |
# $Id$ |
32 |
|
33 |
-EAPI=4 |
34 |
+EAPI=6 |
35 |
+ |
36 |
+PYTHON_COMPAT=( python2_7 ) |
37 |
+ |
38 |
+inherit python-single-r1 |
39 |
+ |
40 |
DESCRIPTION="Convenient factorization helper script using msieve and ggnfs" |
41 |
HOMEPAGE="http://gladman.plushost.co.uk/oldsite/computing/factoring.php" |
42 |
SRC_URI="http://gladman.plushost.co.uk/oldsite/computing/${PN}.${PV}.zip" |
43 |
|
44 |
-inherit eutils |
45 |
- |
46 |
LICENSE="BSD" |
47 |
SLOT="0" |
48 |
KEYWORDS="~amd64 ~x86" |
49 |
IUSE="" |
50 |
+REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
51 |
|
52 |
-# I guess no one really "needs" python 2.6, but I'm a nice person |
53 |
-RDEPEND="|| ( dev-lang/python:2.7 dev-lang/python:2.6 ) |
54 |
+RDEPEND="${PYTHON_DEPS} |
55 |
sci-mathematics/msieve |
56 |
sci-mathematics/ggnfs" |
57 |
DEPEND="" |
58 |
|
59 |
-S=${WORKDIR} |
60 |
- |
61 |
-src_prepare() { |
62 |
- epatch "${FILESDIR}/${P}.patch" |
63 |
-} |
64 |
- |
65 |
-src_compile() { :; |
66 |
-} |
67 |
+S="${WORKDIR}" |
68 |
+PATCHES=( "${FILESDIR}/${P}.patch" ) |
69 |
|
70 |
src_install() { |
71 |
- mkdir -p "${D}/usr/bin/" |
72 |
- cp "${S}/${PN}.py" "${D}/usr/bin/${PN}" || die "Failed to install" |
73 |
- chmod +x "${D}/usr/bin/${PN}" || die |
74 |
+ python_fix_shebang ${PN}.py |
75 |
+ dobin ${PN}.py |
76 |
} |
77 |
|
78 |
diff --git a/sci-mathematics/factmsieve/files/factmsieve-76.patch b/sci-mathematics/factmsieve/files/factmsieve-76.patch |
79 |
index c22f886..eaf50ef 100644 |
80 |
--- a/sci-mathematics/factmsieve/files/factmsieve-76.patch |
81 |
+++ b/sci-mathematics/factmsieve/files/factmsieve-76.patch |
82 |
@@ -1,7 +1,7 @@ |
83 |
---- factmsieve.py 2010-12-02 13:59:20.000000000 +0800 |
84 |
-+++ factmsieve.py.new 2012-11-30 15:06:50.566116187 +0800 |
85 |
+--- a/factmsieve.py |
86 |
++++ b/factmsieve.py |
87 |
@@ -1,3 +1,4 @@ |
88 |
-+#!/usr/bin/env python2 |
89 |
++#!/usr/bin/env python |
90 |
# factmsieve.py - A Python driver for GGNFS and MSIEVE |
91 |
# |
92 |
# Copyright (c) 2010, Brian Gladman |