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.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 29E29158042 for ; Tue, 22 Oct 2024 22:04:53 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 504A7E0905; Tue, 22 Oct 2024 22:04:52 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 34972E0905 for ; Tue, 22 Oct 2024 22:04:52 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 03B2F34069F for ; Tue, 22 Oct 2024 22:04:51 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 6494BAE7 for ; Tue, 22 Oct 2024 22:04:49 +0000 (UTC) From: "Alexander Puck Neuwirth" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Alexander Puck Neuwirth" Message-ID: <1729634674.dd532d98a9305b7920ed08db6670c8e28ab16bd5.alexander@gentoo> Subject: [gentoo-commits] proj/sci:master commit in: sci-physics/cernlib/ X-VCS-Repository: proj/sci X-VCS-Files: sci-physics/cernlib/cernlib-2024.06.12.0.ebuild X-VCS-Directories: sci-physics/cernlib/ X-VCS-Committer: alexander X-VCS-Committer-Name: Alexander Puck Neuwirth X-VCS-Revision: dd532d98a9305b7920ed08db6670c8e28ab16bd5 X-VCS-Branch: master Date: Tue, 22 Oct 2024 22:04:49 +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: 49ce56f0-c603-4370-8440-132851d165da X-Archives-Hash: 35b8a3cf47393a45baabd0568decae7c commit: dd532d98a9305b7920ed08db6670c8e28ab16bd5 Author: Alexander Puck Neuwirth neuwirth-informatik de> AuthorDate: Tue Oct 22 22:04:34 2024 +0000 Commit: Alexander Puck Neuwirth neuwirth-informatik de> CommitDate: Tue Oct 22 22:04:34 2024 +0000 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=dd532d98 sci-physics/cernlib: add 2024.06.12.0 Signed-off-by: Alexander Puck Neuwirth neuwirth-informatik.de> sci-physics/cernlib/cernlib-2024.06.12.0.ebuild | 79 +++++++++++++++++++++++++ 1 file changed, 79 insertions(+) diff --git a/sci-physics/cernlib/cernlib-2024.06.12.0.ebuild b/sci-physics/cernlib/cernlib-2024.06.12.0.ebuild new file mode 100644 index 000000000..299399738 --- /dev/null +++ b/sci-physics/cernlib/cernlib-2024.06.12.0.ebuild @@ -0,0 +1,79 @@ +EAPI=8 + +CMAKE_MAKEFILE_GENERATOR="emake" +inherit cmake fortran-2 flag-o-matic + +DESCRIPTION="CERN program library for High Energy Physics" +HOMEPAGE="https://cernlib.web.cern.ch/cernlib/" +SRC_URI=" + free? ( https://cernlib.web.cern.ch/download/$(ver_cut 1)_source/tar/${PN}-${P}-free.tar.gz ) + !free? ( https://cernlib.web.cern.ch/download/$(ver_cut 1)_source/tar/${PN}-${P}.tar.gz ) +" +S="${WORKDIR}/${PN}-${P}" +LICENSE=" + free? ( BSD LGPL-2+ GPL-1+ ) + !free? ( all-rights-reserved ) +" +SLOT="0" +KEYWORDS="~amd64" +# static-libs as default since otherwise test fail... +IUSE="+free +static-libs" +RESTRICT="mirror" + +RDEPEND=" + x11-libs/motif:0 + x11-libs/libXaw + x11-libs/libXau + virtual/lapack + dev-lang/cfortran + x11-libs/xbae + net-libs/libnsl + virtual/libcrypt:= +" +DEPEND="${RDEPEND}" +BDEPEND=" + virtual/pkgconfig +" + +PATCHES=( + "${FILESDIR}"/${PN}-2023.10.31.0-cfortran.patch + "${FILESDIR}"/${PN}-2023.10.31.0-man.patch +) + +src_unpack() { + default + if use free; then + mv ${PN}-${P}-free ${PN}-${P} || die + fi +} + +src_prepare() { + cmake_src_prepare + # cfortran.patch + # Remove cfortran.h since it is already installed from dev-lang/cfortran + # thereby we avoid collisions if e.g. sci-physics/root[fortran] is installed. + rm cfortran/cfortran.h || die +} + +src_configure() { + # docs follow rpm like spliting into packages cernlib, cernlib-devel, etc. + # we move them into a folder that agrees with gentoo doc structure. + sed -i "s#/doc/#/doc/${PF}/#g" CMakeLists.txt || die + # let upstream decide on optimization (-O0) since code is fragile + #filter-flags -O1 -O2 -O3 -Os -Oz -Og -Ofast + # with -O2 some tests fail + append-flags -O0 + local mycmakeargs=( + -DBUILD_SHARED_LIBS=$(usex static-libs OFF ON) + ) + cmake_src_configure +} + +src_install() { + cmake_src_install + # man.patch + # The CMakeLists.txt already compresses the manual before install + # therefore we install it manually and avoid QA problems. + doman contrib/man/man1/*.1 + doman contrib/man/man8/*.8 +}