unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / Atom feed
* [bug#43399] [PATCH v2] gnu: Add ripmime.
@ 2020-09-14  8:44 Sébastien Lerique
  2020-09-14 21:01 ` bug#43399: " Ludovic Courtès
  0 siblings, 1 reply; 2+ messages in thread
From: Sébastien Lerique @ 2020-09-14  8:44 UTC (permalink / raw)
  To: 43399; +Cc: Sébastien Lerique

* gnu/packages/mail.scm (ripmime): New variable.
---
This fixes the issues raised from the first patch (bug#43338).

 gnu/packages/mail.scm | 48 +++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 48 insertions(+)

diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm
index 4a9c6fc90f..bb9dc91607 100644
--- a/gnu/packages/mail.scm
+++ b/gnu/packages/mail.scm
@@ -627,6 +627,54 @@ Extension (MIME).")
                (base32
                 "0slzlzcr3h8jikpz5a5amqd0csqh2m40gdk910ws2hnaf5m6hjbi"))))))
 
+(define-public ripmime
+  ;; Upstream does not tag or otherwise provide any releases (only a version
+  ;; number in the source)
+  (let ((commit "a556ffe08d620602475c976732e8e1a82f3169e9")
+        (revision "1"))
+    (package
+      (name "ripmime")
+      (version (git-version "1.4.0.10" revision commit))
+      (source (origin
+                (method git-fetch)
+                (uri (git-reference
+                      (url "https://github.com/inflex/ripMIME")
+                      (commit commit)))
+                (file-name (git-file-name name version))
+                (sha256
+                 (base32
+                  "1z8ar8flvkd9q3ax4x28sj5pyq8ykk5pq249y967lj2406lxparh"))))
+      (build-system gnu-build-system)
+      (arguments
+       `(#:phases
+         (modify-phases %standard-phases
+           ;; Source has no configure script
+           (delete 'configure)
+           ;; Buildcodes make the build non-reproducible; remove them
+           (add-after 'unpack 'strip-buildcodes
+             (lambda _
+               (substitute* "generate-buildcodes.sh"
+                 (("`date \\+%s`") "0")
+                 (("`date`") "0")
+                 (("`uname -a`") "Guix"))
+               #t))
+           ;; https://github.com/inflex/ripMIME/pull/16 makes 'mkdir-p-bin-man unnecessary
+           (add-before 'install 'mkdir-p-bin-man
+             (lambda _
+               (mkdir-p (string-append (assoc-ref %outputs "out") "/bin"))
+               (mkdir-p (string-append (assoc-ref %outputs "out") "/man"))
+               #t)))
+         ;; Makefile has no tests
+         #:tests? #f
+         #:make-flags (list (string-append "LOCATION=" (assoc-ref %outputs "out"))
+                            "CC=gcc")))
+      (synopsis "Extract attachments from MIME-encoded email")
+      (description
+       "ripMIME is a small program to extract the attached files out of a
+MIME-encoded email package.")
+      (home-page "https://github.com/inflex/ripMIME")
+      (license license:bsd-3))))
+
 (define-public bogofilter
   (package
     (name "bogofilter")
-- 
2.28.0





^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#43399: [PATCH v2] gnu: Add ripmime.
  2020-09-14  8:44 [bug#43399] [PATCH v2] gnu: Add ripmime Sébastien Lerique
@ 2020-09-14 21:01 ` Ludovic Courtès
  0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2020-09-14 21:01 UTC (permalink / raw)
  To: Sébastien Lerique; +Cc: 43399-done

Hi,

Sébastien Lerique <sl@eauchat.org> skribis:

> * gnu/packages/mail.scm (ripmime): New variable.

Perfect, applied!

> This fixes the issues raised from the first patch (bug#43338).

Note: since each message to guix-patches opens a new issue at
<https://issues.guix.gnu.org>, make sure to send followups to
NNN@debbugs.gnu.org, where NNN is the issue number of your v1.
(In this case I merged the two issues, no big deal; just so you know!)

Thanks,
Ludo’.




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-09-14 21:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-14  8:44 [bug#43399] [PATCH v2] gnu: Add ripmime Sébastien Lerique
2020-09-14 21:01 ` bug#43399: " Ludovic Courtès

unofficial mirror of guix-patches@gnu.org 

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://yhetil.org/guix-patches/1 guix-patches/git/1.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 guix-patches guix-patches/ https://yhetil.org/guix-patches \
		guix-patches@gnu.org
	public-inbox-index guix-patches

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://news.yhetil.org/yhetil.gnu.guix.patches


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git