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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Wed May 21 12:18:31 2014 UTC (4 years, 2 months ago) by jlec
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +3 -3 lines
sys-cluster/maui: Fix HOMEPAGE

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

1 # Copyright 1999-2014 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-r3.ebuild,v 1.1 2013/09/25 11:24:32 jlec Exp $
4
5 EAPI="4"
6
7 inherit eutils multilib
8
9 DESCRIPTION="Maui Cluster Scheduler"
10 HOMEPAGE="http://www.adaptivecomputing.com/products/open-source/maui/"
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-4 )
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 epatch "${FILESDIR}"/${P}-torque_4.patch
41 }
42
43 src_configure() {
44 local myconf
45 use pbs && myconf="--with-pbs=${EPREFIX}/usr"
46 use slurm && myconf+=" --with-wiki --with-key=${MAUI_KEY}"
47 econf \
48 --with-spooldir="${EPREFIX}"/var/spool/${PN} \
49 ${myconf}
50 }
51
52 src_install() {
53 emake BUILDROOT="${D}" INST_DIR="${ED}/usr" install || die
54 dodoc docs/README CHANGELOG || die
55 dohtml docs/mauidocs.html || die
56 newinitd "${FILESDIR}/${PN}.initd" ${PN} || die
57 }
58
59 pkg_nofetch() {
60 einfo "Please visit ${HOMEPAGE}, obtain the file"
61 einfo "${P}.tar.gz and put it in ${DISTDIR}"
62 }

  ViewVC Help
Powered by ViewVC 1.1.20