From 622b78d0d832282505f685f2f442c34ea0e8a7b1 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 23 Apr 2023 18:08:08 +0100 Subject: gentoo auto-resync : 23:04:2023 - 18:08:08 --- sci-libs/med/Manifest | 2 +- sci-libs/med/med-4.1.1-r2.ebuild | 114 --------------------------------------- sci-libs/med/med-4.1.1-r3.ebuild | 109 +++++++++++++++++++++++++++++++++++++ 3 files changed, 110 insertions(+), 115 deletions(-) delete mode 100644 sci-libs/med/med-4.1.1-r2.ebuild create mode 100644 sci-libs/med/med-4.1.1-r3.ebuild (limited to 'sci-libs/med') diff --git a/sci-libs/med/Manifest b/sci-libs/med/Manifest index 09b7746ea3d0..dd08882af1c2 100644 --- a/sci-libs/med/Manifest +++ b/sci-libs/med/Manifest @@ -4,5 +4,5 @@ AUX med-4.1.0-0003-build-against-hdf5-1.12.patch 4749 BLAKE2B 3a606c27bce6130e83 AUX med-4.1.0-0003-build-against-hdf5-1.14.patch 4749 BLAKE2B 2968edac958b96a66c0d3ddd16d67ab24b8767b26da95eb22c14c97cec0afba337df0f1bdeb07f4d21a353d9cdc788ac63ad496a833de9f0b9d5066620ec8b78 SHA512 2156ab5f929b4f91323dd8e2c03adef1ec1aabfad8433fdaf2afd165f67bf45a8110f89781a4ab8d347c173baca8f2fdba4bbff3b1a00da8b9811437e412d917 DIST med-4.1.1.tar.gz 50506725 BLAKE2B fb9bc3239c18c53fa42c5dd1101559746e8d38db2a3cb5fb47d1bf0cb578facc4ab95409af8524f5c20251848842cc1a331f6a816ce0754e9a6c95f507174ed1 SHA512 8917e7ecfe30e1259b0927c8e1c3d6efd86ed2386813f6d90217bd95589199478e587f0815031ab65cacf7901a30b77a6307414f9073caffe6e7f013e710d768 EBUILD med-4.1.1-r1.ebuild 3420 BLAKE2B 57dd4c3ffd7c3d9cd7413252ae04a58f0cbe86223e7bca74eafc4caf808c7c194232ada980d652528f727e19a9a12a8e9d098d805d00d7b63169d30b05113de1 SHA512 30c185c5e7b88b8756af77c207138900745e7906721ab9fe675f663c01670754774ce34f366dc154bc128803f614453d1c448ea828f06d03320c39c8f2a31a2d -EBUILD med-4.1.1-r2.ebuild 3422 BLAKE2B d7ec3931d07d58994f3783a54a7f92e0b2c18cf87caaeb7fb225dbc89ce19094cde18831db08b320312e7e447751368aedd99dcebf8fad81df26d9cdf7c23dd2 SHA512 df8e12f535a7adb9259863e2865ce687f943dce8de356b15ee9a5ce59f1e8f6ecd3d6dba2597036ccee8669f1545aec8dec2448a259c65d14843615a7633308e +EBUILD med-4.1.1-r3.ebuild 3187 BLAKE2B 43d4a69d866410f4411b45554eee0c3956e648e48f88f2ff07bb7a5acc48d647eddd5842d2e54c69b09dee9e54da20f652c1c98c4f57446ab51ba6429aa522b2 SHA512 055b48dc9bade624e3a08e06df19e98cc8bf9f29ff83d2d938b8997bab995cffcd89304b17a6b13da584af845f0e7dfa00a4bc7bdec2550cea24210b8bff1417 MISC metadata.xml 636 BLAKE2B de5e1c1d3f715459d5ca0945d0d795c1c549e6e20c27283140190bdc24289f4ccc0c12940e00aa689b90fd9af53749f0eabab44cecaf6815ef37adc1795f43e9 SHA512 60a3c3afd0db34569993b73d795830d86eb51778f9a7f0375d0b196c6f0862ca10a77c4c33ad2c906c56c6715be6f4452b61ffab5a25c254e480e50b64c021e4 diff --git a/sci-libs/med/med-4.1.1-r2.ebuild b/sci-libs/med/med-4.1.1-r2.ebuild deleted file mode 100644 index 6b6346b2560b..000000000000 --- a/sci-libs/med/med-4.1.1-r2.ebuild +++ /dev/null @@ -1,114 +0,0 @@ -# Copyright 1999-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -FORTRAN_NEEDED=fortran - -PYTHON_COMPAT=( python3_{9..11} ) - -inherit cmake flag-o-matic fortran-2 python-single-r1 - -DESCRIPTION="A library to store and exchange meshed data or computation results" -HOMEPAGE="https://www.salome-platform.org/user-section/about/med" -SRC_URI="https://files.salome-platform.org/Salome/other/${P}.tar.gz" -LICENSE="LGPL-3" -S="${WORKDIR}/${P}_SRC" - -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="doc fortran mpi python test" -REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" -RESTRICT="!test? ( test ) python? ( test )" - -RDEPEND=" - !sci-libs/libmed - dev-lang/tk:0= - >=sci-libs/hdf5-1.10.2:=[fortran?,mpi(+)?] - mpi? ( virtual/mpi[fortran?] ) - python? ( ${PYTHON_DEPS} ) -" -DEPEND="${RDEPEND}" -BDEPEND="python? ( >=dev-lang/swig-3.0.8 )" - -PATCHES=( - "${FILESDIR}/${PN}-4.1.0-0001-Gentoo-specific-Adjust-install-path-for-build-dir.patch" - "${FILESDIR}/${PN}-4.1.0-0002-Re-add-option-for-building-Fortran-library.patch" - "${FILESDIR}/${PN}-4.1.0-0003-build-against-hdf5-1.14.patch" -) - -DOCS=( AUTHORS ChangeLog NEWS README README.CMAKE TODO ) - -pkg_setup() { - use python && python-single-r1_pkg_setup - use fortran && fortran-2_pkg_setup -} - -src_prepare() { - if use python; then - # fixes for correct libdir name - local pysite=$(python_get_sitedir) - pysite="${pysite##/usr/}" - sed \ - -e 's@SET(_install_dir lib/python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}/site-packages/med)@SET(_install_dir '${pysite}'/med)@' \ - -i ./python/CMakeLists.txt || die "sed on ./python/CMakeLists.txt failed" - fi - for cm in ./src/CMakeLists.txt ./tools/medimport/CMakeLists.txt - do - sed -i -e "s@INSTALL(TARGETS \(.*\) DESTINATION lib)@INSTALL(TARGETS \1 DESTINATION $(get_libdir))@" \ - "${cm}" || die "sed on ${cm} failed" - done - sed -e 's/med-fichier/med/' -i CMakeLists.txt || die "fix paths failed" - sed -e 's|doc/med-${MED_STR_VERSION}|doc/med-${MED_STR_VERSION}/html|' \ - -i CMakeLists.txt || die "fix doc path failed" - - # bug #862900, already reported upstream. CHECK on updates! - filter-lto - - cmake_src_prepare -} - -src_configure() { - local mycmakeargs=( - # as indicated in the CMakeLists.txt, the shipped documentation is generated by a custom doxygen, - # so let's avoid rebuilding it because it will be different - -DMEDFILE_BUILD_DOC=OFF - -DMEDFILE_BUILD_FORTRAN=$(usex fortran) - -DMEDFILE_BUILD_PYTHON=$(usex python) - -DMEDFILE_BUILD_SHARED_LIBS=ON - -DMEDFILE_BUILD_STATIC_LIBS=OFF - -DMEDFILE_BUILD_TESTS=$(usex test) - -DMEDFILE_INSTALL_DOC=$(usex doc) - -DMEDFILE_USE_MPI=$(usex mpi) - -DMEDFILE_USE_UNICODE=ON - ) - cmake_src_configure -} - -src_install() { - cmake_src_install - - # we don't need old 2.3.6 include files - rm -r "${ED}"/usr/include/2.3.6 || die "failed to delete obsolete include dir" - - # the optimization done in CMakeLists.txt has been disabled so - # we need to do it manually - use python && python_optimize - - # Prevent test executables being installed - if use test; then - rm -r "${ED}"/usr/bin/testc || die "failed to delete C test executables" - if use fortran; then - rm -r "${ED}"/usr/bin/testf || die "failed to delete fortran test executables" - fi - if use python; then - rm -r "${ED}"/usr/bin/testpy || die "failed to delete python test executables" - fi - fi -} - -src_test() { - # override parallel mode only for tests - local myctestargs=( "-j 1" ) - cmake_src_test -} diff --git a/sci-libs/med/med-4.1.1-r3.ebuild b/sci-libs/med/med-4.1.1-r3.ebuild new file mode 100644 index 000000000000..6fa0f413d8c9 --- /dev/null +++ b/sci-libs/med/med-4.1.1-r3.ebuild @@ -0,0 +1,109 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +FORTRAN_NEEDED=fortran + +PYTHON_COMPAT=( python3_{9..11} ) + +inherit cmake flag-o-matic fortran-2 python-single-r1 + +DESCRIPTION="A library to store and exchange meshed data or computation results" +HOMEPAGE="https://www.salome-platform.org/user-section/about/med" +SRC_URI="https://files.salome-platform.org/Salome/other/${P}.tar.gz" +LICENSE="LGPL-3" +S="${WORKDIR}/${P}_SRC" + +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc fortran mpi python test" +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" +RESTRICT="!test? ( test ) python? ( test )" + +RDEPEND=" + !sci-libs/libmed + dev-lang/tk:0= + >=sci-libs/hdf5-1.10.2:=[fortran?,mpi(+)?] + mpi? ( virtual/mpi[fortran?] ) + python? ( ${PYTHON_DEPS} ) +" +DEPEND="${RDEPEND}" +BDEPEND="python? ( >=dev-lang/swig-3.0.8 )" + +PATCHES=( + "${FILESDIR}/${PN}-4.1.0-0001-Gentoo-specific-Adjust-install-path-for-build-dir.patch" + "${FILESDIR}/${PN}-4.1.0-0002-Re-add-option-for-building-Fortran-library.patch" + "${FILESDIR}/${PN}-4.1.0-0003-build-against-hdf5-1.14.patch" +) + +DOCS=( AUTHORS ChangeLog NEWS README README.CMAKE TODO ) + +pkg_setup() { + use python && python-single-r1_pkg_setup + use fortran && fortran-2_pkg_setup +} + +src_prepare() { + if use python; then + # fixes for correct libdir name + local pysite=$(python_get_sitedir) + pysite="${pysite##/usr/}" + sed \ + -e 's@SET(_install_dir lib/python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}/site-packages/med)@SET(_install_dir '${pysite}'/med)@' \ + -i ./python/CMakeLists.txt || die "sed on ./python/CMakeLists.txt failed" + fi + sed -e 's/med-fichier/med/' -i CMakeLists.txt || die "fix paths failed" + sed -e 's|doc/med-${MED_STR_VERSION}|doc/'${PF}'/html|' \ + -i CMakeLists.txt || die "fix doc path failed" + + # bug #862900, already reported upstream. CHECK on updates! + filter-lto + + cmake_src_prepare +} + +src_configure() { + local mycmakeargs=( + # as indicated in the CMakeLists.txt, the shipped documentation is generated by a custom doxygen, + # so let's avoid rebuilding it because it will be different + -DMEDFILE_BUILD_DOC=OFF + -DMEDFILE_BUILD_FORTRAN=$(usex fortran) + -DMEDFILE_BUILD_PYTHON=$(usex python) + -DMEDFILE_BUILD_SHARED_LIBS=ON + -DMEDFILE_BUILD_STATIC_LIBS=OFF + -DMEDFILE_BUILD_TESTS=$(usex test) + -DMEDFILE_INSTALL_DOC=$(usex doc) + -DMEDFILE_USE_MPI=$(usex mpi) + -DMEDFILE_USE_UNICODE=ON + ) + cmake_src_configure +} + +src_install() { + cmake_src_install + + # we don't need old 2.3.6 include files + rm -r "${ED}"/usr/include/2.3.6 || die "failed to delete obsolete include dir" + + # the optimization done in CMakeLists.txt has been disabled so + # we need to do it manually + use python && python_optimize + + # Prevent test executables being installed + if use test; then + rm -r "${ED}"/usr/bin/testc || die "failed to delete C test executables" + if use fortran; then + rm -r "${ED}"/usr/bin/testf || die "failed to delete fortran test executables" + fi + if use python; then + rm -r "${ED}"/usr/bin/testpy || die "failed to delete python test executables" + fi + fi +} + +src_test() { + # override parallel mode only for tests + local myctestargs=( "-j 1" ) + cmake_src_test +} -- cgit v1.2.3