From 1e494eec2fe501e8a6f5157cc021563e7d7cf9fe Mon Sep 17 00:00:00 2001
From: haralmha <47558670+haralmha@users.noreply.github.com>
Date: Fri, 11 Feb 2022 09:41:45 +0100
Subject: cool: add v3.3.10 (#28858)

Co-authored-by: Harald Minde Hansen <harald.minde.hansen@cern.ch>
Co-authored-by: Valentin Volkl <valentin.volkl@cern.ch>
---
 var/spack/repos/builtin/packages/cool/package.py | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

(limited to 'var')

diff --git a/var/spack/repos/builtin/packages/cool/package.py b/var/spack/repos/builtin/packages/cool/package.py
index e56cbaa9ad..94fecafbb9 100644
--- a/var/spack/repos/builtin/packages/cool/package.py
+++ b/var/spack/repos/builtin/packages/cool/package.py
@@ -16,6 +16,7 @@ class Cool(CMakePackage):
     tags = ['hep']
     maintainers = ['iarspider']
 
+    version('3.3.10', tag='COOL_3_3_10')
     version('3.3.7', tag='COOL_3_3_7')
     version('3.3.5', tag='COOL_3_3_5')
     version('3.3.4', tag='COOL_3_3_4')
@@ -25,7 +26,13 @@ class Cool(CMakePackage):
     # * Create python/PyCool/_internal directory
     #   (only necessary for Spack builds, for some reason)
     # * Explicitly request Boost components
-    patch('cool.patch', level=0)
+    patch('cool.patch', level=0, when='@:3.3.8')
+
+    @when('@3.3.9:')
+    def patch(self):
+        filter_file("find_package(Boost REQUIRED)",
+                    "find_package(Boost REQUIRED chrono system thread)",
+                    "src/RelationalCool/CMakeLists.txt")
 
     # BINARY_TAG is a combination of target, os, compiler name and build type (opt/dbg)
     # If you override it, please also override it for CORAL
-- 
cgit v1.2.3-70-g09d2