aboutsummaryrefslogtreecommitdiff
blob: 41c93da3867698deb6caa055dd03af0f332fa303 (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
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI="2"

inherit eutils multilib

DESCRIPTION="cgnsfoam is a conversion tool from cgns to openfoam format"
HOMEPAGE="http://openfoam-extend.sourceforge.net"
SRC_URI="http://ppa.launchpad.net/cae-team/ppa/ubuntu/pool/main/c/${PN}/${PN}_${PV}.orig.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

OF_PV="1.5"

DEPEND="sci-libs/cgnslib
	sci-libs/libcgnsoo
	=sci-libs/openfoam-src-${OF_PV}*"

RDEPEND="${DEPEND}"

S=${WORKDIR}/${PN}

src_prepare() {
	epatch "${FILESDIR}"/"${PN}"-compile.patch
}

src_compile() {
	source /usr/$(get_libdir)/OpenFOAM/OpenFOAM-${OF_PV}/etc/bashrc
	export FOAM_USER_APPBIN=${S}/bin/
	sh Allwmake
}

src_install() {
	into "/usr/$(get_libdir)/OpenFOAM/OpenFOAM-${OF_PV}/applications"
	dobin bin/*
}