GNU bug report logs - #67692
[PATCH] gnu: Add trash-d.

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix-patches; Reported by: Hugo Nobrega <hugonobrega@HIDDEN>; Keywords: patch; dated Thu, 7 Dec 2023 15:37:02 UTC; Maintainer for guix-patches is guix-patches@HIDDEN.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 7 Dec 2023 15:41:17 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Dec 07 10:41:17 2023
Received: from localhost ([127.0.0.1]:42817 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1rBGV2-0001GS-QY
	for submit <at> debbugs.gnu.org; Thu, 07 Dec 2023 10:41:17 -0500
Received: from lists.gnu.org ([2001:470:142::17]:41078)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <hugonobrega@HIDDEN>) id 1rBGV0-0001GC-OJ
 for submit <at> debbugs.gnu.org; Thu, 07 Dec 2023 10:41:15 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <hugonobrega@HIDDEN>)
 id 1rBGUc-0007Ra-Dr
 for guix-patches@HIDDEN; Thu, 07 Dec 2023 10:40:53 -0500
Received: from mail-ej1-x634.google.com ([2a00:1450:4864:20::634])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <hugonobrega@HIDDEN>)
 id 1rBGUY-0001K4-Fx
 for guix-patches@HIDDEN; Thu, 07 Dec 2023 10:40:50 -0500
Received: by mail-ej1-x634.google.com with SMTP id
 a640c23a62f3a-a1cee2c1620so133597166b.2
 for <guix-patches@HIDDEN>; Thu, 07 Dec 2023 07:40:44 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1701963643; x=1702568443; darn=gnu.org;
 h=to:subject:message-id:date:from:in-reply-to:references:mime-version
 :from:to:cc:subject:date:message-id:reply-to;
 bh=xScZQ11Te/pHRv5dvA95PK6VRvOCaAoKWyj3T1mDMwc=;
 b=VM2UhcFsXOk2oiEkXc8VRKwgdJ6syf3I/POTuGx3loInW8vLFGXGFoVnzApv8AGyF+
 /qGpMsi4eCdaypkGzzRozHobBUICxtsozkVFrhCc02fk93L4FMQWoFyGXcU/TMUFx9+n
 kqvtC8RCnZ6Sb5foafTWr9C8KElz/Xi1xllw15+QLv5G3ahiRHJ06L5goZF1DAeYB7Tu
 oKMv5CWLcTg5YOpyeN3DkpOxILLWMrAggmuSB9KNKJP2PgrX6IhZsAcqyj2oPqKDqZyn
 Av5QO7na+OGOqHOnh9QXfX4uxl4AezB1+VwkXi0ALAjgouLszlLAGc0XXF0KuL7XeWLJ
 i/HQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1701963643; x=1702568443;
 h=to:subject:message-id:date:from:in-reply-to:references:mime-version
 :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
 bh=xScZQ11Te/pHRv5dvA95PK6VRvOCaAoKWyj3T1mDMwc=;
 b=Rn/qBcV1/n5brbF8l0i98XwsG4eaXS//R9SpFDOnYAlcpCAIgkgtoLka1nLph8fMXt
 StF3qd5r9NFHlEXmBj88ikjwUnbV00UPpGhcyv1N/Fo6wPtK84+kbfAgNcXupMR8toJK
 EzIjTN8eYdWNmiZ30mDPAFLDrZ1k9OxQxdP3Lf8Xf1xCg+6bFbakU6+Zb1KtT4yBsn7w
 bHpj5SbPz5HMHLfk3OZyXiwGn2DIRhk+199WOKwuhvgFrzDv9nChVkSlrlTjRLZFjw7d
 HHQp8t4GXkzYjf0bTzLsXku/DPztZ+Ud40K1xvpUuiwyWoPCMtS87rtdgw/Kg62QLUdq
 OVOQ==
X-Gm-Message-State: AOJu0YwDNWsuOpUwsi3re8oma/wNn567zdrVKr1vXbCbi06mBxmZ3SqO
 oMyedvTMON2ncbioppxKCctEBagoDDjg3Dh0xquB9pwmSAp8Gw==
