You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
856 B
44 lines
856 B
# Copyright 1999-2021 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=7
|
|
|
|
MY_P="exodus-${PV}"
|
|
inherit cmake
|
|
|
|
DESCRIPTION="Enhancement to the EXODUSII finite element database model"
|
|
HOMEPAGE="https://github.com/certik/exodus"
|
|
SRC_URI="https://dev.gentoo.org/~asturm/distfiles/${MY_P}.tar.gz"
|
|
S="${WORKDIR}"/${MY_P}/${PN}
|
|
|
|
LICENSE="BSD"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
|
|
IUSE="static-libs"
|
|
|
|
DEPEND="
|
|
sci-libs/exodusii
|
|
sci-libs/netcdf
|
|
"
|
|
RDEPEND="${DEPEND}"
|
|
|
|
PATCHES=( "${FILESDIR}"/${P}-multilib.patch )
|
|
|
|
src_prepare() {
|
|
rm -r ../exodus || die
|
|
cmake_src_prepare
|
|
}
|
|
|
|
src_configure() {
|
|
local mycmakeargs=(
|
|
-DBUILD_SHARED_LIBS=$(usex !static-libs)
|
|
)
|
|
export NETCDF_DIR="${EPREFIX}/usr/"
|
|
export EXODUS_DIR="${EPREFIX}/usr/"
|
|
cmake_src_configure
|
|
}
|
|
|
|
src_test() {
|
|
"${BUILD_DIR}"/ne_test || die
|
|
}
|