/[gentoo-x86]/sys-cluster/maui/maui-3.3.1-r2.ebuild
Gentoo

Contents of /sys-cluster/maui/maui-3.3.1-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Mon Oct 31 10:30:09 2011 UTC (3 years, 1 month ago) by jlec
Branch: MAIN
Changes since 1.3: +3 -3 lines
Fixed quoting

(Portage version: 2.2.0_alpha72/cvs/Linux x86_64)

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sys-cluster/maui/maui-3.3.1-r2.ebuild,v 1.3 2011/09/06 08:23:37 jlec Exp $
4
5 EAPI="4"
6
7 inherit eutils multilib
8
9 DESCRIPTION="Maui Cluster Scheduler"
10 HOMEPAGE="http://www.clusterresources.com/pages/products/maui-cluster-scheduler.php"
11 SRC_URI="http://www.adaptivecomputing.com/download/${PN}/${P}.tar.gz"
12
13 LICENSE="maui"
14 SLOT="0"
15 KEYWORDS="~amd64 ~x86 ~amd64-linux"
16 IUSE="pbs slurm"
17
18 REQUIRED_USE="^^ ( pbs slurm )"
19
20 DEPEND="
21 pbs? ( sys-cluster/torque )
22 slurm? ( sys-cluster/slurm )"
23 RDEPEND="${DEPEND}"
24
25 RESTRICT="fetch mirror"
26
27 pkg_setup() {
28 if use slurm; then
29 if [ -z ${MAUI_KEY} ]; then
30 eerror "You should set MAUI_KEY to any integer value in make.conf"
31 return 1
32 fi
33 fi
34 }
35
36 src_prepare() {
37 sed -e "s:\$(INST_DIR)/lib:\$(INST_DIR)/$(get_libdir):" \
38 -i src/{moab,server,mcom}/Makefile || die
39 }
40
41 src_configure() {
42 local myconf
43 use pbs && myconf="--with-pbs=${EPREFIX}/usr"
44 use slurm && myconf+=" --with-wiki --with-key=${MAUI_KEY}"
45 econf \
46 --with-spooldir="${EPREFIX}"/var/spool/${PN} \
47 ${myconf}
48 }
49
50 src_install() {
51 emake BUILDROOT="${D}" INST_DIR="${ED}/usr" install || die
52 dodoc docs/README CHANGELOG || die
53 dohtml docs/mauidocs.html || die
54 newinitd "${FILESDIR}/${PN}.initd" ${PN} || die
55 }
56
57 pkg_nofetch() {
58 einfo "Please visit ${HOMEPAGE}, obtain the file"
59 einfo "${P}.tar.gz and put it in ${DISTDIR}"
60 }

  ViewVC Help
Powered by ViewVC 1.1.20