Gentoo Archives: gentoo-commits

From: "Alexey Shvetsov (alexxy)" <alexxy@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-cluster/maui: ChangeLog maui-3.3.1-r2.ebuild
Date: Mon, 04 Jul 2011 16:25:59
Message-Id: 20110704161838.563EF2004B@flycatcher.gentoo.org
1 alexxy 11/07/04 16:18:38
2
3 Modified: ChangeLog maui-3.3.1-r2.ebuild
4 Log:
5 [sys-cluster/maui] Add maui key support
6
7 (Portage version: 2.2.0_alpha43/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.23 sys-cluster/maui/ChangeLog
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/maui/ChangeLog?rev=1.23&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/maui/ChangeLog?rev=1.23&content-type=text/plain
14 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/maui/ChangeLog?r1=1.22&r2=1.23
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/sys-cluster/maui/ChangeLog,v
19 retrieving revision 1.22
20 retrieving revision 1.23
21 diff -u -r1.22 -r1.23
22 --- ChangeLog 3 Jul 2011 23:19:35 -0000 1.22
23 +++ ChangeLog 4 Jul 2011 16:18:38 -0000 1.23
24 @@ -1,6 +1,9 @@
25 # ChangeLog for sys-cluster/maui
26 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/sys-cluster/maui/ChangeLog,v 1.22 2011/07/03 23:19:35 alexxy Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/sys-cluster/maui/ChangeLog,v 1.23 2011/07/04 16:18:38 alexxy Exp $
29 +
30 + 04 Jul 2011; Alexey Shvetsov <alexxy@g.o> maui-3.3.1-r2.ebuild:
31 + Add maui key support
32
33 *maui-3.3.1-r2 (03 Jul 2011)
34
35
36
37
38 1.2 sys-cluster/maui/maui-3.3.1-r2.ebuild
39
40 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/maui/maui-3.3.1-r2.ebuild?rev=1.2&view=markup
41 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/maui/maui-3.3.1-r2.ebuild?rev=1.2&content-type=text/plain
42 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/maui/maui-3.3.1-r2.ebuild?r1=1.1&r2=1.2
43
44 Index: maui-3.3.1-r2.ebuild
45 ===================================================================
46 RCS file: /var/cvsroot/gentoo-x86/sys-cluster/maui/maui-3.3.1-r2.ebuild,v
47 retrieving revision 1.1
48 retrieving revision 1.2
49 diff -u -r1.1 -r1.2
50 --- maui-3.3.1-r2.ebuild 3 Jul 2011 23:19:35 -0000 1.1
51 +++ maui-3.3.1-r2.ebuild 4 Jul 2011 16:18:38 -0000 1.2
52 @@ -1,10 +1,10 @@
53 # Copyright 1999-2011 Gentoo Foundation
54 # Distributed under the terms of the GNU General Public License v2
55 -# $Header: /var/cvsroot/gentoo-x86/sys-cluster/maui/maui-3.3.1-r2.ebuild,v 1.1 2011/07/03 23:19:35 alexxy Exp $
56 +# $Header: /var/cvsroot/gentoo-x86/sys-cluster/maui/maui-3.3.1-r2.ebuild,v 1.2 2011/07/04 16:18:38 alexxy Exp $
57
58 EAPI="4"
59
60 -inherit autotools eutils multilib
61 +inherit eutils multilib
62
63 DESCRIPTION="Maui Cluster Scheduler"
64 HOMEPAGE="http://www.clusterresources.com/products/maui/"
65 @@ -24,17 +24,24 @@
66
67 RESTRICT="fetch mirror"
68
69 +pkg_setup() {
70 + if use slurm; then
71 + if [ -z ${MAUI_KEY} ]; then
72 + eerror "You should set MAUI_KEY to any integer value in make.conf"
73 + return 1
74 + fi
75 + fi
76 +}
77 +
78 src_prepare() {
79 - epatch "${FILESDIR}"/3.2.6_p21-autoconf-2.60-compat.patch
80 sed -e "s:\$(INST_DIR)/lib:\$(INST_DIR)/$(get_libdir):" \
81 -i src/{moab,server,mcom}/Makefile || die
82 - eautoreconf
83 }
84
85 src_configure() {
86 local myconf
87 use pbs && myconf="--with-pbs="${EPREFIX}"/usr"
88 - use slurm && myconf="--with-wiki"
89 + use slurm && myconf="--with-wiki --with-key=${MAUI_KEY}"
90 econf \
91 --with-spooldir="${EPREFIX}"/var/spool/${PN} \
92 ${myconf}