X-Google-Smtp-Source: AGHT+IGVCXEr4U7dRvbFaUBoXCa1h5FxLTmrT4FKVL9BH3LLB/rSoe68MUSerJqS+VQ3Wom6DDZy8BWcxN//iK5dC/s=
X-Received: by 2002:a17:906:2b46:b0:9dd:7133:881 with SMTP id
 b6-20020a1709062b4600b009dd71330881mr707481ejg.40.1701963643116; Thu, 07 Dec
 2023 07:40:43 -0800 (PST)
MIME-Version: 1.0
References: <d6ab38823333b95771db3767bfd78508feb410db.1701963280.git.hugonobrega@HIDDEN>
In-Reply-To: <d6ab38823333b95771db3767bfd78508feb410db.1701963280.git.hugonobrega@HIDDEN>
From: Hugo Nobrega <hugonobrega@HIDDEN>
Date: Thu, 7 Dec 2023 12:40:31 -0300
Message-ID: <CA+hgWQNdQWUQ_broVmPBKvdsSrZpfmRUbe7d0f-fpEmb0EyZaQ@HIDDEN>
Subject: Re: [PATCH] gnu: Add trash-d.
To: guix-patches@HIDDEN
Content-Type: multipart/alternative; boundary="0000000000005e5ffa060bed4a48"
Received-SPF: pass client-ip=2a00:1450:4864:20::634;
 envelope-from=hugonobrega@HIDDEN; helo=mail-ej1-x634.google.com
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001,
 HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)

--0000000000005e5ffa060bed4a48
Content-Type: text/plain; charset="UTF-8"

Some comments:

- this is my first "proper" patch so I apologize for any faux-pas :)

- in particular, I didn't quite know where to put the package, so I thought
I
would follow tradition and put it in a "language-xyz.scm" file, which is
new in
this case (the language is D)

- I didn't know what to do with the Copyright line in the new file, so I
didn't
add one

Best regards,
Hugo

--0000000000005e5ffa060bed4a48
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Some comments:<br><br>- this is my first &quot;proper&quot=
; patch so I apologize for any faux-pas :)<br><br>- in particular, I didn&#=
39;t quite know where to put the package, so I thought I<br>would follow tr=
adition and put it in a &quot;language-xyz.scm&quot; file, which is new in<=
br>this case (the language is D)<br><br>- I didn&#39;t know what to do with=
 the Copyright line in the new file, so I didn&#39;t<br>add one<br><br>Best=
 regards,<br>Hugo<br></div>

--0000000000005e5ffa060bed4a48--




Information forwarded to guix-patches@HIDDEN:
bug#67692; Package guix-patches. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 7 Dec 2023 15:36:07 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Dec 07 10:36:06 2023
Received: from localhost ([127.0.0.1]:42792 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1rBGQ2-00016z-BM
	for submit <at> debbugs.gnu.org; Thu, 07 Dec 2023 10:36:06 -0500
Received: from lists.gnu.org ([2001:470:142::17]:34038)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <hugonobrega@HIDDEN>) id 1rBGPx-00016Q-69
 for submit <at> debbugs.gnu.org; Thu, 07 Dec 2023 10:36:05 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <hugonobrega@HIDDEN>)
 id 1rBGPe-0005G0-RB
 for guix-patches@HIDDEN; Thu, 07 Dec 2023 10:35:42 -0500
Received: from mail-pl1-x631.google.com ([2607:f8b0:4864:20::631])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <hugonobrega@HIDDEN>)
 id 1rBGPc-0005L1-7T
 for guix-patches@HIDDEN; Thu, 07 Dec 2023 10:35:41 -0500
