-
Notifications
You must be signed in to change notification settings - Fork 625
apfelxx, epic, partons*, sfml: new packages
#4717
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 4 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
88bf25d
apfelxx, epic, partons*, sfml: new packages
wdconinc d3ce766
sfml: .NET per copilot
wdconinc 88aa4a6
partons: fix typo
wdconinc cdbb964
partons-numa: fix typo
wdconinc c273e28
cln: prefer https over git for commit pull
wdconinc fbfe810
sfml: use system (=spack) deps; conflict audio
wdconinc 9c95e2b
cln: autoreconf --force; depends_on autoconf-archive
wdconinc 6df96c1
sfml: improve audio conflict msg
wdconinc File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| # Copyright Spack Project Developers. See COPYRIGHT file for details. | ||
| # | ||
| # SPDX-License-Identifier: (Apache-2.0 OR MIT) | ||
|
|
||
| from spack_repo.builtin.build_systems.cmake import CMakePackage | ||
|
|
||
| from spack.package import * | ||
|
|
||
|
|
||
| class Apfelxx(CMakePackage): | ||
| """APFEL++ is a C++ rewriting of the Fortran 77 code APFEL | ||
| originally conceived to evolve collinear parton | ||
| distribution functions (PDFs).""" | ||
|
|
||
| homepage = "https://github.com/vbertone/apfelxx" | ||
| url = "https://github.com/vbertone/apfelxx/archive/refs/tags/4.8.0.tar.gz" | ||
| git = "https://github.com/vbertone/apfelxx.git" | ||
|
|
||
| tags = ["hep"] | ||
|
|
||
| maintainers("wdconinc") | ||
|
|
||
| license("GPL-3.0", checked_by="wdconinc") | ||
|
|
||
| version("4.10.0", sha256="bff51f56f36c9fa8a2e9b35a87847e7f061d532ba15c8e7f151ad344e4aa2f3f") | ||
|
|
||
| depends_on("cxx", type="build") | ||
| depends_on("fortran", type="build") | ||
| depends_on("cmake@3.10:", type="build") | ||
|
|
||
| depends_on("lhapdf") | ||
| depends_on("yaml-cpp") | ||
| depends_on("py-pybind11") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,53 @@ | ||
| # Copyright Spack Project Developers. See COPYRIGHT file for details. | ||
| # | ||
| # SPDX-License-Identifier: (Apache-2.0 OR MIT) | ||
|
|
||
| from spack_repo.builtin.build_systems.cmake import CMakePackage | ||
|
|
||
| from spack.package import * | ||
|
|
||
|
|
||
| class Epic(CMakePackage): | ||
| """EpIC is a modern and versatile Monte Carlo generator used in | ||
| studying exclusive processes. These processes are sensitive to | ||
| generalised parton distributions (GPDs), which describe the 3D | ||
| partonic structure of hadrons in the language of quantum | ||
| chromodynamics (QCD). EpIC has been developed to support the | ||
| current and future experimental programmes, like Electron-Ion | ||
| Collider (EIC) to be constructed in Brookhaven National Laboratory.""" | ||
|
|
||
| homepage = "https://pawelsznajder.github.io/epic" | ||
| url = "https://github.com/pawelsznajder/epic/archive/refs/tags/v.1.1.8.tar.gz" | ||
| git = "https://github.com/pawelsznajder/epic.git" | ||
|
|
||
| tags = ["hep"] | ||
|
|
||
| maintainers("wdconinc") | ||
|
|
||
| license("GPL-3.0", checked_by="wdconinc") | ||
|
|
||
| version("1.1.8", sha256="f2b9add278e614fb012856e7b9df676789cb47d33af66438e7962a849f025339") | ||
|
|
||
| depends_on("cxx", type="build") | ||
| depends_on("cmake@3.5:", type="build") | ||
|
|
||
| depends_on("partons") | ||
| depends_on("partons-elementary-utils") | ||
| depends_on("partons-numa") | ||
| depends_on("sfml@:2") | ||
| depends_on("cln") | ||
| depends_on("gsl") | ||
| depends_on("apfelxx") | ||
| depends_on("lhapdf") | ||
| depends_on("libxml2") | ||
| depends_on("root") | ||
| depends_on("hepmc3 +rootio") | ||
| depends_on("boost") | ||
|
|
||
| def install(self, spec, prefix): | ||
| mkdirp(prefix.bin) | ||
| install(join_path(self.stage.source_path, "bin", "epic"), prefix.bin) | ||
| install_tree( | ||
| join_path(self.stage.source_path, "data"), | ||
| join_path(prefix.share, "epic", "data"), | ||
| ) | ||
|
wdconinc marked this conversation as resolved.
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| # Copyright Spack Project Developers. See COPYRIGHT file for details. | ||
| # | ||
| # SPDX-License-Identifier: (Apache-2.0 OR MIT) | ||
|
|
||
| from spack_repo.builtin.build_systems.cmake import CMakePackage | ||
|
|
||
| from spack.package import * | ||
|
|
||
|
|
||
| class Partons(CMakePackage): | ||
| """PARTONS is a software framework dedicated to the phenomenology | ||
| of 3D hadron structure, in particular Generalized Parton Distributions | ||
| (GPDs) and Transverse Momentum Dependent (TMDs) parton distribution | ||
| functions.""" | ||
|
|
||
| homepage = "https://3d-partons.github.io/partons/" | ||
| url = "https://github.com/3d-partons/partons/archive/refs/tags/v5.0.0.tar.gz" | ||
| git = "https://github.com/3d-partons/partons.git" | ||
|
|
||
| tags = ["hep"] | ||
|
|
||
| maintainers("wdconinc") | ||
|
|
||
| license("GPL-3.0", checked_by="wdconinc") | ||
|
|
||
| version("5.0.0", sha256="6ac7b68890ce19a8dfd2515264201d7424d2aa809e4b8c2e714528a1f6234865") | ||
|
|
||
| depends_on("cxx", type="build") | ||
| depends_on("cmake@3.5:", type="build") | ||
|
|
||
| depends_on("partons-elementary-utils") | ||
| depends_on("partons-numa") | ||
| depends_on("sfml@:2") | ||
|
wdconinc marked this conversation as resolved.
|
||
| depends_on("cln") | ||
|
wdconinc marked this conversation as resolved.
|
||
| depends_on("gsl") | ||
| depends_on("apfelxx") | ||
| depends_on("lhapdf") | ||
| depends_on("libxml2") | ||
28 changes: 28 additions & 0 deletions
28
repos/spack_repo/builtin/packages/partons_elementary_utils/package.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| # Copyright Spack Project Developers. See COPYRIGHT file for details. | ||
| # | ||
| # SPDX-License-Identifier: (Apache-2.0 OR MIT) | ||
|
|
||
| from spack_repo.builtin.build_systems.cmake import CMakePackage | ||
|
|
||
| from spack.package import * | ||
|
|
||
|
|
||
| class PartonsElementaryUtils(CMakePackage): | ||
| """Utility methods for the PARTONS project.""" | ||
|
|
||
| homepage = "https://3d-partons.github.io/partons" | ||
| url = "https://github.com/3d-partons/elementary-utils/archive/refs/tags/v5.0.0.tar.gz" | ||
| git = "https://github.com/3d-partons/elementary-utils.git" | ||
|
|
||
| tags = ["hep"] | ||
|
|
||
| maintainers("wdconinc") | ||
|
|
||
| license("GPL-3.0", checked_by="wdconinc") | ||
|
|
||
| version("5.0.0", sha256="0611b0614e3efdc60893080e0f35de408fef08671076d8f42ffdeda4ab4a366f") | ||
|
|
||
| depends_on("cxx", type="build") | ||
| depends_on("cmake@3.5:", type="build") | ||
|
|
||
| depends_on("sfml@:2") | ||
|
wdconinc marked this conversation as resolved.
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| # Copyright Spack Project Developers. See COPYRIGHT file for details. | ||
| # | ||
| # SPDX-License-Identifier: (Apache-2.0 OR MIT) | ||
|
|
||
| from spack_repo.builtin.build_systems.cmake import CMakePackage | ||
|
|
||
| from spack.package import * | ||
|
|
||
|
|
||
| class PartonsNuma(CMakePackage): | ||
| """Numerical analysis routines for the PARTONS project.""" | ||
|
|
||
| homepage = "https://3d-partons.github.io/partons" | ||
| url = "https://github.com/3d-partons/numa/archive/refs/tags/v5.0.0.tar.gz" | ||
| git = "https://github.com/3d-partons/numa.git" | ||
|
|
||
| tags = ["hep"] | ||
|
|
||
| maintainers("wdconinc") | ||
|
|
||
| license("GPL-3.0", checked_by="wdconinc") | ||
|
|
||
| version("5.0.0", sha256="1ba38b59cf0b8b32ff418f52a63601c65817503b1bf7823860dc6d09782066b0") | ||
|
|
||
| depends_on("cxx", type="build") | ||
| depends_on("cmake@3.5:", type="build") | ||
|
|
||
| depends_on("sfml@:2") | ||
|
wdconinc marked this conversation as resolved.
|
||
| depends_on("partons-elementary-utils") | ||
| depends_on("eigen@3") | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,48 @@ | ||
| # Copyright Spack Project Developers. See COPYRIGHT file for details. | ||
| # | ||
| # SPDX-License-Identifier: (Apache-2.0 OR MIT) | ||
|
|
||
| from spack_repo.builtin.build_systems.cmake import CMakePackage | ||
|
|
||
| from spack.package import * | ||
|
|
||
|
|
||
| class Sfml(CMakePackage): | ||
| """SFML is a simple, fast, cross-platform and object-oriented | ||
| multimedia API. It provides access to windowing, graphics, | ||
| audio and network. It is written in C++ and has bindings for | ||
| various languages such as C, .NET, Ruby, Python.""" | ||
|
|
||
| homepage = "https://www.sfml-dev.org/" | ||
| url = "https://github.com/SFML/SFML/archive/refs/tags/3.1.0.tar.gz" | ||
| git = "https://github.com/SFML/SFML.git" | ||
|
|
||
| maintainers("wdconinc") | ||
|
|
||
| license("Zlib", checked_by="wdconinc") | ||
|
|
||
| version("3.1.0", sha256="91209a112c2bd0bc6f4ce0d5f3e413cfb48b57c0de59f5507dc81f71b1ad7a5c") | ||
| version("2.6.2", sha256="15ff4d608a018f287c6a885db0a2da86ea389e516d2323629e4d4407a7ce047f") | ||
|
|
||
| depends_on("c", type="build") | ||
| depends_on("cxx", type="build") | ||
| depends_on("cmake@3.7.2:", type="build") | ||
| depends_on("cmake@3.24:", type="build", when="@3.0.0:") | ||
| depends_on("cmake@3.28:", type="build", when="@3.1.0:") | ||
|
wdconinc marked this conversation as resolved.
|
||
|
|
||
| variant("window", default=True, description="Build the window module", when="~graphics") | ||
| variant("graphics", default=True, description="Build the graphics module") | ||
| variant("audio", default=True, description="Build the audio module") | ||
|
wdconinc marked this conversation as resolved.
|
||
| variant("network", default=True, description="Build the network module") | ||
|
|
||
| conflicts("+window", msg="The window module requires UDev, which is not in spack") | ||
| conflicts("+graphics", msg="The window module requires UDev, which is not in spack") | ||
|
wdconinc marked this conversation as resolved.
Outdated
wdconinc marked this conversation as resolved.
Outdated
|
||
|
|
||
| def cmake_args(self): | ||
| args = [ | ||
| self.define_from_variant("SFML_BUILD_WINDOW", "window"), | ||
| self.define_from_variant("SFML_BUILD_GRAPHICS", "graphics"), | ||
| self.define_from_variant("SFML_BUILD_AUDIO", "audio"), | ||
| self.define_from_variant("SFML_BUILD_NETWORK", "network"), | ||
| ] | ||
| return args | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.