From 8f5af6eb7aeb5a08851ade3f67fba140dc0d5dec Mon Sep 17 00:00:00 2001 From: Wouter Deconinck Date: Thu, 3 Oct 2024 18:59:35 -0500 Subject: doxygen: add v1.12.0 (#46752) --- .../repos/builtin/packages/doxygen/package.py | 23 ++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/var/spack/repos/builtin/packages/doxygen/package.py b/var/spack/repos/builtin/packages/doxygen/package.py index 50e16c3bfd..2ca28689d7 100644 --- a/var/spack/repos/builtin/packages/doxygen/package.py +++ b/var/spack/repos/builtin/packages/doxygen/package.py @@ -20,6 +20,7 @@ class Doxygen(CMakePackage): license("GPL-2.0-or-later") + version("1.12.0", sha256="5ca35e1258020df5fe8b21c3656aed156c317def4a81b7fe52f452edc9f35768") version("1.11.0", sha256="1fea49c69e51fec3dd2599947f6d48d9b1268bd5115b1bb08dffefc1fd5d19ee") version("1.10.0", sha256="795692a53136ca9bb9a6cd72656968af7858a78be7d6d011e12ab1dce6b9533c") version("1.9.8", sha256="77371e8a58d22d5e03c52729844d1043e9cbf8d0005ec5112ffa4c8f509ddde8") @@ -136,16 +137,18 @@ class Doxygen(CMakePackage): def patch(self): if self.spec["iconv"].name != "libiconv": return - # On Linux systems, iconv is provided by libc. Since CMake finds the - # symbol in libc, it does not look for libiconv, which leads to linker - # errors. This makes sure that CMake always looks for the external - # libconv instead. - filter_file( - "check_function_exists(iconv_open ICONV_IN_GLIBC)", - "set(ICONV_IN_GLIBC FALSE)", - join_path("cmake", "FindIconv.cmake"), - string=True, - ) + + if self.spec.satisfies("@:1.11"): + # On Linux systems, iconv is provided by libc. Since CMake finds the + # symbol in libc, it does not look for libiconv, which leads to linker + # errors. This makes sure that CMake always looks for the external + # libconv instead. + filter_file( + "check_function_exists(iconv_open ICONV_IN_GLIBC)", + "set(ICONV_IN_GLIBC FALSE)", + join_path("cmake", "FindIconv.cmake"), + string=True, + ) def cmake_args(self): return [ -- cgit v1.2.3-70-g09d2