Gentoo Archives: gentoo-commits

From: Joonas Niilola <juippis@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-mathematics/gimps/
Date: Wed, 03 Feb 2021 07:25:09
Message-Id: 1612336188.b5577d6880dfe204cbe3eb42683143ad8f888c19.juippis@gentoo
1 commit: b5577d6880dfe204cbe3eb42683143ad8f888c19
2 Author: PPed72 <paolo.pedroni <AT> iol <DOT> it>
3 AuthorDate: Thu Jan 14 15:44:32 2021 +0000
4 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
5 CommitDate: Wed Feb 3 07:09:48 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b5577d68
7
8 sci-mathematics/gimps: Version bump to version 30.4 build 8
9
10 Closes: https://bugs.gentoo.org/764350
11 Signed-off-by: Paolo Pedroni <paolo.pedroni <AT> iol.it>
12 Package-Manager: Portage-3.0.13, Repoman-3.0.2
13 Closes: https://github.com/gentoo/gentoo/pull/18983
14 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
15
16 sci-mathematics/gimps/Manifest | 1 +
17 sci-mathematics/gimps/gimps-30.4.8.ebuild | 73 +++++++++++++++++++++++++++++++
18 2 files changed, 74 insertions(+)
19
20 diff --git a/sci-mathematics/gimps/Manifest b/sci-mathematics/gimps/Manifest
21 index 48c8724673d..482bc039742 100644
22 --- a/sci-mathematics/gimps/Manifest
23 +++ b/sci-mathematics/gimps/Manifest
24 @@ -1,2 +1,3 @@
25 DIST p95v303b6.linux32.tar.gz 5702312 BLAKE2B 728c8b8e7e2b5187dc8126bccc5e2c165fbfbc0900d6c35517cd21b78e5292df143641e3766cc0146918062039b1eecab568f9b278f64b1b9197ee2f775603b9 SHA512 3e06fb77be07334949ece3ae152bdf5491f0b7f8e33e0e8ed2af3c34332841975a9514d1993ed2355abfa4e09f93e42093d02f96dc30c3471ae9f974cc2de11a
26 DIST p95v303b6.linux64.tar.gz 7046127 BLAKE2B 9cde9c2670203071cfc463434a47c8123064cb232bfeb25d8767cad2c25ea75b395e2ec135b7b4a6dc9616e9d6b05ead371e1083274a82468f62a0e1de93c98f SHA512 6d6ded9a1724993d42adee28d400b0337835c52a4ce42271e62efb37134adfc6f017f55475860fbc1224e377a227ef8547b8852a35c082c37e996f4a1c1b570c
27 +DIST p95v304b8.linux64.tar.gz 7163830 BLAKE2B 248a2d5343e25fd9153294bf8e84a59253f28feb7ede8147b73d08077a107c63e0209adfd48845f64ce51e06cd32aec966e4a36ef20e1c30df4f0be0d4978d86 SHA512 b4f89c89714e738f468f085ac9902db0b62cad720a926f91cf8dbe25153e41a207e1c10a5d74136976994b9d1ca312653e6b91536ed3d57bc44760055143f4b3
28
29 diff --git a/sci-mathematics/gimps/gimps-30.4.8.ebuild b/sci-mathematics/gimps/gimps-30.4.8.ebuild
30 new file mode 100644
31 index 00000000000..8e7b9650b13
32 --- /dev/null
33 +++ b/sci-mathematics/gimps/gimps-30.4.8.ebuild
34 @@ -0,0 +1,73 @@
35 +# Copyright 1999-2021 Gentoo Authors
36 +# Distributed under the terms of the GNU General Public License v2
37 +
38 +EAPI=7
39 +
40 +inherit pax-utils readme.gentoo-r1 systemd tmpfiles
41 +
42 +DESCRIPTION="The Great Internet Mersenne Prime Search"
43 +HOMEPAGE="https://www.mersenne.org/"
44 +
45 +# The author has finally caved in to the pressure of putting the build
46 +# number in the package name. Some dark magic necessary to get to the
47 +# package name
48 +
49 +MY_PV=$(ver_rs 2 'b' )
50 +
51 +SRC_URI="
52 + amd64? ( https://www.mersenne.org/ftp_root/gimps/p95v${MY_PV/./}.linux64.tar.gz )
53 + "
54 +
55 +SLOT="0"
56 +LICENSE="GIMPS"
57 +RESTRICT="mirror bindist"
58 +KEYWORDS="-* ~amd64"
59 +
60 +# Since there are no statically linked binaries for this version of mprime,
61 +# and no static binaries for amd64 in general, we use the dynamically linked
62 +# ones and try to cover the .so deps with the packages listed in RDEPEND.
63 +# libgmp.so.10.3.2 is bundled within the .tar.gz, but we use the system one.
64 +
65 +DEPEND=""
66 +RDEPEND="net-misc/curl
67 + >=dev-libs/gmp-6.1.2"
68 +
69 +S="${WORKDIR}"
70 +I="/opt/gimps"
71 +
72 +QA_PREBUILT="opt/gimps/mprime"
73 +
74 +DOCS=( license.txt readme.txt stress.txt whatsnew.txt undoc.txt )
75 +
76 +src_install() {
77 + dodir ${I}
78 + keepdir /var/lib/gimps
79 + pax-mark m mprime
80 + cp mprime "${D}/${I}" || die
81 + fperms a-w "${I}/mprime"
82 + fowners root:0 "${I}"
83 + fowners root:0 "${I}/mprime"
84 +
85 + einstalldocs
86 +
87 + readme.gentoo_create_doc
88 +
89 + newinitd "${FILESDIR}/${PN}-28.9-init.d" gimps
90 + newconfd "${FILESDIR}/${PN}-25.6-conf.d" gimps
91 +
92 + systemd_dounit "${FILESDIR}/${PN}.service"
93 + newtmpfiles "${FILESDIR}/${PN}.tmpfiles" "${PN}.conf"
94 +}
95 +
96 +pkg_postinst() {
97 + tmpfiles_process "${PN}.conf"
98 +
99 + readme.gentoo_print_elog
100 +}
101 +
102 +pkg_postrm() {
103 + echo
104 + einfo "GIMPS data files were not removed."
105 + einfo "Remove them manually from /var/lib/gimps/"
106 + echo
107 +}