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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Sun Aug 10 17:36:05 2014 UTC (7 weeks, 2 days ago) by ago
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +2 -2 lines
Stable for x86, wrt bug #516888

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

1 # Copyright 1999-2014 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.5.ebuild,v 1.4 2014/07/22 09:24:41 nimiux 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 RESTRICT="binchecks"
27
28 S="${WORKDIR}"
29 I="/opt/gimps"
30
31 QA_PREBUILT="opt/gimps/mprime"
32
33 src_install() {
34 dodir ${I} /var/lib/gimps
35 pax-mark m mprime
36 cp mprime "${D}/${I}"
37 fperms a-w "${I}/mprime"
38 fowners root:0 "${I}"
39 fowners root:0 "${I}/mprime"
40
41 dodoc license.txt readme.txt stress.txt whatsnew.txt undoc.txt
42
43 newinitd "${FILESDIR}/${PN}-26.6-r1-init.d" gimps
44 newconfd "${FILESDIR}/${PN}-25.6-conf.d" gimps
45
46 systemd_dounit "${FILESDIR}/${PN}.service"
47 systemd_newtmpfilesd "${FILESDIR}/${PN}.tmpfiles" "${PN}.conf"
48 }
49
50 pkg_postinst() {
51 echo
52 einfo "You can use \`/etc/init.d/gimps start\` to start a GIMPS client in the"
53 einfo "background at boot. Have a look at /etc/conf.d/gimps and check some"
54 einfo "configuration options."
55 einfo
56 einfo "If you don't want to use the init script to start gimps, remember to"
57 einfo "pass it an additional command line parameter specifying where the data"
58 einfo "files are to be stored, e.g.:"
59 einfo " ${I}/mprime -w/var/lib/gimps"
60 echo
61 }
62
63 pkg_postrm() {
64 echo
65 einfo "GIMPS data files were not removed."
66 einfo "Remove them manually from /var/lib/gimps/"
67 echo
68 }

  ViewVC Help
Powered by ViewVC 1.1.20