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

Contents of /sci-mathematics/gimps/gimps-27.9-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (hide annotations) (download)
Thu Mar 5 08:32:40 2015 UTC (4 years, 11 months ago) by jlec
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +2 -4 lines
Drop RESTRICT=binchecks in favour of QA_

(Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key B9D4F231BD1558AB!)

1 jlec 1.4 # Copyright 1999-2015 Gentoo Foundation
2 pacho 1.1 # Distributed under the terms of the GNU General Public License v2
3 jlec 1.4 # $Header: /var/cvsroot/gentoo-x86/sci-mathematics/gimps/gimps-27.9-r2.ebuild,v 1.3 2014/05/04 08:31:07 ago Exp $
4 pacho 1.1
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 ago 1.3 KEYWORDS="-* amd64 x86"
18 pacho 1.1 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