aboutsummaryrefslogtreecommitdiff
blob: dee38ed6d6a154fa7a18879a73839bdce6887255 (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-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=4

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.7"

DEPEND="
	sci-libs/cgnslib
	sci-libs/libcgnsoo
	sci-libs/openfoam:${OF_PV}"
RDEPEND="${DEPEND}"

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/*
}