Received: by mail-pl1-x631.google.com with SMTP id
 d9443c01a7336-1d06fffdb65so7856365ad.2
 for <guix-patches@HIDDEN>; Thu, 07 Dec 2023 07:35:38 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1701963337; x=1702568137; darn=gnu.org;
 h=content-transfer-encoding:mime-version:message-id:date:subject:cc
 :to:from:from:to:cc:subject:date:message-id:reply-to;
 bh=CrkYmMAgppOc0k4t81XhJWZDLWrEIOdg+mmmHPmY5rA=;
 b=cTHqS171stdpr++21uecOecjm98YBWdZM5MQdtVUejImUB4CQcoyEiwGTkJREjqHNP
 YoMzPUg8g+io6bJWpd9cJ4TjcxYwWTfxSAiD0tDtND9FxmzlkTVwH4HqdY81AeAqg5ZR
 +nNXePcWhDgkAXYoo/ruqIjr3SQCF/oAsq0BJd9ANhzCdwSkW4xVTBplPhFMSW5N7Ezk
 +Wv6DlvO+OkDMK3FTdjB4sLJJ1x2FQg0cJO4ov7VqXedrGwordqlug5ihtsGA9n3ZHIi
 92nCbiBF263npBZPBpnwSguPKiRKgn6mFVVIV+90Z8H542R0og6pQofD9o/NyY5zA9hd
 N/ow==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1701963337; x=1702568137;
 h=content-transfer-encoding:mime-version:message-id:date:subject:cc
 :to:from:x-gm-message-state:from:to:cc:subject:date:message-id
 :reply-to;
 bh=CrkYmMAgppOc0k4t81XhJWZDLWrEIOdg+mmmHPmY5rA=;
 b=vGC3NEfoo7vouYoRc/wMf5BRZB93c4sfpcf2po+D9olPI5kwfyhBgRYpbqD5ze0JiD
 MWs+p+wVyikxspcUvmCJm5RucVUZ/e+QdGr+d7nyoSZFsRNh5EGzJNMkUtwusaVr+Rdh
 PsSteFSjrNcy5puuoQhnQaQnJrRehMHdO+k736SrWLup+omEceYGVyG4PjcgS/G3j9tB
 tszFzNnKEXu02oySctiIzPBsCv6tnwNoAyh+q/wPClTpWxYGthd6hhSFTEkykZ5oj303
 vM4YJwg825eLDrfHj4EBwk3YmV2m/vb5yym1M7Nwzr2uVmwro0iFpZmG7318q0FyTzEe
 zVNw==
X-Gm-Message-State: AOJu0YzeAC7eR1A/jSPt82YL3pS8IN/kuXB+Snte/VzliiKP+foANJaz
 CEbRmxDhMDpnju349wUQmTUMkaY6Dp4YmQ==
X-Google-Smtp-Source: AGHT+IH6Nlxx8wS+kvZypQvo8d8zqf3fn2Wx+ChaQrjozaQdN+2km908NHbK9lpuJP7StBYPcAaqoA==
X-Received: by 2002:a17:902:d490:b0:1d0:7570:726d with SMTP id
 c16-20020a170902d49000b001d07570726dmr2450473plg.91.1701963336967; 
 Thu, 07 Dec 2023 07:35:36 -0800 (PST)
Received: from localhost.localdomain ([2804:14d:5c57:a658::1bdf])
 by smtp.gmail.com with ESMTPSA id
 x5-20020a170902ea8500b001d08e080042sm1601332plb.43.2023.12.07.07.35.35
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Thu, 07 Dec 2023 07:35:36 -0800 (PST)
From: Hugo Nobrega <hugonobrega@HIDDEN>
To: guix-patches@HIDDEN
Subject: [PATCH] gnu: Add trash-d.
Date: Thu,  7 Dec 2023 12:34:40 -0300
Message-ID: <d6ab38823333b95771db3767bfd78508feb410db.1701963280.git.hugonobrega@HIDDEN>
X-Mailer: git-send-email 2.41.0
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Received-SPF: pass client-ip=2607:f8b0:4864:20::631;
 envelope-from=hugonobrega@HIDDEN; helo=mail-pl1-x631.google.com
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001,
 RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001,
 T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: submit
Cc: Hugo Nobrega <hugonobrega@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)

Change-Id: Ib216ec159ef256b79b3fba740ad3fc1575f5ecbc
---
 gnu/packages/dlang-xyz.scm | 75 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 75 insertions(+)
 create mode 100644 gnu/packages/dlang-xyz.scm

diff --git a/gnu/packages/dlang-xyz.scm b/gnu/packages/dlang-xyz.scm
new file mode 100644
index 0000000000..14015f8bc2
--- /dev/null
+++ b/gnu/packages/dlang-xyz.scm
@@ -0,0 +1,75 @@
+;;; GNU Guix --- Functional package management for GNU
+;;;
+;;; This file is part of GNU Guix.
+;;;
+;;; GNU Guix is free software; you can redistribute it and/or modify it
+;;; under the terms of the GNU General Public License as published by
+;;; the Free Software Foundation; either version 3 of the License, or (at
+;;; your option) any later version.
+;;;
+;;; GNU Guix is distributed in the hope that it will be useful, but
+;;; WITHOUT ANY WARRANTY; without even the implied warranty of
+;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+;;; GNU General Public License for more details.
+;;;
+;;; You should have received a copy of the GNU General Public License
+;;; along with GNU Guix.  If not, see <http://www.gnu.org/licenses/>.
+
+(define-module (gnu packages dlang-xyz)
+  #:use-module ((guix licenses) #:prefix license:)
+  #:use-module (gnu packages commencement)
+  #:use-module (gnu packages compression)
+  #:use-module (gnu packages curl)
+  #:use-module (gnu packages dlang)
+  #:use-module (gnu packages groff)
+  #:use-module (guix build-system dub)
+  #:use-module (guix git-download)
+  #:use-module (guix packages))
+
+(define-public trash-d
+  (package
+    (name "trash-d")
+    (version "19")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/rushsteve1/trash-d.git")
+             (commit version)))
+       (file-name (git-file-name name version))
+       (sha256 (base32 "1ljj1fqlby15iaar4pzni3h2hc7ncj2gads26bz2cala0inl3ywf"))))
+    (build-system dub-build-system)
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (add-before 'build 'set-env-cc
+           (lambda _
+             (setenv "CC" "gcc")))
+         (add-before 'build 'touch-dub-json
+           (lambda _
+             (mkdir-p ".dub")
+             (open-output-file ".dub/dub.json")))
+         (add-before 'build 'patch-build-dub
+           (lambda _
+             (substitute* "dub.json"
+               (("\"dflags-linux-ldc\": \\[\"-static\"\\]")
+                "\"dflags-ldc\": []"))))
+         (add-before 'install 'make-man-page
+           (lambda _
+             (invoke "ronn" "--roff" "MANUAL.md")
+             (invoke "mv" "MANUAL.1" "trash.1")
+             (invoke "gzip" "-9" "trash.1")))
+         (replace 'install
+           (lambda* (#:key outputs #:allow-other-keys)
+             (install-file "build/trash" (string-append (assoc-ref outputs "out")
+                                                        "/bin"))
+             (install-file "trash.1.gz" (string-append (assoc-ref outputs "out")
+                                                       "/share/man/man1")))))))
+    (native-inputs
+     (list ld-gold-wrapper ronn-ng groff-minimal gzip))
+    (home-page "https://github.com/rushsteve1/trash-d")
+    (synopsis "Delete files using the FreeDesktop trash bin")
+    (description "A near drop-in replacement for rm that uses the FreeDesktop
+trash bin. trash-d is written in the D programming language using only D's
+Phobos standard library.")
+    (license license:expat)))

base-commit: 06f25a9a85be1bbe7a709e58ce41c1a834e5f1ae
-- 
2.41.0





Acknowledgement sent to Hugo Nobrega <hugonobrega@HIDDEN>:
New bug report received and forwarded. Copy sent to guix-patches@HIDDEN. Full text available.
Report forwarded to guix-patches@HIDDEN:
bug#67692; Package guix-patches. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Thu, 7 Dec 2023 15:45:01 UTC

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