blob: a7ba47bdb23ce82a0d8f799f7140354e3073d828 (
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-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit eutils versionator multilib
MY_PN="OpenFOAM"
MY_PV=$(get_version_component_range 1-2)
MY_P="${MY_PN}-${MY_PV}"
DESCRIPTION="OpenFOAM - sources"
HOMEPAGE="http://www.opencfd.co.uk/openfoam/"
SRC_URI="mirror://sourceforge/foam/${MY_P}.General.gtgz"
LICENSE="GPL-2"
SLOT="1.5"
KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND="|| ( sci-libs/openfoam-meta sci-libs/openfoam sci-libs/openfoam-bin )"
S=${WORKDIR}/${MY_P}
src_unpack() {
ln -s "${DISTDIR}"/${MY_P}.General.gtgz ${MY_P}.General.tgz
unpack ./${MY_P}.General.tgz
cd "${S}"
epatch "${FILESDIR}"/${MY_P}-compile.patch
}
src_install() {
insopts -m0644
insinto /usr/$(get_libdir)/${MY_PN}/${MY_P}/src
doins -r src/*
insinto /usr/$(get_libdir)/${MY_PN}/${MY_P}/applications
doins -r applications/*
}
|