/[gentoo-x86]/sci-mathematics/gimps/gimps-28.6.ebuild
Gentoo

Contents of /sci-mathematics/gimps/gimps-28.6.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Wed May 27 11:07:18 2015 UTC (3 years, 4 months ago) by ago
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +2 -2 lines
Stable for x86, wrt bug #549972

(Portage version: 2.2.18/cvs/Linux x86_64, RepoMan options: --include-arches="x86", signed Manifest commit with key 7194459F)

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sci-mathematics/gimps/gimps-28.6.ebuild,v 1.2 2015/05/27 08:52:00 ago Exp $
4
5 EAPI=4
6
7 inherit pax-utils systemd
8
9 DESCRIPTION="The Great Internet Mersenne Prime Search"
10 HOMEPAGE="http://mersenne.org/"
11 SRC_URI="
12 amd64? ( ftp://mersenne.org/gimps/p95v${PV/./}.linux64.tar.gz )
13 x86? ( ftp://mersenne.org/gimps/p95v${PV/./}.linux32.tar.gz )"
14
15 SLOT="0"
16 LICENSE="GIMPS"
17 KEYWORDS="-* amd64 x86"
18 IUSE=""
19
20 # Since there are no statically linked binaries for this version of mprime,
21 # and no static binaries for amd64 in general, we use the dynamically linked
22 # ones and try to cover the .so deps with the packages listed in RDEPEND.
23 DEPEND=""
24 RDEPEND="net-misc/curl"
25
26 S="${WORKDIR}"
27 I="/opt/gimps"
28
29 QA_PREBUILT="opt/gimps/mprime"
30
31 src_install() {
32 dodir ${I} /var/lib/gimps
33 pax-mark m mprime
34 cp mprime "${D}/${I}"
35 fperms a-w "${I}/mprime"
36 fowners root:0 "${I}"
37 fowners root:0 "${I}/mprime"
38
39 dodoc license.txt readme.txt stress.txt whatsnew.txt undoc.txt
40
41 newinitd "${FILESDIR}/${PN}-26.6-r1-init.d" gimps
42 newconfd "${FILESDIR}/${PN}-25.6-conf.d" gimps
43
44 systemd_dounit "${FILESDIR}/${PN}.service"
45 systemd_newtmpfilesd "${FILESDIR}/${PN}.tmpfiles" "${PN}.conf"
46 }
47
48 pkg_postinst() {
49 echo
50 einfo "You can use \`/etc/init.d/gimps start\` to start a GIMPS client in the"
51 einfo "background at boot. Have a look at /etc/conf.d/gimps and check some"
52 einfo "configuration options."
53 einfo
54 einfo "If you don't want to use the init script to start gimps, remember to"
55 einfo "pass it an additional command line parameter specifying where the data"
56 einfo "files are to be stored, e.g.:"
57 einfo " ${I}/mprime -w/var/lib/gimps"
58 echo
59 }
60
61 pkg_postrm() {
62 echo
63 einfo "GIMPS data files were not removed."
64 einfo "Remove them manually from /var/lib/gimps/"
65 echo
66 }

  ViewVC Help
Powered by ViewVC 1.1.20