blob: fe34c3b6122d092375fb2b647f3af84553a64f65 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-cluster/maui/maui-3.2.6_p16.ebuild,v 1.1 2006/09/26 04:33:09 dberkholz Exp $
inherit autotools eutils multilib
DESCRIPTION="Maui Cluster Scheduler"
HOMEPAGE="http://www.clusterresources.com/products/maui/"
SRC_URI="http://www.clusterresources.com/downloads/maui/${P/_/}.tar.gz"
IUSE=""
DEPEND="virtual/pbs
!<sys-cluster/openpbs-2.3.16-r4"
RDEPEND="${DEPEND}
virtual/libc"
SLOT="0"
LICENSE="maui"
KEYWORDS="~x86 ~amd64"
RESTRICT="fetch nomirror"
S="${WORKDIR}/${P/_/}"
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}"/${PV}-set-pbs-cflags-ldflags.patch
epatch "${FILESDIR}"/${PV}-autoconf-2.60-compat.patch
epatch "${FILESDIR}"/${PV}-link-pbs-after-moab.patch
sed -i \
-e "s~BUILDROOT=~BUILDROOT=${D}~" \
"${S}"/Makefile.in
eautoreconf
}
src_compile() {
econf \
--with-spooldir=/usr/spool/maui \
--with-pbs=/usr/$(get_libdir)/pbs \
|| die "econf failed!"
emake || die "emake failed!"
}
src_install() {
make install INST_DIR=${D}/usr
cd docs
dodoc README mauidocs.html
}
|