diff options
Diffstat (limited to 'sci-libs/cgnslib/cgnslib-3.2.1.ebuild')
-rw-r--r-- | sci-libs/cgnslib/cgnslib-3.2.1.ebuild | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/sci-libs/cgnslib/cgnslib-3.2.1.ebuild b/sci-libs/cgnslib/cgnslib-3.2.1.ebuild new file mode 100644 index 000000000000..287aca7a934d --- /dev/null +++ b/sci-libs/cgnslib/cgnslib-3.2.1.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +FORTRAN_NEEDED="fortran" + +inherit cmake-utils fortran-2 versionator + +MY_P="${PN}_$(replace_version_separator 3 '-')" +MY_S="${PN}_$(get_version_component_range 1-2)" + +DESCRIPTION="The CFD General Notation System (CGNS) is a standard for CFD data" +HOMEPAGE="http://www.cgns.org/" +SRC_URI="mirror://sourceforge/project/cgns/${MY_S}/${MY_P}.tar.gz" + +LICENSE="ZLIB" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="fortran hdf5 legacy mpi szip zlib" + +DEPEND=" + hdf5? ( >=sci-libs/hdf5-1.8[mpi=] ) + szip? ( sci-libs/szip ) + zlib? ( sys-libs/zlib )" +RDEPEND="${DEPEND}" + +S="${WORKDIR}"/${PN}_${PV} + +PATCHES=( + "${FILESDIR}"/${P}-cmake.patch +) + +pkg_setup() { + use fortran && fortran-2_pkg_setup +} + +src_configure() { + local mycmakeargs=( + -DCGNS_ENABLE_64BIT=ON + $(usex x86 -DCGNS_ENABLE_LFS=ON) + $(cmake-utils_use fortran CGNS_ENABLE_FORTRAN) + $(cmake-utils_use hdf5 CGNS_ENABLE_HDF5) + $(cmake-utils_use legacy CGNS_ENABLE_LEGACY) + $(cmake-utils_use mpi HDF5_NEED_MPI) + ) + cmake-utils_src_configure +} |