aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorBrian Leung <leungbk@mailfence.com>2019-09-26 08:25:52 +0200
committerBrian Leung <leungbk@mailfence.com>2019-09-26 08:34:43 +0200
commit06bdb36837c33d7cd0ba34fd9652067df62cb027 (patch)
treed0d6ca10e526a0586aa1aedd2902f39f6eeca324 /gnu/packages
parentd8b352bea7657f039b669846eceb84aedd0f67ed (diff)
downloadpatches-06bdb36837c33d7cd0ba34fd9652067df62cb027.tar
patches-06bdb36837c33d7cd0ba34fd9652067df62cb027.tar.gz
gnu: Add emacs-dash-docs.
* gnu/packages/emacs-xyz.scm (emacs-dash-docs): New variable.
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/emacs-xyz.scm47
1 files changed, 47 insertions, 0 deletions
diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index d3991427f2..f43538ecb5 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -17516,6 +17516,53 @@ and searching through @code{Ctags} files.")
copied into @code{org-mode} buffers.")
(license license:gpl3+))))
+(define-public emacs-dash-docs
+ (let ((commit "111fd9b97001f1ad887b45e5308a14ddd68ce70a")
+ (revision "1"))
+ (package
+ (name "emacs-dash-docs")
+ (version (git-version "1.4.0" revision commit))
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/dash-docs-el/dash-docs.git")
+ (commit commit)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "0sckb7z0ylflva212bns7iq9mfnffgjghi0qspsbfwra35zb9xng"))))
+ (build-system emacs-build-system)
+ (propagated-inputs
+ `(("emacs-async" ,emacs-async)))
+ (native-inputs
+ `(("emacs-undercover" ,emacs-undercover)
+ ("emacs-ert-runner" ,emacs-ert-runner)))
+ (arguments
+ `(#:tests? #t
+ #:test-command '("ert-runner")
+ #:phases
+ ;; this test requires network access, so remove it
+ (modify-phases %standard-phases
+ (add-before 'check 'make-tests-writable
+ (lambda _
+ (make-file-writable "test/dash-docs-test.el")
+ #t))
+ (add-before 'check 'delete-test
+ (lambda _
+ (emacs-batch-edit-file "test/dash-docs-test.el"
+ `(progn (progn
+ (goto-char (point-min))
+ (re-search-forward "ert-deftest dash-docs-official-docsets-test")
+ (beginning-of-line)
+ (kill-sexp))
+ (basic-save-buffer)))
+ #t)))))
+ (home-page "https://github.com/dash-docs-el/dash-docs")
+ (synopsis "Offline documentation browser for APIs using Dash docsets")
+ (description "This package exposes functionality to work with Dash docsets.")
+ (license license:gpl3+))))
+
(define-public emacs-helm-dash
(let ((commit "192b862185df661439a06de644791171e899348a")
(version "1.3.0")