sci-libs/cgnslib: Version bump
authorSébastien Fabbro <bicatali@gentoo.org>
Sat, 12 Mar 2016 01:23:35 +0000 (01:23 +0000)
committerSébastien Fabbro <bicatali@gentoo.org>
Fri, 18 Mar 2016 20:09:55 +0000 (20:09 +0000)
Package-Manager: portage-2.2.27

sci-libs/cgnslib/Manifest
sci-libs/cgnslib/cgnslib-3.3.0.ebuild [new file with mode: 0644]
sci-libs/cgnslib/metadata.xml

index 624bc849a8725f2d60e1d5b185bc60fc4a62b935..9641827e3b2f782ec78512d16915eba87706d6c2 100644 (file)
@@ -1 +1,2 @@
+DIST cgnslib-3.3.0.tar.gz 3314889 SHA256 8422c67994f8dc6a2f201523a14f6c7d7e16313bdd404c460c16079dbeafc662 SHA512 eb5c79d3830f8ee1fa30a67fbf32133c13a276c4b18a553826e4670bd4aa7262d7751bccb74c5e208cd47703f9076bde2e2e0db70408c88fde3ac11b638e6ff3 WHIRLPOOL 3d609208775ec5357298c1f9d0220143462f9530c54ce2bac2f54b4ff45d32673fed9721d03c2dca025b4fc1f947a4903f5a3a3ac2918bc5367a4322f2bc5b69
 DIST cgnslib_3.2.1.tar.gz 865223 SHA256 34306316f04dbf6484343a4bc611b3bf912ac7dbc3c13b581defdaebbf6c1fc3 SHA512 318fda24e7f5f20407c6026ad4b10a84a0ea02a04d3dab3e0e2277d21cbc1b43f04eb65c4b912a7964e1219cf83afdabb357d25b40e76add9bed8bd2564a674e WHIRLPOOL 5f49f3e19712da5b178f7e40deb024a3287835613d61a46e2b7cb24fa4c9253dd87499b0e34a024945ced686b3a0d5c62ffbde88070f4d204d19f0651f8545f1
diff --git a/sci-libs/cgnslib/cgnslib-3.3.0.ebuild b/sci-libs/cgnslib/cgnslib-3.3.0.ebuild
new file mode 100644 (file)
index 0000000..ce19bde
--- /dev/null
@@ -0,0 +1,78 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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 '/DESTINATION/s|lib)|lib${LIB_SUFFIX})|g' \
+               -e 's|lib LIBDIR|lib${LIB_SUFFIX} LIBDIR|' \
+               -e 's|/lib"|/lib${LIB_SUFFIX}"|'\
+               -i CMakeLists.txt 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 changelog 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
+}
index 0b900f86f3ba97a14bee73cd8af5edcba4ff6d1d..2f390daa2b0b66bc4de39bbbd37882e600c7ef8f 100644 (file)
@@ -1,8 +1,17 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
 <pkgmetadata>
+  <longdescription lang="en">
+    The Computational Fluid Dynamics General Notation System (CGNS) provides a
+    general, portable, and extensible standard for the storage and retrieval of
+    computational fluid dynamics (CFD) analysisdata. It consists of a collection
+    of conventions, and free and open software implementing those conventions. It
+    is self-descriptive, machine-independent, well-documented, and administered by
+    an international steering committee.
+  </longdescription>
   <use>
     <flag name="legacy">Enable or disable building legacy code (3.0 compatible)</flag>
+    <flag name="tools">Build tools for </flag>
   </use>
   <maintainer type="person">
     <email>slis@gentoo.org</email>
@@ -12,6 +21,6 @@
     <name>Gentoo Science Project</name>
   </maintainer>
   <upstream>
-    <remote-id type="sourceforge">cgns</remote-id>
+    <remote-id type="github">CGNS/CGNS</remote-id>
   </upstream>
 </pkgmetadata>