Gentoo Archives: gentoo-commits

From: Patrice Clement <monsieurp@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-mathematics/gimps/
Date: Thu, 30 Nov 2017 14:47:06
Message-Id: 1512053148.1bfb1137cf241f1ae7fbaba01a1f7a957eedb41a.monsieurp@gentoo
1 commit: 1bfb1137cf241f1ae7fbaba01a1f7a957eedb41a
2 Author: PPed72 <paolo.pedroni <AT> iol <DOT> it>
3 AuthorDate: Mon Nov 27 18:03:39 2017 +0000
4 Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
5 CommitDate: Thu Nov 30 14:45:48 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1bfb1137
7
8 sci-mathematics/gimps: version bump to 29.4.5.
9
10 Closes: https://bugs.gentoo.org/638452
11 Closes: https://github.com/gentoo/gentoo/pull/6325
12
13 sci-mathematics/gimps/Manifest | 2 +
14 sci-mathematics/gimps/gimps-29.4.5.ebuild | 69 +++++++++++++++++++++++++++++++
15 2 files changed, 71 insertions(+)
16
17 diff --git a/sci-mathematics/gimps/Manifest b/sci-mathematics/gimps/Manifest
18 index 3fb857d5a13..16dbc7f87e8 100644
19 --- a/sci-mathematics/gimps/Manifest
20 +++ b/sci-mathematics/gimps/Manifest
21 @@ -1,2 +1,4 @@
22 DIST p95v2810.linux32.tar.gz 4610763 SHA256 ef9b90e9b82c6710af53471eb18328b80cc46f0a41f137bc224efca0ed570d95 SHA512 ac2e0f2e1b557b71084027a5bd7cafeb350df3ee9edf347766d34d4a607034827494eb15dae30404da33f8c9f279a85e033cf845800868f4c51087a35b49c521 WHIRLPOOL f3609de0845308811e09f4a2159709ea69b070f20fe3cc9e71d0bd9d98fff579e0763b8f52cfcc65339dfa3723f622bd97334ae3daf975ad0a9898f803d6c70a
23 DIST p95v2810.linux64.tar.gz 5707219 SHA256 ed5a8b94fdd65436e98e57ea0838035fd44c62492009d00f5fba508cb85481c7 SHA512 c4fd692df3018e5e73ba6095de5ed394f36d5c89dd81c2c7f2c74a4ce3184b22176dc13b8b59e4f42c1781e911107dc12224cfcddef882535931319ec93120f1 WHIRLPOOL 91c1f657df196b8eb27b88727e35cee831a98cbe99d3a88834ba868c4b491144fc4efb66d389f76203481f252b3ef9cc0c2241aa3d153abc1857f09cf3971ac7
24 +DIST p95v294b5.linux32.tar.gz 5455113 SHA256 218e1b6008163a811a26c786be90619649dc9818fd974b0a0a81411db5e8d8b6 SHA512 e8a0061c363333a7c36eb24ef72e9293903404563d04cdcad6432e63d25d8b85e1f0c8e8a46d9795a204830a01031024f82362bcedec4fcec954899e4d6e7127 WHIRLPOOL 949e462fe687bff5b66f32e320b491bc0eea2ee1ceb9b1b55cc6440343cc6503aceb567a86df2dec58144036ae9ecea6590bb5d5f810ae7da217a5d7cc86c02e
25 +DIST p95v294b5.linux64.tar.gz 6244650 SHA256 6c389f981886b4c3df1544b6cc3945df807497460193c5bb220f2b523a24ff89 SHA512 e315ea226649df2135895a1206e5845fd05587ad190b676228e5e1cfca04a11b698f1a7d5b8e7c96b0cd174ce3dbeb6000240b67a3f0f90572f3bf15166020e5 WHIRLPOOL 9dc54bb78a3a9d1e7374bff02f99ca1da607011d90f8b5dfb095cc50d17a8e075cb0fd8f2b51fadfb20acae84fc782c9a0a2d000225c7760f25e41f149233297
26
27 diff --git a/sci-mathematics/gimps/gimps-29.4.5.ebuild b/sci-mathematics/gimps/gimps-29.4.5.ebuild
28 new file mode 100644
29 index 00000000000..a4815dbb80f
30 --- /dev/null
31 +++ b/sci-mathematics/gimps/gimps-29.4.5.ebuild
32 @@ -0,0 +1,69 @@
33 +# Copyright 1999-2017 Gentoo Foundation
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=6
37 +
38 +inherit pax-utils systemd readme.gentoo-r1 versionator
39 +
40 +DESCRIPTION="The Great Internet Mersenne Prime Search"
41 +HOMEPAGE="http://mersenne.org/"
42 +
43 +# The author has finally caved in to the pressure of putting the build
44 +# number in the package name. Some dark magic necessary to get to the
45 +# package name
46 +
47 +MY_PV=$(replace_version_separator 2 'b' )
48 +
49 +SRC_URI="
50 + amd64? ( ftp://mersenne.org/gimps/p95v${MY_PV/./}.linux64.tar.gz )
51 + x86? ( ftp://mersenne.org/gimps/p95v${MY_PV/./}.linux32.tar.gz )"
52 +
53 +SLOT="0"
54 +LICENSE="GIMPS"
55 +KEYWORDS="-* ~amd64 ~x86"
56 +
57 +# Since there are no statically linked binaries for this version of mprime,
58 +# and no static binaries for amd64 in general, we use the dynamically linked
59 +# ones and try to cover the .so deps with the packages listed in RDEPEND.
60 +# libgmp.so.10.3.2 is bundled within the .tar.gz, but we use the system one.
61 +
62 +DEPEND=""
63 +RDEPEND="net-misc/curl
64 + >=dev-libs/gmp-6.1.2"
65 +
66 +S="${WORKDIR}"
67 +I="/opt/gimps"
68 +
69 +QA_PREBUILT="opt/gimps/mprime"
70 +
71 +DOCS=( license.txt readme.txt stress.txt whatsnew.txt undoc.txt )
72 +
73 +src_install() {
74 + dodir ${I} /var/lib/gimps
75 + pax-mark m mprime
76 + cp mprime "${D}/${I}" || die
77 + fperms a-w "${I}/mprime"
78 + fowners root:0 "${I}"
79 + fowners root:0 "${I}/mprime"
80 +
81 + einstalldocs
82 +
83 + readme.gentoo_create_doc
84 +
85 + newinitd "${FILESDIR}/${PN}-28.9-init.d" gimps
86 + newconfd "${FILESDIR}/${PN}-25.6-conf.d" gimps
87 +
88 + systemd_dounit "${FILESDIR}/${PN}.service"
89 + systemd_newtmpfilesd "${FILESDIR}/${PN}.tmpfiles" "${PN}.conf"
90 +}
91 +
92 +pkg_postinst() {
93 + readme.gentoo_print_elog
94 +}
95 +
96 +pkg_postrm() {
97 + echo
98 + einfo "GIMPS data files were not removed."
99 + einfo "Remove them manually from /var/lib/gimps/"
100 + echo
101 +}