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 (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 2A2D6158041 for ; Fri, 22 Mar 2024 16:38:01 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6A8D4E29A7; Fri, 22 Mar 2024 16:38:00 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 50FA0E29A7 for ; Fri, 22 Mar 2024 16:38:00 +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)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 659F433BF29 for ; Fri, 22 Mar 2024 16:37:59 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 030A1BE9 for ; Fri, 22 Mar 2024 16:37:58 +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: <1711125446.2ba82f4414b79a0fd2473c45f0b6701e632e40bd.alexander@gentoo> Subject: [gentoo-commits] proj/sci:master commit in: sci-physics/cernlib/, sci-physics/cernlib/files/ X-VCS-Repository: proj/sci X-VCS-Files: sci-physics/cernlib/cernlib-2023.10.31.0.ebuild sci-physics/cernlib/files/cernlib-2023.10.31.0-cfortran.patch sci-physics/cernlib/files/cernlib-2023.10.31.0-ctest.patch sci-physics/cernlib/files/cernlib-2023.10.31.0-man.patch sci-physics/cernlib/metadata.xml X-VCS-Directories: sci-physics/cernlib/files/ sci-physics/cernlib/ X-VCS-Committer: alexander X-VCS-Committer-Name: Alexander Puck Neuwirth X-VCS-Revision: 2ba82f4414b79a0fd2473c45f0b6701e632e40bd X-VCS-Branch: master Date: Fri, 22 Mar 2024 16:37:58 +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: 53af7011-d8b6-4a81-b977-8e4e7b7f5d93 X-Archives-Hash: 6697dda681c354c4f677f7ccc60237d1 commit: 2ba82f4414b79a0fd2473c45f0b6701e632e40bd Author: Alexander Puck Neuwirth neuwirth-informatik de> AuthorDate: Tue Feb 27 13:34:57 2024 +0000 Commit: Alexander Puck Neuwirth neuwirth-informatik de> CommitDate: Fri Mar 22 16:37:26 2024 +0000 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=2ba82f44 sci-physics/cernlib: new package, add 2023.10.31.0 Closes: https://github.com/gentoo/sci/pull/1243 Signed-off-by: Alexander Puck Neuwirth neuwirth-informatik.de> sci-physics/cernlib/cernlib-2023.10.31.0.ebuild | 57 ++++++++++++++++++++++ .../files/cernlib-2023.10.31.0-cfortran.patch | 21 ++++++++ .../cernlib/files/cernlib-2023.10.31.0-ctest.patch | 31 ++++++++++++ .../cernlib/files/cernlib-2023.10.31.0-man.patch | 22 +++++++++ sci-physics/cernlib/metadata.xml | 21 ++++++++ 5 files changed, 152 insertions(+) diff --git a/sci-physics/cernlib/cernlib-2023.10.31.0.ebuild b/sci-physics/cernlib/cernlib-2023.10.31.0.ebuild new file mode 100644 index 000000000..697a25ef0 --- /dev/null +++ b/sci-physics/cernlib/cernlib-2023.10.31.0.ebuild @@ -0,0 +1,57 @@ +EAPI=8 + +CMAKE_MAKEFILE_GENERATOR="emake" +inherit cmake fortran-2 + +DESCRIPTION="CERN program library for High Energy Physics" +HOMEPAGE="https://cernlib.web.cern.ch/cernlib/" +SRC_URI="https://cernlib.web.cern.ch/download/2023_source/tar/${P}-free.tar.gz" +S="${WORKDIR}/${P}-free" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64" + +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}"/$P-cfortran.patch + "${FILESDIR}"/$P-ctest.patch + "${FILESDIR}"/$P-man.patch +) +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 + 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 +} diff --git a/sci-physics/cernlib/files/cernlib-2023.10.31.0-cfortran.patch b/sci-physics/cernlib/files/cernlib-2023.10.31.0-cfortran.patch new file mode 100644 index 000000000..b4426b3eb --- /dev/null +++ b/sci-physics/cernlib/files/cernlib-2023.10.31.0-cfortran.patch @@ -0,0 +1,21 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 0b56fc85..ead47c54 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -735,7 +735,6 @@ add_subdirectory(code_motif) + ######################################################################## + set(CERNLIB_MMAP 1) + install(FILES +-${CMAKE_CURRENT_SOURCE_DIR}/cfortran/cfortran.h + ${CMAKE_CURRENT_SOURCE_DIR}/cfortran/comis.h + ${CMAKE_CURRENT_SOURCE_DIR}/cfortran/cspack.h + ${CMAKE_CURRENT_SOURCE_DIR}/cfortran/geant315.h +@@ -757,7 +756,7 @@ ${CMAKE_CURRENT_SOURCE_DIR}/cfortran/paw.h + ${CMAKE_CURRENT_SOURCE_DIR}/cfortran/zebra.h + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/ COMPONENT libs ) + +-set(head cfortran.h comis.h cspack.h geant315.h geant321.h gen.h graflib.h hbook.h hbook_94b.h higz.h hplot.h jetset74.h kernlib.h kuip.h lapack.h lepto62.h minuit.h packlib.h paw.h zebra.h ) ++set(head comis.h cspack.h geant315.h geant321.h gen.h graflib.h hbook.h hbook_94b.h higz.h hplot.h jetset74.h kernlib.h kuip.h lapack.h lepto62.h minuit.h packlib.h paw.h zebra.h ) + + install(CODE "execute_process(COMMAND ${CMAKE_COMMAND} -E make_directory ${CMAKE_INSTALL_INCLUDEDIR}/cfortran/)") + foreach ( m ${head} ) diff --git a/sci-physics/cernlib/files/cernlib-2023.10.31.0-ctest.patch b/sci-physics/cernlib/files/cernlib-2023.10.31.0-ctest.patch new file mode 100644 index 000000000..b329bb900 --- /dev/null +++ b/sci-physics/cernlib/files/cernlib-2023.10.31.0-ctest.patch @@ -0,0 +1,31 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 0b56fc85..78a28e11 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -162,9 +162,10 @@ macro(CLATestTarget ast) + list(FIND a "<" NEEDSHELL) + list(JOIN a " " MYCMD) + if (NEEDSHELL STREQUAL "-1") +- add_test(NAME test${exec} COMMAND ${CMAKE_CURRENT_BINARY_DIR}/${exec} {MYCMD} WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}) ++ add_test(NAME test${exec} COMMAND ${CMAKE_CURRENT_BINARY_DIR}/${exec} ${MYCMD} WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}) + if (CERNLIB_ENABLE_MEMORYTEST) +- add_test(NAME memory_test${exec} COMMAND ${VG} ${VGOPTIONS} ${CMAKE_CURRENT_BINARY_DIR}/${exec} {MYCMD} WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}) ++ add_test(NAME memory_test${exec} COMMAND ${VG} ${VGOPTIONS} ++ ${CMAKE_CURRENT_BINARY_DIR}/${exec} ${MYCMD} WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}) + endif() + else() + add_test(NAME test${exec} COMMAND sh -c "${CMAKE_CURRENT_BINARY_DIR}/${exec} ${MYCMD}" WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}) +@@ -182,9 +183,11 @@ macro(CLBTestTarget ast) + list(JOIN a " " MYCMD) + if (NEEDSHELL STREQUAL "-1") + if (CERNLIB_ENABLE_MEMORYTEST) +- add_test(NAME memory_test${exec} COMMAND ${VG} ${VGOPTIONS} ${CMAKE_CURRENT_BINARY_DIR}/${exec}/${exec} {MYCMD} WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/${exec}) ++ add_test(NAME memory_test${exec} COMMAND ${VG} ${VGOPTIONS} ++ ${CMAKE_CURRENT_BINARY_DIR}/${exec}/${exec} ${MYCMD} WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/${exec}) + endif() +- add_test(NAME test${exec} COMMAND ${CMAKE_CURRENT_BINARY_DIR}/${exec}/${exec} {MYCMD} WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/${exec}) ++ add_test(NAME test${exec} COMMAND ++ ${CMAKE_CURRENT_BINARY_DIR}/${exec}/${exec} ${MYCMD} WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/${exec}) + else() + if (CERNLIB_ENABLE_MEMORYTEST) + add_test(NAME memory_test${exec} COMMAND sh -c "${VG} ${VGOPTIONS} ${CMAKE_CURRENT_BINARY_DIR}/${exec}/${exec} ${MYCMD}" WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/${exec}) diff --git a/sci-physics/cernlib/files/cernlib-2023.10.31.0-man.patch b/sci-physics/cernlib/files/cernlib-2023.10.31.0-man.patch new file mode 100644 index 000000000..636943899 --- /dev/null +++ b/sci-physics/cernlib/files/cernlib-2023.10.31.0-man.patch @@ -0,0 +1,22 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 0b56fc85..0db67942 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -410,7 +413,7 @@ else() + COMMENT "GZipping to ${CMAKE_CURRENT_BINARY_DIR}/${m}.gz." + ) + endif() +- install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${m}.gz DESTINATION ${CMAKE_INSTALL_DATADIR}/man/man1) ++#install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${m}.gz DESTINATION ${CMAKE_INSTALL_DATADIR}/man/man1) + endforeach ( m ${man1} ) + + foreach ( m ${man8} ) +@@ -425,7 +428,7 @@ else() + COMMENT "GZipping to ${CMAKE_CURRENT_BINARY_DIR}/${m}.gz." + ) + endif() +- install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${m}.gz DESTINATION ${CMAKE_INSTALL_DATADIR}/man/man8) ++#install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${m}.gz DESTINATION ${CMAKE_INSTALL_DATADIR}/man/man8) + endforeach ( m ${man8} ) + + #install(PROGRAMS ${CMAKE_CURRENT_SOURCE_DIR}/patchy5/yexpand.script DESTINATION ${CMAKE_INSTALL_BINDIR}/ RENAME yexpand.script${COMPSUFFIXBIN} ) diff --git a/sci-physics/cernlib/metadata.xml b/sci-physics/cernlib/metadata.xml new file mode 100644 index 000000000..887c950bc --- /dev/null +++ b/sci-physics/cernlib/metadata.xml @@ -0,0 +1,21 @@ + + + + + alexander@neuwirth-informatik.de + Alexander Puck Neuwirth + + + sci-physics@gentoo.org + Gentoo Physics Project + + + The CERN Program Library is a large collection of general purpose + libraries and modules maintained and offered in both source and + object code form on the CERN central computers. Most of these + programs were developed at CERN and are therefore oriented towards + the needs of a physics research laboratory that is general + mathematics, data analysis, detectors simulation, data-handling + etc... applicable to a wide range of problems. + +