From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 926BA138335 for ; Sun, 19 May 2019 11:22:45 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6DEFAE087A; Sun, 19 May 2019 11:22:44 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 44566E087A for ; Sun, 19 May 2019 11:22:44 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 8C7D0344AA4 for ; Sun, 19 May 2019 11:22:42 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id F327457F for ; Sun, 19 May 2019 11:22:40 +0000 (UTC) From: "Andreas Sturmlechner" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andreas Sturmlechner" Message-ID: <1558264936.1811a29598d18bc02b7a5cc86271f9d2e96bf731.asturm@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/libmed/ X-VCS-Repository: repo/gentoo X-VCS-Files: sci-libs/libmed/libmed-4.0.0-r1.ebuild sci-libs/libmed/metadata.xml X-VCS-Directories: sci-libs/libmed/ X-VCS-Committer: asturm X-VCS-Committer-Name: Andreas Sturmlechner X-VCS-Revision: 1811a29598d18bc02b7a5cc86271f9d2e96bf731 X-VCS-Branch: master Date: Sun, 19 May 2019 11:22:40 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 0f4d4d08-1ed8-42dc-bd47-a8d3ba21a1f8 X-Archives-Hash: c6f8fc92f7d5e0e85ab421cda0d474a5 commit: 1811a29598d18bc02b7a5cc86271f9d2e96bf731 Author: Bernd Waibel gmail com> AuthorDate: Sat May 11 13:41:31 2019 +0000 Commit: Andreas Sturmlechner gentoo org> CommitDate: Sun May 19 11:22:16 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1811a295 sci-libs/libmed: remove static-libs * Remove static-libs USE flag due to bug #682676 * Depend on >=hdf5-1.10.x * sort mycmakeargs * in src_install change ${D} to ${ED} * update maintainers (see bug #682676) Closes: https://bugs.gentoo.org/682676 Package-Manager: Portage-2.3.62, Repoman-2.3.12 Signed-off-by: Bernd Waibel gmail.com> Closes: https://github.com/gentoo/gentoo/pull/11970 Signed-off-by: Andreas Sturmlechner gentoo.org> sci-libs/libmed/libmed-4.0.0-r1.ebuild | 103 +++++++++++++++++++++++++++++++++ sci-libs/libmed/metadata.xml | 8 ++- 2 files changed, 109 insertions(+), 2 deletions(-) diff --git a/sci-libs/libmed/libmed-4.0.0-r1.ebuild b/sci-libs/libmed/libmed-4.0.0-r1.ebuild new file mode 100644 index 00000000000..832a6c7398f --- /dev/null +++ b/sci-libs/libmed/libmed-4.0.0-r1.ebuild @@ -0,0 +1,103 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +# EAPI=7 uses ninja generator by default but it's incompatible with USE=fortran +# https://github.com/Kitware/ninja/tree/features-for-fortran#readme +CMAKE_MAKEFILE_GENERATOR=emake + +FORTRAN_NEEDED=fortran + +# NOTE:The build for multiple python versions should be possible but +# complicated for the build system +PYTHON_COMPAT=( python2_7 python3_{5,6,7} ) + +inherit cmake-utils fortran-2 python-single-r1 + +MY_P="med-${PV}" + +DESCRIPTION="A library to store and exchange meshed data or computation results" +HOMEPAGE="https://www.salome-platform.org/" +SRC_URI="http://files.salome-platform.org/Salome/other/${MY_P}.tar.gz" + +LICENSE="GPL-3 LGPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc fortran mpi python test" + +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" +RDEPEND=" + >=sci-libs/hdf5-1.10.0[fortran=,mpi=] + mpi? ( virtual/mpi[fortran=] ) + python? ( ${PYTHON_DEPS} ) +" +DEPEND="${RDEPEND}" +BDEPEND="python? ( >=dev-lang/swig-2.0.9:0 )" + +S="${WORKDIR}"/${MY_P} + +PATCHES=( + "${FILESDIR}/${PN}-3.3.1-cmake-fortran.patch" + "${FILESDIR}/${PN}-3.3.1-disable-python-compile.patch" # managed by function of python eclass + "${FILESDIR}/${PN}-3.3.1-mpi.patch" + "${FILESDIR}/${P}-cmakelist.patch" + "${FILESDIR}/${P}-tests.patch" # disable a few tests not running + "${FILESDIR}/${P}-installdoc.patch" +) + +DOCS=( AUTHORS ChangeLog NEWS README TODO ) + +pkg_setup() { + use python && python-single-r1_pkg_setup + use fortran && fortran-2_pkg_setup +} + +src_prepare() { + # fixes for correct libdir name + sed -i -e "s@SET(_install_dir lib/python@SET(_install_dir $(get_libdir)/python@" \ + ./python/CMakeLists.txt || die "sed failed" + 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 + + cmake-utils_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_DOC_DIRECTORY="${EPREFIX}"/usr/share/doc/${PF}/html # custom var created by patches + -DMEDFILE_INSTALL_DOC=$(usex doc) + -DMEDFILE_USE_MPI=$(usex mpi) + ) + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + + # 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,testf,testpy} || die "failed to delete test executables" + fi +} + +src_test() { + # override parallel mode only for tests + local myctestargs=( "-j 1" ) + cmake-utils_src_test +} diff --git a/sci-libs/libmed/metadata.xml b/sci-libs/libmed/metadata.xml index 11287d1296c..e54fc02c2ba 100644 --- a/sci-libs/libmed/metadata.xml +++ b/sci-libs/libmed/metadata.xml @@ -2,7 +2,11 @@ - fordfrog@gentoo.org - Miroslav Ć ulc + waebbl@gmail.com + Bernd Waibel + + + proxy-maint@gentoo.org + Proxy Maintainer Team