public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Slawek Lis" <slis@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/cgnslib/
Date: Fri, 19 Jul 2019 03:43:55 +0000 (UTC)	[thread overview]
Message-ID: <1563507800.ec00d0818a9d0e6ad47c66f35df34ca67f1c6264.slis@gentoo> (raw)

commit:     ec00d0818a9d0e6ad47c66f35df34ca67f1c6264
Author:     Slawomir Lis <slis <AT> gentoo <DOT> org>
AuthorDate: Thu Jul 18 19:29:14 2019 +0000
Commit:     Slawek Lis <slis <AT> gentoo <DOT> org>
CommitDate: Fri Jul 19 03:43:20 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ec00d081

sci-libs/cgnslib: version bump to 3.4.0

This should also fix bug #662210

Package-Manager: Portage-2.3.69, Repoman-2.3.14
Signed-off-by: Slawek Lis <slis <AT> gentoo.org>

 sci-libs/cgnslib/Manifest             |  1 +
 sci-libs/cgnslib/cgnslib-3.4.0.ebuild | 76 +++++++++++++++++++++++++++++++++++
 2 files changed, 77 insertions(+)

diff --git a/sci-libs/cgnslib/Manifest b/sci-libs/cgnslib/Manifest
index 26e8c7ce76c..69e9eac02ce 100644
--- a/sci-libs/cgnslib/Manifest
+++ b/sci-libs/cgnslib/Manifest
@@ -1 +1,2 @@
 DIST cgnslib-3.3.0.tar.gz 3314889 BLAKE2B 3b8af11e04c211ca60f512c7995e9b23e0dd79180f3443f238562216073740de6b845c5bb78d6fb017bbf41e5249c1f58c27130047fd50afb4b20bbc778a046b SHA512 eb5c79d3830f8ee1fa30a67fbf32133c13a276c4b18a553826e4670bd4aa7262d7751bccb74c5e208cd47703f9076bde2e2e0db70408c88fde3ac11b638e6ff3
+DIST cgnslib-3.4.0.tar.gz 3393312 BLAKE2B 279d4502ff70701df6a266495ccc7750e9c51ac14bd3d5072ae8e1448b4f1e4afaefaaf254cf0afe1cc984e4d9fc7d5c161f7696f62726aaf567990ded3c9056 SHA512 e26cfb0d9f3061242d327a6c18fe40ed51bf63b61ae0d6b5cce7e6b4aa623b00e1c3fd9fe240d993323c6f4eec043fde5296a82b1f9108027f945300eec541ec

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 00000000000..e3d5dd381d4
--- /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|/lib'$(get_libdir)'|' \
+            -e '/DESTINATION/s|lib|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
+}


             reply	other threads:[~2019-07-19  3:44 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-19  3:43 Slawek Lis [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-06-30  5:18 [gentoo-commits] repo/gentoo:master commit in: sci-libs/cgnslib/ Sam James
2024-11-23 18:45 Sam James
2024-10-05 11:47 Jakov Smolić
2024-03-22 18:28 Sam James
2024-03-08 11:09 Sam James
2024-03-08 11:09 Sam James
2023-04-20 19:37 Sam James
2023-04-18 15:49 Andrew Ammerlaan
2023-03-04 13:51 Arthur Zamarin
2022-10-04 18:37 Arthur Zamarin
2022-10-02 19:40 Arthur Zamarin
2022-05-28  9:47 Andrew Ammerlaan
2021-01-17 11:52 David Seifert
2020-12-27 19:15 Sam James
2020-12-27  3:37 Sam James
2020-12-27  3:37 Sam James
2019-07-19 10:21 Slawek Lis
2016-11-25  9:02 Slawek Lis
2016-03-18 19:18 Sebastien Fabbro

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1563507800.ec00d0818a9d0e6ad47c66f35df34ca67f1c6264.slis@gentoo \
    --to=slis@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox