diff options
Diffstat (limited to 'sci-libs/cgnslib')
-rw-r--r-- | sci-libs/cgnslib/Manifest | 2 | ||||
-rw-r--r-- | sci-libs/cgnslib/cgnslib-3.4.0.ebuild | 76 |
2 files changed, 78 insertions, 0 deletions
diff --git a/sci-libs/cgnslib/Manifest b/sci-libs/cgnslib/Manifest index 98d7d8af2056..51879f036e2c 100644 --- a/sci-libs/cgnslib/Manifest +++ b/sci-libs/cgnslib/Manifest @@ -1,3 +1,5 @@ DIST cgnslib-3.3.0.tar.gz 3314889 BLAKE2B 3b8af11e04c211ca60f512c7995e9b23e0dd79180f3443f238562216073740de6b845c5bb78d6fb017bbf41e5249c1f58c27130047fd50afb4b20bbc778a046b SHA512 eb5c79d3830f8ee1fa30a67fbf32133c13a276c4b18a553826e4670bd4aa7262d7751bccb74c5e208cd47703f9076bde2e2e0db70408c88fde3ac11b638e6ff3 +DIST cgnslib-3.4.0.tar.gz 3393312 BLAKE2B 279d4502ff70701df6a266495ccc7750e9c51ac14bd3d5072ae8e1448b4f1e4afaefaaf254cf0afe1cc984e4d9fc7d5c161f7696f62726aaf567990ded3c9056 SHA512 e26cfb0d9f3061242d327a6c18fe40ed51bf63b61ae0d6b5cce7e6b4aa623b00e1c3fd9fe240d993323c6f4eec043fde5296a82b1f9108027f945300eec541ec EBUILD cgnslib-3.3.0.ebuild 1976 BLAKE2B d5bc20620ad851ee7dd2f491f1b17b2970ee7c41d3dcd640cb72704129767d3ee3a68613e0f5e7eb8ab4436ccd40ee8e6e1c9961ffe4188fd8206b20cf393d65 SHA512 6662f4a324febcec8164ac2ee037254c38a1822c2131467bc54c18c0d196194b8e2b08cc9183c4dc783d59a56cd3832b24ab6310c0f72406a0a2edb47c3f6a1d +EBUILD cgnslib-3.4.0.ebuild 1916 BLAKE2B 71752f19c5ffbb20ee213462ada6007fb15ef8345217f23857ad7a0accd4dc5747f462038fca6152e7015087aa19d9e1b808a73f8f92246bf87d6f517199653c SHA512 e7e8fde0e3ff62fa41ed90410b83d878ebb11ba458c95fe3d18f80c5277d692fa273e203fdb8e6320dfa84193819831adfdd6d2b25e0f2f16c07ccd7a13979f6 MISC metadata.xml 1202 BLAKE2B 812a82c8a2d93299ddd4c3e93913055971a18db1e3cdf581b9f34f6ba04dda4eda647b5762ee4509e1e48c6f3e823921ad3d08503a879feb26890c8eff3b1589 SHA512 320b2e7940f9c3ef6a47cbca31cdee70d97b38291da3f4552fd159d83594b88ab347cc71e22d50d7bf08e44a63d6b4b90bbf5e96c5a0d9780d2407d1ecf02a05 diff --git a/sci-libs/cgnslib/cgnslib-3.4.0.ebuild b/sci-libs/cgnslib/cgnslib-3.4.0.ebuild new file mode 100644 index 000000000000..2358691f512a --- /dev/null +++ b/sci-libs/cgnslib/cgnslib-3.4.0.ebuild @@ -0,0 +1,76 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +FORTRAN_NEEDED="fortran" +FORTRAN_STANDARD="90 2003" + +inherit cmake-utils fortran-2 + +DESCRIPTION="CFD General Notation System standard library" +HOMEPAGE="http://www.cgns.org/" +SRC_URI="https://github.com/CGNS/CGNS/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="ZLIB" +SLOT="0/3" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +IUSE="doc examples fortran hdf5 legacy mpi static-libs szip test tools" + +RDEPEND="hdf5? ( sci-libs/hdf5:=[mpi=,szip=] ) + tools? ( + dev-lang/tcl:= + dev-lang/tk:= + x11-libs/libXmu:= + virtual/glu + virtual/opengl + )" +DEPEND="${RDEPEND}" + +S="${WORKDIR}/CGNS-${PV}" + +pkg_setup() { + use fortran && fortran-2_pkg_setup +} + +src_prepare() { + # gentoo libdir + sed -e 's|/lib|/'$(get_libdir)'|' \ + -e '/DESTINATION/s|lib|'$(get_libdir)'|g' \ + -i src/CMakeLists.txt || die + # dont hard code link + sed -e '/link_directories/d' \ + -i src/tools/CMakeLists.txt src/cgnstools/*/CMakeLists.txt || die + cmake-utils_src_prepare +} + +src_configure() { + local mycmakeargs=( + -DCGNS_BUILD_SHARED=ON + -DCGNS_USED_SHARED=ON + -DCGNS_BUILD_CGNSTOOLS="$(usex tools)" + -DCGNS_ENABLE_FORTRAN="$(usex fortran)" + -DCGNS_ENABLE_HDF5="$(usex hdf5)" + -DCGNS_ENABLE_LEGACY="$(usex legacy)" + -DCGNS_ENABLE_TESTS="$(usex test)" + -DHDF5_NEED_MPI="$(usex mpi)" + -DHDF5_NEED_SZIP="$(usex szip)" + -DHDF5_NEED_ZLIB="$(usex szip)" + ) + cmake-utils_src_configure +} + +src_compile() { + # hack to allow parallel building by first producing fortran module + use fortran && cd "${BUILD_DIR}"/src && emake cgns_f.o + cmake-utils_src_compile +} + +src_install() { + cmake-utils_src_install + dodoc README.md release_docs/Release.txt + use static-libs || rm "${ED}"/usr/$(get_libdir)/libcgns.a + use doc && dodoc *pdf release_docs/*.pdf + insinto /usr/share/doc/${PF} + use examples && doins -r src/examples +} |