summaryrefslogtreecommitdiff
blob: 34150eaeab89e8e846a38a0da6b9f2a067a9feed (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
48
49
50
51
52
53
54
55
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-cluster/cppvm/cppvm-1.5.0-r1.ebuild,v 1.1 2003/08/01 23:16:33 tantive Exp $

S=${WORKDIR}/${P}
DESCRIPTION="CPPVM: A C++ Interface to PVM"
SRC_URI="ftp://ftp.informatik.uni-stuttgart.de/pub/cppvm/cppvm.tar.gz"
HOMEPAGE="http://www.informatik.uni-stuttgart.de/ipvr/bv/cppvm/index.html"
IUSE=""

DEPEND=">=sys-cluster/pvm-3.4.1-r1"
RDEPEND=""

SLOT="0"
LICENSE="LGPL-2"

KEYWORDS="~x86"

src_unpack() {
	unpack ${A}
}

src_compile() {
	cd ${WORKDIR}/cppvm

#	export PVM_ROOT="/usr/local/pvm3"
#	export PVM_ARCH="LINUX"

	emake || die
}

src_install() {
	cd ${WORKDIR}
	dodir ${PVM_ROOT}/bin/${PVM_ARCH}
	dodir ${HOME}/pvm3/bin/${PVM_ARCH}
	cd cppvm

	export PVM_ROOT=${D}/${PVM_ROOT}
	export HOME=${D}/${HOME}
#	export PVM_ARCH="LINUX"

	einstall

	#install headers and libs
	cp ${WORKDIR}/cppvm ${PVM_ROOT} -r

	dodoc CONTACT LICENCE README VERSION doc/cppvm.ps

}

pkg_postinst() {
	ewarn "Do not forget do copy the /root/pvm3 dir to the homedirs of all users"
	ewarn "that should be allowed access to cppvm!"
}