blob: d2f34df9003e7d08399f5ff9e157b78c56e9e968 (
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
|
# Copyright 1999-2007 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_p13-r1.ebuild,v 1.5 2007/07/02 15:32:03 peper Exp $
inherit 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"
RDEPEND="${DEPEND}
virtual/libc"
SLOT="0"
LICENSE="maui"
KEYWORDS="~x86 ~amd64"
RESTRICT="fetch mirror"
S="${WORKDIR}/${P/_/}"
src_compile() {
econf --with-spooldir=/usr/spool/maui --with-pbs || die "econf failed!"
# Torque on Gentoo installs libnet.a, which clobbers libnet.a from libnet.
# (Stupid developers.) Unfortunately, libnet also installs libnet.so, which
# Torque doesn't clobber, so when running make we end up linking against
# .so rather than .a. Big problem. Fix it.
sed -i -e "s~-lnet~/usr/$(get_libdir)/pbs/libnet.a~" Makefile
sed -i -e "s~BUILDROOT=~BUILDROOT=${D}~" Makefile
emake || die "emake failed!"
}
src_install() {
make install INST_DIR=${D}/usr
cd docs
dodoc README mauidocs.html
}
|