summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSlawek Lis <slis@gentoo.org>2014-07-25 11:23:28 +0000
committerSlawek Lis <slis@gentoo.org>2014-07-25 11:23:28 +0000
commit5ccc9845d8a1fa97ba1e6a6e147bed16fd886e99 (patch)
treeee3a3f17302dbf8ec4f6b6846c4d016778d718d6 /sci-libs
parentadded cgnslib package (diff)
downloadhistorical-5ccc9845d8a1fa97ba1e6a6e147bed16fd886e99.tar.gz
historical-5ccc9845d8a1fa97ba1e6a6e147bed16fd886e99.tar.bz2
historical-5ccc9845d8a1fa97ba1e6a6e147bed16fd886e99.zip
added cgnslib package
Package-Manager: portage-2.2.10/cvs/Linux x86_64 Manifest-Sign-Key: 0x55265D89
Diffstat (limited to 'sci-libs')
-rw-r--r--sci-libs/cgnslib/Manifest17
-rw-r--r--sci-libs/cgnslib/cgnslib-3.2.1.ebuild49
-rw-r--r--sci-libs/cgnslib/files/cgnslib-3.2.1-cmake.patch149
-rw-r--r--sci-libs/cgnslib/metadata.xml11
4 files changed, 225 insertions, 1 deletions
diff --git a/sci-libs/cgnslib/Manifest b/sci-libs/cgnslib/Manifest
index 533410a119c2..9bf9b1487917 100644
--- a/sci-libs/cgnslib/Manifest
+++ b/sci-libs/cgnslib/Manifest
@@ -1,4 +1,19 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA256
+
AUX cgnslib-3.2.1-cmake.patch 4758 SHA256 d7de564429cef417c98c146283e0e3370b148a93b78b0be5ebcac58821cc838f SHA512 c55279d0c5d26bb8c0ed41e637d7cd417e84f6896fa76c81d5c47d2fd7491e2889e739606e52763bca184f1775da6ee4d0be55d8fab7f6d2e2a73b87fa593f0f WHIRLPOOL c859798c4fd024be14b7c85867347d3ca8a6432a01048d4042200786c925a82337a5492f37f8564d5b89c13e0bd3263b371c9ed481e2c3072c364f14b1b3a897
DIST cgnslib_3.2.1.tar.gz 865223 SHA256 34306316f04dbf6484343a4bc611b3bf912ac7dbc3c13b581defdaebbf6c1fc3 SHA512 318fda24e7f5f20407c6026ad4b10a84a0ea02a04d3dab3e0e2277d21cbc1b43f04eb65c4b912a7964e1219cf83afdabb357d25b40e76add9bed8bd2564a674e WHIRLPOOL 5f49f3e19712da5b178f7e40deb024a3287835613d61a46e2b7cb24fa4c9253dd87499b0e34a024945ced686b3a0d5c62ffbde88070f4d204d19f0651f8545f1
-EBUILD cgnslib-3.2.1.ebuild 1117 SHA256 0c2c6eef3744daa6cfd812faeb3fc7a8991d4565e95a9aba661daef6865f3da5 SHA512 12d2e95199e9e50d981930cee0f9cebb176abe6292fe918d6af818aebc2ad2f4909d39f0444d86b2950093e3861bebef7c1158563e53f6a14ac002a7bb80de40 WHIRLPOOL 60f850de8ebafc79f65bd76797daf285e274cc4bed12e647efda986f7dc314460456a9c39b867b1f50790c9baee438b890eb46ffbdaff54d1d224ec6598a1d46
+EBUILD cgnslib-3.2.1.ebuild 1214 SHA256 7b9fed2a0baf23f2e1b60d89a72d8004dffb1529cc7032455f4cef21c4d68993 SHA512 df53550a94ff6592ede115b9433e2da1b57b3ff717134ddb01e148ae2b932eec359f756f9afc026db27a2c2b8d9ec4521e2033481b4207cca9503de493b042ce WHIRLPOOL 5428a1e4add738c960689a0eface1ea557bfc2b8b93f7d3b289b1a484554996893eb7b70fc051044f55202888269ddc256233e44880727fdfed92b5c1c1b6d06
+MISC ChangeLog 376 SHA256 6076a6ab89b56075f371cd5882415dde93033dd6ad5e04e0d7a5a196c080a948 SHA512 b9a85175ce4f87452a5bccad901916d95ea930afb918831e0fd2b8453bedb470d110953b0b223b1390032eb3be4525be9704da0a0e7d0de722fdeccc696e7c7d WHIRLPOOL 4463aab565bcad77be388439682659ae579e2de66e6f1fdd332075302161f7b886bb60983db1a598baddcf6ad892288c2d89bf3363418ecc71b52524f7d21195
MISC metadata.xml 328 SHA256 d23207b78f2cb74dd1d740ec4378363cadf256ba5898919cb623af5ac2ae275b SHA512 07cf8a856f9fb63c029318a3027316f21b540650f2e695461be0bfd9154249c5d2dfedf368853278f8ccf16715e3d4c30cfcca5031843d3bace3a89306233b68 WHIRLPOOL 7b4c42fe136a7a76c94e8b9fe3b468a4ec3d1c1561777e9c2e98fc0c0af9f858dd7656773694de581a7712c420a4e21fdeaba8f6efd148ad06d36a6424225b6a
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2
+
+iQEcBAEBCAAGBQJT0jz5AAoJEO1RxJ84ipLkJYQIAK0IhrCKLhGjiGT9NQ+rIqrW
+cYeMCmJo8c75TwFh31Vmegp13uwC4yZd+UbsHvxu3+Gjxkry9CrxxIGGeMOBcqtr
+RnvPJlNFVSp1wp6TPYuYHc+W2KxUYPHt4ZtYDyFpFp9cZECK3Si6yEHW7bZ74vrf
+ncW92h4YGOocdqzDTZ7k0V4NTolKuC44sfL/lNpDnjK3zEYLxNTefK2jSGXY4xb0
+hQ6E70AY1BL0i/8k3W1Zezbon4TWBBWv7DKEcwVAcNc6vZVLDTq979jkePMkaylu
+082/uGzPg/chjC0zGv3FukMawdAXNb670qtucsvunLbMl8xKJsuLMd79JqZUtxg=
+=68Hk
+-----END PGP SIGNATURE-----
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..46557c4b4926
--- /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
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/cgnslib/cgnslib-3.2.1.ebuild,v 1.1 2014/07/25 11:23:17 slis Exp $
+
+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
+}
diff --git a/sci-libs/cgnslib/files/cgnslib-3.2.1-cmake.patch b/sci-libs/cgnslib/files/cgnslib-3.2.1-cmake.patch
new file mode 100644
index 000000000000..bf8ea5f2bfeb
--- /dev/null
+++ b/sci-libs/cgnslib/files/cgnslib-3.2.1-cmake.patch
@@ -0,0 +1,149 @@
+ CMakeLists.txt | 20 +--------------
+ src/CMakeLists.txt | 72 +++++++++++++++++++++++++++---------------------------
+ 2 files changed, 37 insertions(+), 55 deletions(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index d9c1b3c..d4c2bf7 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -81,7 +81,7 @@ if (CGNS_ENABLE_LFS)
+ if (HAVE_OPEN64)
+ add_definitions(-DHAVE_LSEEK64)
+ endif (HAVE_OPEN64)
+- if (HAVE_OPEN64)
++ if (HAVE_LSEEK64)
+ add_definitions(-DHAVE_LSEEK64)
+ endif (HAVE_LSEEK64)
+ endif (WIN32)
+@@ -254,24 +254,6 @@ else (CGNS_ENABLE_HDF5 AND HDF5_NEED_MPI)
+ mark_as_advanced(FORCE CGNS_ENABLE_PARALLEL)
+ endif (CGNS_ENABLE_HDF5 AND HDF5_NEED_MPI)
+
+-####################
+-# RPATH Management #
+-####################
+-
+-# use, i.e. don't skip the full RPATH for the build tree
+-set(CMAKE_SKIP_BUILD_RPATH FALSE)
+-
+-# when building, don't use the install RPATH already
+-# (but later on when installing)
+-set(CMAKE_BUILD_WITH_INSTALL_RPATH FALSE)
+-
+-# the RPATH to be used when installing
+-set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib")
+-
+-# add the automatically determined parts of the RPATH
+-# which point to directories outside the build tree to the install RPATH
+-set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
+-
+ ########
+ # CGNS #
+ ########
+diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
+index 3c12c6d..694da42 100644
+--- a/src/CMakeLists.txt
++++ b/src/CMakeLists.txt
+@@ -69,7 +69,7 @@ set(SYSCFLAGS "")
+ set(CFGFLAGS "")
+ set(LIBS "")
+
+-file(TO_NATIVE_PATH ${CMAKE_INSTALL_PREFIX}/lib LIBDIR)
++file(TO_NATIVE_PATH ${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX} LIBDIR)
+ file(TO_NATIVE_PATH ${CMAKE_INSTALL_PREFIX}/include INCLUDEDIR)
+ file(TO_NATIVE_PATH ${CMAKE_C_COMPILER} CC)
+ if (WIN32)
+@@ -102,42 +102,42 @@ set(ZLIBLIB "")
+ set(MPIINC "")
+ set(MPILIBS "")
+
+-macro(native_paths INPUT_PATH_VARIABLE RESULT_VARIABLE)
+- set(${RESULT_VARIABLE} "")
+- foreach(PATH ${${INPUT_PATH_VARIABLE}})
+- file(TO_NATIVE_PATH ${PATH} NATIVE_PATH)
+- list(APPEND ${RESULT_VARIABLE} ${NATIVE_PATH})
+- endforeach(PATH ${${INPUT_PATH_VARIABLE}})
+-endmacro(native_paths)
++macro(native_paths INPUT_PATH_VARIABLE RESULT_VARIABLE)
++ set(${RESULT_VARIABLE} "")
++ foreach(PATH ${${INPUT_PATH_VARIABLE}})
++ file(TO_NATIVE_PATH ${PATH} NATIVE_PATH)
++ list(APPEND ${RESULT_VARIABLE} ${NATIVE_PATH})
++ endforeach(PATH ${${INPUT_PATH_VARIABLE}})
++endmacro(native_paths)
+
+ if (CGNS_ENABLE_HDF5)
+ set(BUILDHDF5 1)
+- if (HDF5_INCLUDE_PATH)
+- native_paths(HDF5_INCLUDE_PATH HDF5INC)
+- endif (HDF5_INCLUDE_PATH)
+- if (HDF5_LIBRARY)
+- native_paths(HDF5_LIBRARY HDF5LIB)
+- endif (HDF5_LIBRARY)
+- if (HDF5_NEED_SZIP)
+- set(H5NEEDSZIP 1)
+- if (SZIP_LIBRARY)
+- native_paths(SZIP_LIBRARY SZIPLIB)
+- endif (SZIP_LIBRARY)
+- endif (HDF5_NEED_SZIP)
+- if (HDF5_NEED_ZLIB)
+- set(H5NEEDZLIB 1)
+- if (ZLIB_LIBRARY)
+- native_paths(${ZLIB_LIBRARY} ZLIBLIB)
+- endif (ZLIB_LIBRARY)
+- endif (HDF5_NEED_ZLIB)
+- if (HDF5_NEED_MPI)
+- set(H5NEEDMPI 1)
+- if (MPI_INC)
+- native_paths(MPI_INC MPIINC)
+- endif (MPI_INC)
+- if (MPI_LIBS)
+- native_paths(MPI_LIBS MPILIBS)
+- endif (MPI_LIBS)
++ if (HDF5_INCLUDE_PATH)
++ native_paths(HDF5_INCLUDE_PATH HDF5INC)
++ endif (HDF5_INCLUDE_PATH)
++ if (HDF5_LIBRARY)
++ native_paths(HDF5_LIBRARY HDF5LIB)
++ endif (HDF5_LIBRARY)
++ if (HDF5_NEED_SZIP)
++ set(H5NEEDSZIP 1)
++ if (SZIP_LIBRARY)
++ native_paths(SZIP_LIBRARY SZIPLIB)
++ endif (SZIP_LIBRARY)
++ endif (HDF5_NEED_SZIP)
++ if (HDF5_NEED_ZLIB)
++ set(H5NEEDZLIB 1)
++ if (ZLIB_LIBRARY)
++ native_paths(${ZLIB_LIBRARY} ZLIBLIB)
++ endif (ZLIB_LIBRARY)
++ endif (HDF5_NEED_ZLIB)
++ if (HDF5_NEED_MPI)
++ set(H5NEEDMPI 1)
++ if (MPI_INC)
++ native_paths(MPI_INC MPIINC)
++ endif (MPI_INC)
++ if (MPI_LIBS)
++ native_paths(MPI_LIBS MPILIBS)
++ endif (MPI_LIBS)
+ if (CGNS_ENABLE_PARALLEL)
+ set(BUILDPARALLEL 1)
+ endif (CGNS_ENABLE_PARALLEL)
+@@ -251,7 +251,7 @@ if(CGNS_BUILD_SHARED)
+ endif(CGNS_BUILD_SHARED)
+
+ # Set the install path of the static library
+-install(TARGETS cgns_static ARCHIVE DESTINATION lib)
++install(TARGETS cgns_static ARCHIVE DESTINATION lib${LIB_SUFFIX})
+ # Set the install path of the shared library
+ if(CGNS_BUILD_SHARED)
+ # for windows, need to install both cgnsdll.dll and cgnsdll.lib
+@@ -259,7 +259,7 @@ if(CGNS_BUILD_SHARED)
+ install(TARGETS cgns_shared ARCHIVE DESTINATION lib)
+ install(TARGETS cgns_shared RUNTIME DESTINATION lib)
+ else (WIN32 OR CYGWIN)
+- install(TARGETS cgns_shared LIBRARY DESTINATION lib)
++ install(TARGETS cgns_shared LIBRARY DESTINATION lib${LIB_SUFFIX})
+ endif (WIN32 OR CYGWIN)
+ endif(CGNS_BUILD_SHARED)
+
diff --git a/sci-libs/cgnslib/metadata.xml b/sci-libs/cgnslib/metadata.xml
new file mode 100644
index 000000000000..362c51c12ce0
--- /dev/null
+++ b/sci-libs/cgnslib/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>sci</herd>
+ <use>
+ <flag name="legacy">Enable or disable building legacy code (3.0 compatible)</flag>
+ </use>
+ <maintainer>
+ <email>slis@gentoo.org</email>
+ </maintainer>
+</pkgmetadata>