unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: "LaFreniere, Joseph" <joseph@lafreniere.xyz>
To: 42549@debbugs.gnu.org
Subject: [bug#42549] [PATCH] gnu: Add emacs-standard-dirs.
Date: Sun, 26 Jul 2020 11:13:38 -0500	[thread overview]
Message-ID: <87lfj6s18t.fsf@odyssey.lafreniere.xyz> (raw)

[-- Attachment #1: Type: text/plain, Size: 385 bytes --]

Patch file is attached.  Disclaimer that I am the author of the 
upstream package.

Even though Guix does not (to the best of my knowledge) currently 
support macOS, I left the paragraph about behavior in macOS in the 
description because cross-platform support for users of multiple 
operating systems was one of my primary motivations for writing 
the package.

--
Joseph LaFreniere

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-gnu-Add-emacs-standard-dirs.patch --]
[-- Type: text/x-patch, Size: 2199 bytes --]

From 2e0716d7ed9b35b780cbefda29bb9982079461ed Mon Sep 17 00:00:00 2001
From: Joseph LaFreniere <joseph@lafreniere.xyz>
Date: Sun, 26 Jul 2020 11:06:19 -0500
Subject: [PATCH] gnu: Add emacs-standard-dirs.

* gnu/packages/emacs-xyz.scm (emacs-standard-dirs): New variable.
---
 gnu/packages/emacs-xyz.scm | 33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index db395361b9..d9529a2182 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -3570,6 +3570,39 @@ particular, the minor mode works quite well with Org or Markdown modes, or
 other markup language major modes.")
       (license license:gpl3+))))
 
+(define-public emacs-standard-dirs
+  (package
+    (name "emacs-standard-dirs")
+    (version "2.0.0")
+    (home-page "https://github.com/lafrenierejm/standard-dirs.el")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url home-page)
+             (commit version)))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "0r814qcrhvx4qlx4sdzwdmrhiryslqclx0bnpp0qcrbx6g8qfl25"))))
+    (build-system emacs-build-system)
+    (propagated-inputs
+     `(("emacs-f" ,emacs-f)
+       ("emacs-s" ,emacs-s)))
+    (synopsis "Platform-specific paths for config, cache, and other data")
+    (description
+     "This package provides platform-specific paths for reading and writing
+configuration, cache, and other data.
+
+On Linux (@code{gnu/linux}), the directory paths conform to the
+@uref{https://specifications.freedesktop.org/basedir-spec/basedir-spec-0.6.html,
+XDG Base Directory Specification} where relevant, with fallbacks to
+@code{xdg-user-dirs}.
+
+On macOS (@code{darwin}), the directory paths conform to Apple's
+@uref{https://developer.apple.com/library/archive/documentation/FileManagement/Conceptual/FileSystemProgrammingGuide/FileSystemOverview/FileSystemOverview.html#//apple_ref/doc/uid/TP40010672-CH2-SW14,
+macOS File System Programming Guide}.")
+    (license license:gpl3+)))
+
 (define-public emacs-string-inflection
   (package
     (name "emacs-string-inflection")
-- 
2.27.0


             reply	other threads:[~2020-07-26 16:14 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-26 16:13 LaFreniere, Joseph [this message]
2020-07-28 10:37 ` [bug#42549] [PATCH] gnu: Add emacs-standard-dirs Nicolas Goaziou
2020-07-28 23:01   ` LaFreniere, Joseph
2020-09-19 20:39     ` bug#42549: " Ludovic Courtès

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87lfj6s18t.fsf@odyssey.lafreniere.xyz \
    --to=joseph@lafreniere.xyz \
    --cc=42549@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).