summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gessinger <paul.gessinger@cern.ch>2024-11-12 00:03:08 +0100
committerGitHub <noreply@github.com>2024-11-11 17:03:08 -0600
commit993f7432452908c05676cc0d3a67eb17129784b8 (patch)
tree1b24e575017c49bc61c07d040099d7f7a1218082
parent786f8dfcce92a9464f988478f27743c7dbec27f7 (diff)
downloadspack-993f7432452908c05676cc0d3a67eb17129784b8.tar.gz
spack-993f7432452908c05676cc0d3a67eb17129784b8.tar.bz2
spack-993f7432452908c05676cc0d3a67eb17129784b8.tar.xz
spack-993f7432452908c05676cc0d3a67eb17129784b8.zip
soqt: new package (#47443)
* soqt: Add SoQt package The geomodel package needs this if visualization is turned on. * make qt versions explicit * use virtual dependency for qt * pr feedback Remove myself as maintainer Remove v1.6.0 Remove unused qt variant
-rw-r--r--var/spack/repos/builtin/packages/soqt/package.py56
1 files changed, 56 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/soqt/package.py b/var/spack/repos/builtin/packages/soqt/package.py
new file mode 100644
index 0000000000..bceeb5bc46
--- /dev/null
+++ b/var/spack/repos/builtin/packages/soqt/package.py
@@ -0,0 +1,56 @@
+# Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
+# Spack Project Developers. See the top-level COPYRIGHT file for details.
+#
+# SPDX-License-Identifier: (Apache-2.0 OR MIT)
+
+from spack.package import *
+
+
+class Soqt(CMakePackage):
+ """Old Coin GUI binding for Qt, replaced by Quarter"""
+
+ homepage = "https://github.com/coin3d/soqt/"
+ url = "https://github.com/coin3d/soqt/releases/download/v1.6.3/soqt-1.6.3-src.tar.gz"
+ git = "https://github.com/coin3d/soqt/"
+
+ depends_on("cxx", type="build")
+ depends_on("cmake@3:", type="build")
+
+ license("BSD-3-Clause", checked_by="paulgessinger")
+
+ version("1.6.3", sha256="79342e89290783457c075fb6a60088aad4a48ea072ede06fdf01985075ef46bd")
+ version("1.6.2", sha256="fb483b20015ab827ba46eb090bd7be5bc2f3d0349c2f947c3089af2b7003869c")
+ version("1.6.1", sha256="80289d9bd49ffe709ab85778c952573f43f1c725ea958c6d5969b2e9c77bb3ba")
+
+ depends_on("coin3d")
+ depends_on("opengl")
+
+ variant(
+ "static_defaults",
+ default=True,
+ description="Enable statically linked in default materials",
+ )
+ variant("spacenav", default=True, description="Enable Space Navigator support")
+ variant("tests", default=False, description="Build small test programs.")
+ variant("iv", default=True, description="Enable extra Open Inventor extensions")
+
+ depends_on("qmake")
+ with when("^[virtuals=qmake] qt"):
+ depends_on("qt@5 +gui +opengl")
+ with when("^[virtuals=qmake] qt-base"):
+ depends_on("qt-base@6 +gui +opengl +widgets")
+
+ def cmake_args(self):
+ args = [
+ self.define_from_variant("COIN_IV_EXTENSIONS", "iv"),
+ self.define_from_variant("WITH_STATIC_DEFAULTS", "static_defaults"),
+ self.define_from_variant("HAVE_SPACENAV_SUPPORT", "spacenav"),
+ self.define_from_variant("SOQT_BUILD_TESTS", "tests"),
+ ]
+ if self.spec.satisfies("^[virtuals=qmake] qt"):
+ args.append(self.define("SOQT_USE_QT5", True))
+ args.append(self.define("SOQT_USE_QT6", False))
+ if self.spec.satisfies("^[virtuals=qmake] qt-base"):
+ args.append(self.define("SOQT_USE_QT5", False))
+ args.append(self.define("SOQT_USE_QT6", True))
+ return args