guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH]: gnu: shogun: Remove non-free source files.


From: Ricardo Wurmus
Subject: [PATCH]: gnu: shogun: Remove non-free source files.
Date: Fri, 8 May 2015 16:56:28 +0200

Thanks to Bavier for bringing this issue to my attention.  This patch
removes two source files that are released under a non-free license.

There are functions in src/shogun/kernel/Kernel.{cpp,h} that are also
released under non-free terms, but they are enclosed in #ifdef
statements and the make flags we pass disable these functions at build
time.

>From 0cc65499601910f4fdd55e93292124920a7e645d Mon Sep 17 00:00:00 2001
From: Ricardo Wurmus <address@hidden>
Date: Fri, 8 May 2015 16:53:28 +0200
Subject: [PATCH] gnu: shogun: Remove non-free source files.

* gnu/packages/bioinformatics.scm (shogun)[source]: Add snippet to remove
  non-free sources.
---
 gnu/packages/bioinformatics.scm | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/bioinformatics.scm b/gnu/packages/bioinformatics.scm
index fa7ff4c..1e93905 100644
--- a/gnu/packages/bioinformatics.scm
+++ b/gnu/packages/bioinformatics.scm
@@ -1605,7 +1605,13 @@ against local background noises.")
              "/sources/shogun-" version ".tar.bz2"))
        (sha256
         (base32
-         "159nlijnb7mnrv9za80wnm1shwvy45hgrqzn51hxy7gw4z6d6fdb"))))
+         "159nlijnb7mnrv9za80wnm1shwvy45hgrqzn51hxy7gw4z6d6fdb"))
+       (modules '((guix build utils)))
+       (snippet
+        ;; Remove non-free sources.
+        '(for-each delete-file
+                   (find-files "src/shogun/classifier/svm/"
+                               "SVMLight\\.(cpp|h)")))))
     (build-system cmake-build-system)
     (arguments
      '(#:tests? #f ;no check target
-- 
2.1.0


reply via email to

[Prev in Thread] Current Thread [Next in Thread]