GNU bug report logs - #69403
[PATCH 0/2] gnu: go-github-com-signintech-gopdf: Remove examples.

Previous Next

Package: guix-patches;

Reported by: Troy Figiel <troy <at> troyfigiel.com>

Date: Mon, 26 Feb 2024 08:13:03 UTC

Severity: normal

Tags: patch

Done: Hilton Chain <hako <at> ultrarare.space>

Bug is archived. No further changes may be made.

Full log


Message #11 received at 69403 <at> debbugs.gnu.org (full text, mbox):

From: Troy Figiel <troy <at> troyfigiel.com>
To: 69403 <at> debbugs.gnu.org
Subject: [PATCH 2/2] gnu: go-github-com-signintech-gopdf: Remove examples.
Date: Mon, 26 Feb 2024 08:51:00 +0100
* gnu/packages/golang.scm (go-github-com-signintech-gopdf): Remove examples.
[arguments] <#:phases>: Add remove-examples phase.
---
 gnu/packages/golang.scm | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index ac500b58af..609a14ec61 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -2250,7 +2250,14 @@ (define-public go-github-com-signintech-gopdf
                 "1h6cslvid5v8fiymydj4irrzi8f91knsx8rgbzp2b8favclhwxxg"))))
     (build-system go-build-system)
     (arguments
-     '(#:import-path "github.com/signintech/gopdf"))
+     (list
+      #:import-path "github.com/signintech/gopdf"
+      #:phases #~(modify-phases %standard-phases
+                   (add-after 'unpack 'remove-examples
+                     (lambda* (#:key import-path #:allow-other-keys)
+                       (delete-file-recursively (string-append "src/"
+                                                               import-path
+                                                               "/examples")))))))
     (propagated-inputs (list go-github-com-pkg-errors
                              go-github-com-phpdave11-gofpdi))
     (home-page "https://github.com/signintech/gopdf")
-- 
2.42.0





This bug report was last modified 1 year and 133 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.