From patchwork Fri Jul 12 10:07:48 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Paul Garlick X-Patchwork-Id: 14616 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id A4A5C17208; Fri, 12 Jul 2019 11:10:11 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id 2E11C171AD for ; Fri, 12 Jul 2019 11:10:11 +0100 (BST) Received: from localhost ([::1]:47914 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hlsVG-0007pq-TA for patchwork@mira.cbaines.net; Fri, 12 Jul 2019 06:10:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54526) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hlsVD-0007pV-7H for guix-patches@gnu.org; Fri, 12 Jul 2019 06:10:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hlsV8-0001MG-Jy for guix-patches@gnu.org; Fri, 12 Jul 2019 06:10:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:58718) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hlsV8-0001M6-7n for guix-patches@gnu.org; Fri, 12 Jul 2019 06:10:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hlsV8-0007ka-2C for guix-patches@gnu.org; Fri, 12 Jul 2019 06:10:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#36615] [PATCH] gnu: Add opencascade-occt. Resent-From: Paul Garlick Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 12 Jul 2019 10:10:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 36615 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 36615@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.156292616129730 (code B ref -1); Fri, 12 Jul 2019 10:10:01 +0000 Received: (at submit) by debbugs.gnu.org; 12 Jul 2019 10:09:21 +0000 Received: from localhost ([127.0.0.1]:39305 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hlsUL-0007jG-Nc for submit@debbugs.gnu.org; Fri, 12 Jul 2019 06:09:21 -0400 Received: from lists.gnu.org ([209.51.188.17]:60079) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hlsUE-0007j3-Vt for submit@debbugs.gnu.org; Fri, 12 Jul 2019 06:09:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54179) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hlsUD-0006t7-Kq for guix-patches@gnu.org; Fri, 12 Jul 2019 06:09:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hlsUC-0000CP-7M for guix-patches@gnu.org; Fri, 12 Jul 2019 06:09:05 -0400 Received: from smtp.hosts.co.uk ([85.233.160.19]:49772) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hlsUC-0008W9-1W for guix-patches@gnu.org; Fri, 12 Jul 2019 06:09:04 -0400 Received: from [79.123.23.187] (helo=parkin.tourbillion-technology.com.com) by smtp.hosts.co.uk with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim) (envelope-from ) id 1hlsU6-0007MN-53; Fri, 12 Jul 2019 11:08:59 +0100 From: Paul Garlick Date: Fri, 12 Jul 2019 11:07:48 +0100 Message-Id: <1562926068-5497-1-git-send-email-pgarlick@tourbillion-technology.com> X-Mailer: git-send-email 1.8.3.1 MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no timestamps) [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Paul Garlick Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/maths.scm (opencascade-occt): New variable. --- gnu/packages/maths.scm | 87 +++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 86 insertions(+), 1 deletion(-) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index 7d2c479..8b23459 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -15,7 +15,7 @@ ;;; Copyright © 2016, 2017, 2018, 2019 Ludovic Courtès ;;; Copyright © 2016 Leo Famulari ;;; Copyright © 2016, 2017 Thomas Danckaert -;;; Copyright © 2017, 2018 Paul Garlick +;;; Copyright © 2017, 2018, 2019 Paul Garlick ;;; Copyright © 2017 ng0 ;;; Copyright © 2017 Ben Woodcroft ;;; Copyright © 2017 Theodoros Foradis @@ -1618,6 +1618,91 @@ Open CASCADE library.") license:expat; file src/OpenGl/OpenGl_glext.h license:bsd-3)))); test framework gtest +(define-public opencascade-occt + (package + (name "opencascade-occt") + (version "7.3.0p3") + (source + (origin + (method url-fetch) + (uri (string-append + "https://git.dev.opencascade.org/gitweb/?p=occt.git;" + "a=snapshot;sf=tgz;h=refs/tags/V" + (string-map (lambda (x) (if (eq? x #\.) #\_ x)) version))) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "06zjsirydlz9i0ww4s3fgwy6qjflli7041m6i0di64skwyrnvm7v")) + (modules '((guix build utils))) + (snippet + '(begin + ;; Remove files specific to non-free operating systems. + (delete-file-recursively "samples/ios") + (delete-file-recursively "samples/mfc") + (delete-file-recursively "samples/qt/FuncDemo") + (delete-file "genconf.bat") + (delete-file "gendoc.bat") + (delete-file "genproj.bat") + (delete-file "upgrade.bat") + ;; Remove references to deleted files. + (substitute* "dox/FILES_HTML.txt" + ((".*standard.*") "" ) + ((".*UIKitSample.*") "")) + #t)))) + (build-system cmake-build-system) + (arguments + '(;; There is no test target for make. + #:tests? #f + ;; Configure without freeimage: attempting to link against the + ;; freeimage version 3.17 library leads to 'undefined + ;; reference' errors. + #:configure-flags + (list "-DUSE_FREEIMAGE:BOOL=OFF" + "-DUSE_TBB:BOOL=ON" + "-DUSE_VTK:BOOL=OFF" + "-DBUILD_DOC_Overview:BOOL=OFF" + "-DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON" + "-DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON" + "-UCMAKE_INSTALL_LIBDIR"))) + (inputs + `(("doxygen" ,doxygen) + ;("freeimage" ,freeimage) + ("freetype" ,freetype) + ("glu" ,glu) + ("libxext" ,libxext) + ("libxi" ,libxi) + ("libxmu" ,libxmu) + ("mesa" ,mesa) + ("tbb" ,tbb) + ("tcl" ,tcl) + ("tk" ,tk))) + ;; TODO: build Overview documentation and add 'doc' output. + (home-page "https://www.opencascade.com") + (synopsis "Libraries for 3D modeling and numerical simulation") + (description + "Open CASCADE is a set of libraries for the development of applications +dealing with 3D CAD data or requiring industrial 3D capabilities. It includes +C++ class libraries providing services for 3D surface and solid modeling, CAD +data exchange, and visualization. It is used for development of specialized +software dealing with 3D models in design (CAD), manufacturing (CAM), +numerical simulation (CAE), measurement equipment (CMM), and quality +control (CAQ) domains. + +This is the certified version of the Open Cascade Technology (OCCT) library.") + (license (list ;; OCCT library: + license:lgpl2.1; with an exception for the use of header + ; files, see OCCT_LGPL_EXCEPTION.txt. + ;; Files src/OpenGl/glext.h, adm/cmake/cotire.cmake and + ;; src/OpenGl/OpenGl_HaltonSampler.hxx: + license:expat + ;; Files src/ExprIntrp/ExprIntrp.tab.* and + ;; src/StepFile/step.tab.*: + license:gpl3+ ; with Bison 2.2 exception. + ;; File src/NCollection/NCollection_UtfIterator.lxx: + (license:non-copyleft + "https://www.unicode.org/license.html") + ;; File src/NCollection/NCollection_StdAllocator.hxx: + license:public-domain)))) + (define-public gmsh (package (name "gmsh")