From nobody Mon Apr 17 08:47:06 2023 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Q0LJp6gS0z45bDC; Mon, 17 Apr 2023 08:47:06 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Q0LJp4DTGz43VJ; Mon, 17 Apr 2023 08:47:06 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1681721226; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=yVyGwjcqIAPD7KAx7bKqLR/mpnVFj6TyIiYT/rYSOrE=; b=YAzIwRLuVAS02e8CXJlwt++4he7jAV3Ibx6ZhJmeEiT5ppvbQ/SLeqS8UVWHp9csr9jP8S ZynM0vjCPJtcWPbo0PitQmrL1X+zSjQZ4D0NbuvZDyOuV2xve1txkP+tVxBkxAkXqgWmFL AEGVHinWwPdmcWpexntlSpj31ZAilZnY8jIH6EvWVnCF24JHrD/xCPcMrqh6uUDydiOKjs u8e90DawQJQEOomXxxdtGktEqBWY7ifN1hLuEFZ+ETrn7rh+K+Fh9tQg3jihx7TEsP//y5 IPEbin/EaC8YrwxYmK/U/R2F3CElvYjK/dhePrCRj+yLzQy1xs1L1Pqpc0cxpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1681721226; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=yVyGwjcqIAPD7KAx7bKqLR/mpnVFj6TyIiYT/rYSOrE=; b=W6UoRqyRP4T7nfkedy+/EzEEhvf+WR5ThaBByETtMLynkW/QX/O+xTCoyvecWjUrP6xCKN fW7+mRvrayvFo26RkNnFgVjvgnr/CwjP4lLLleaULXffI1ygOKlgHLSjzT5ylLPvZbD/yE h2idM0o50hdPQjHlwJpN7p6Nq1xMn/VVBU6TydoUDM4cC2jdlZBwTtUwg0B4gsh0u85CWb nvcm6rXQ3xshDseBv4b1yUnFteS3ZkjvsdPsjQiSCBq94Nqe3qoi06zxHQ4Md4Lnl7VtE1 l5/bnlrTi3jnNSTIlvBkkZ9p3tINAY5aPCXo1r35ThDaa2HrYN88FZHgoppPJA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1681721226; a=rsa-sha256; cv=none; b=xAGhZ5EwIRvzYUAgpb4zOwXVhAR032u4M6b5dDlmQ9n5rQ9KIVb8Caon7HmIKFEMUBgfLn XuCTMX+HDN2eTCZXWgzCLTvmOvKjcFTy8L8Wbfds62Uh9E+0uZUKW9mYWKPALdIb/p2kYs k1/xwBxtlllCQFkkH6WDHeEDbaP+P+1sGQiTVTY5JbgFDrlLlJluvsJbIgdAUMKSHYi4pu tddrahJUVXefIvv7VMOfnMKHBDa+OWK/Ij2w/aeq5O7nc5T2+9u+sjPP3cARQZj6INd8B1 sXQyoONnYnDFUaHkB3BFw/vfdU1EVWSRZUkfxgWuuHP38KUOgUtfMCa19XgMEg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Q0LJp1R2mzN6w; Mon, 17 Apr 2023 08:47:06 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 33H8l6NG076142; Mon, 17 Apr 2023 08:47:06 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 33H8l61s076141; Mon, 17 Apr 2023 08:47:06 GMT (envelope-from git) Date: Mon, 17 Apr 2023 08:47:06 GMT Message-Id: <202304170847.33H8l61s076141@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Yuri Victorovich Subject: git: 0e14eaf98bf2 - main - science/py-HepMC3: New port: Event record for High Energy Physics Monte Carlo generators/simulation List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: yuri X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 0e14eaf98bf2f4ca8b12d3ec033ab9aa349998b4 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=0e14eaf98bf2f4ca8b12d3ec033ab9aa349998b4 commit 0e14eaf98bf2f4ca8b12d3ec033ab9aa349998b4 Author: Yuri Victorovich AuthorDate: 2023-04-17 08:46:21 +0000 Commit: Yuri Victorovich CommitDate: 2023-04-17 08:47:01 +0000 science/py-HepMC3: New port: Event record for High Energy Physics Monte Carlo generators/simulation --- science/Makefile | 1 + science/py-HepMC3/Makefile | 26 ++++++++++++++++++++++ science/py-HepMC3/distinfo | 3 +++ science/py-HepMC3/files/patch-CMakeLists.txt | 32 ++++++++++++++++++++++++++++ science/py-HepMC3/pkg-descr | 6 ++++++ science/py-HepMC3/pkg-plist | 3 +++ 6 files changed, 71 insertions(+) diff --git a/science/Makefile b/science/Makefile index 7ff6a322b6e1..dd281aa1b47b 100644 --- a/science/Makefile +++ b/science/Makefile @@ -277,6 +277,7 @@ SUBDIR += py-DendroPy SUBDIR += py-GPy SUBDIR += py-GPyOpt + SUBDIR += py-HepMC3 SUBDIR += py-MDAnalysis SUBDIR += py-MDAnalysisTests SUBDIR += py-OpenFermion diff --git a/science/py-HepMC3/Makefile b/science/py-HepMC3/Makefile new file mode 100644 index 000000000000..c03a6018e892 --- /dev/null +++ b/science/py-HepMC3/Makefile @@ -0,0 +1,26 @@ +PORTNAME= HepMC3 +DISTVERSION= 3.2.6 +CATEGORIES= science +MASTER_SITES= http://hepmc.web.cern.ch/hepmc/releases/ +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Event record for High Energy Physics Monte Carlo generators/simulation +WWW= https://hepmc.web.cern.ch/hepmc/ + +LICENSE= GPLv3 +LICENSE_FILE= ${WRKSRC}/../COPYING + +LIB_DEPENDS= libHepMC3.so:science/hepmc3 + +USES= cmake:testing compiler:c++11-lang python +USE_PYTHON= flavors + +WRKSRC_SUBDIR= python + +CMAKE_ON= USE_INSTALLED_HEPMC3 +CMAKE_ARGS= -DPython3_EXECUTABLE=${PYTHON_CMD} +CMAKE_OFF= HEPMC3_ENABLE_TEST +CMAKE_TESTING_ON= HEPMC3_ENABLE_TEST + +.include diff --git a/science/py-HepMC3/distinfo b/science/py-HepMC3/distinfo new file mode 100644 index 000000000000..baf19deaddc4 --- /dev/null +++ b/science/py-HepMC3/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1681718734 +SHA256 (HepMC3-3.2.6.tar.gz) = 248f3b5b36dd773844cbe73d51f60891458334b986b259754c59dbf4bbf1d525 +SIZE (HepMC3-3.2.6.tar.gz) = 9344806 diff --git a/science/py-HepMC3/files/patch-CMakeLists.txt b/science/py-HepMC3/files/patch-CMakeLists.txt new file mode 100644 index 000000000000..83a78212d418 --- /dev/null +++ b/science/py-HepMC3/files/patch-CMakeLists.txt @@ -0,0 +1,32 @@ +--- CMakeLists.txt.orig 2023-04-12 14:19:36 UTC ++++ CMakeLists.txt +@@ -6,6 +6,8 @@ SET_PROPERTY (GLOBAL PROPERTY CMAKE_ROLE "PROJECT") + endif() + set(CMAKE_VERBOSE_MAKEFILE ON) + ++include(CheckCXXCompilerFlag) ++ + option(USE_INSTALLED_HEPMC3 "Use HepMC3 bindings as a standalone package" OFF) + option(RERUN_BINDER "Rerun binder" OFF) + if (USE_INSTALLED_HEPMC3) +@@ -314,9 +316,9 @@ if (${ver} STREQUAL 2) + unset(_Python2_EXECUTABLE CACHE) # Attempt to make FindPython reenterant + unset(_Python2_INCLUDE_DIR CACHE) # Attempt to make FindPython reenterant + if (${verminor} STREQUAL X) +- find_package (Python2 ${ver} COMPONENTS Interpreter Development.Module) ++ find_package (xPython2 ${ver} COMPONENTS Interpreter Development.Module) + else() +- find_package (Python2 ${ver}.${verminor} EXACT COMPONENTS Interpreter Development.Module) ++ find_package (xPython2 ${ver}.${verminor} EXACT COMPONENTS Interpreter Development.Module) + endif() + if (Python2_VERSION AND Python2_INCLUDE_DIRS AND Python2_EXECUTABLE ) #something is set + SET( Python_VERSION ${Python2_VERSION}) +@@ -336,7 +338,7 @@ if (${ver} STREQUAL 3) + unset(Python3_FOUND CACHE) + unset(Python3_VERSION CACHE) + unset(Python3_Interpreter_FOUND CACHE) +- unset(Python3_EXECUTABLE CACHE) ++ #unset(Python3_EXECUTABLE CACHE) + unset(Python3_INCLUDE_DIR CACHE) + unset(Python3_INCLUDE_DIRS CACHE) + unset(Python3_LIBRARIES CACHE) diff --git a/science/py-HepMC3/pkg-descr b/science/py-HepMC3/pkg-descr new file mode 100644 index 000000000000..8a3321c536a7 --- /dev/null +++ b/science/py-HepMC3/pkg-descr @@ -0,0 +1,6 @@ +The HepMC package is an object oriented, C++ event record for High Energy +Physics Monte Carlo generators and simulation. The original code was written +by M. Dobbs and J.B. Hansen (Comput. Phys. Commun. 134 (2001) 41). Since the +first implementation, the package has undergone several modifications and in +particular, the latest HepMC3 series is a completely new rewrite using +currently available C++11 techniques. diff --git a/science/py-HepMC3/pkg-plist b/science/py-HepMC3/pkg-plist new file mode 100644 index 000000000000..0ed0c97ed536 --- /dev/null +++ b/science/py-HepMC3/pkg-plist @@ -0,0 +1,3 @@ +%%PYTHON_SITELIBDIR%%/pyHepMC3-3.2.6-py%%PYTHON_VER%%.egg-info +%%PYTHON_SITELIBDIR%%/pyHepMC3/__init__.py +%%PYTHON_SITELIBDIR%%/pyHepMC3/pyHepMC3.so