From e78435d222b4ba008658c885cafb451841549ad6 Mon Sep 17 00:00:00 2001 From: nicolas le goff Date: Fri, 29 Sep 2023 13:25:39 +0200 Subject: [PATCH] smooth3d 3.2.0 with optional machinetypes variant --- meshing/packages/smooth3d/package.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/meshing/packages/smooth3d/package.py b/meshing/packages/smooth3d/package.py index 09ab9f0..caa97c9 100644 --- a/meshing/packages/smooth3d/package.py +++ b/meshing/packages/smooth3d/package.py @@ -1,4 +1,4 @@ -# -*- coding: iso-8859-15 -*- +# -*- coding: utf-8 -*- ############################################################################## # Project Smooth3d @@ -18,20 +18,23 @@ class Smooth3d(CMakePackage): url = 'https://github.com/LIHPC-Computational-Geometry/smooth3d/archive/refs/tags/v3.0.2.tar.gz' git = 'https://github.com/LIHPC-Computational-Geometry/smooth3d.git' maintainers = ['meshing_team'] - + + version('3.2.0', sha256='c89d06d5f4ebf917ea88aad8d2c23178b4f6c7f8cd6858dc66c004a0af26dfe1') version('3.0.2')#, sha256='0be62f149fa154621dbdeefdf00d026bb2bd26ff7bd88c8560bce652ff209038') version('3.0.1', sha256='534f067951629e5697a04d7965487193659877b0ec8dbdd1ed0200a01d60907d') version('3.0.0', sha256='9ef4b2e380c507cc14883a6233c1df933bf3fc49549fd7e3f87630ae2abb6c82') variant('shared', default=True, description='Build as a shared library.') + variant('machinetypes', default=False, description='Links with an external machinetypes.') depends_on('gmds') depends_on('mesquite') depends_on('lima') - #removed for outside - #depends_on('machine-types') + #depends_on('machine-types', when='+machinetypes') def cmake_args(self): - args = [self.define_from_variant('BUILD_SHARED_LIBS', 'shared')] + args = [] + args.append(self.define_from_variant('BUILD_SHARED_LIBS', 'shared')) + args.append(self.define_from_variant('WITH_EXTERNAL_MACHINETYPES', 'machinetypes')) return args