Skip to content

Commit

Permalink
Merge pull request #30 from akirak/rebase-akirak
Browse files Browse the repository at this point in the history
Rebase onto upstream
  • Loading branch information
akirak authored Mar 15, 2024
2 parents 3dcc740 + 5eca90f commit 57028e0
Show file tree
Hide file tree
Showing 32 changed files with 88 additions and 81 deletions.
30 changes: 6 additions & 24 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,39 +2,21 @@
*.elc
*~
.#*
/.cask
/.ecukes-failing-scenarios
/config.el
/config.mk
/download_log.db
/download_log.json.gz
/download_log_stable.db
/download_log_stable.json.gz
/elpa
/epkgs
/html-snapshot/archive.json
/html-snapshot/build-status.json
/html-snapshot/download_counts.json
/html-snapshot/recipes.json
/html-snapshot/updates.rss
/html-stable/archive.json
/html-stable/build-status.json
/html-stable/download_counts.json
/html-stable/recipes.json
/html-stable/updates.rss
/html/archive.json
/html/build-status.json
/html/download_counts.json
/html/recipes.json
/html/updates.rss
/packages-snapshot/
/packages-stable/
/packages/
/html*/archive.json
/html*/build-status.json
/html*/download_counts.json
/html*/recipes.json
/html*/updates.rss
/packages*/
/process_log.pid
/recipes/.dirstamp
/sandbox
/service/*/log
/service/*/supervise
/service/caddy/.caddy
/sync
/working/
8 changes: 8 additions & 0 deletions package-build/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,24 @@ include default.mk

.PHONY: test

# https://github.com/emacscollective/workflows/blob/main/bin/install-deps
# expects this to find this in this file.
DEPS = compat

all: lisp

help:
$(info make all - generate byte-code and autoloads)
$(info make lisp - generate byte-code and autoloads)
$(info make redo - re-generate byte-code and autoloads)
$(info make test - run tests)
$(info make demo - run tests showing their documentation)
$(info make clean - remove generated files)
@printf "\n"

redo: clean $(ELCS) loaddefs check-declare
@$(MAKE) -C test lisp

lisp: $(ELCS) loaddefs check-declare
@$(MAKE) -C test lisp

Expand Down
2 changes: 1 addition & 1 deletion package-build/default.mk
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ ELS += package-build.el
ELS += package-recipe-mode.el
ELCS = $(ELS:.el=.elc)

DEPS =
DEPS = compat

VERSION ?= $(shell test -e $(TOP).git && git describe --tags --abbrev=0 | cut -c2-)

Expand Down
8 changes: 4 additions & 4 deletions package-build/package-build-badges.el
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
;;; package-build-badges.el --- Create badges for packages -*- lexical-binding:t; coding:utf-8 -*-

;; Copyright (C) 2011-2023 Donald Ephraim Curtis
;; Copyright (C) 2012-2023 Steve Purcell
;; Copyright (C) 2018-2023 Jonas Bernoulli
;; Copyright (C) 2011-2024 Donald Ephraim Curtis
;; Copyright (C) 2012-2024 Steve Purcell
;; Copyright (C) 2018-2024 Jonas Bernoulli
;; Copyright (C) 2021-2023 Free Software Foundation, Inc
;; Copyright (C) 2009 Phil Hagelberg

Expand Down Expand Up @@ -40,7 +40,7 @@
This is essentially a copy of `elpaa--make-badge'."
(let* ((file (expand-file-name (concat name "-badge.svg") target-dir))
(left (or archive (car package-build-badge-data) "myElpa"))
(right (url-hexify-string version))
(right version)
(color (or color (cadr package-build-badge-data) "#ff491b"))
(lw (package-build-badge--string-width left))
(rw (package-build-badge--string-width right))
Expand Down
48 changes: 27 additions & 21 deletions package-build/package-build.el
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
;;; package-build.el --- Tools for assembling a package archive -*- lexical-binding:t; coding:utf-8 -*-

;; Copyright (C) 2011-2023 Donald Ephraim Curtis
;; Copyright (C) 2012-2023 Steve Purcell
;; Copyright (C) 2016-2023 Jonas Bernoulli
;; Copyright (C) 2011-2024 Donald Ephraim Curtis
;; Copyright (C) 2012-2024 Steve Purcell
;; Copyright (C) 2016-2024 Jonas Bernoulli
;; Copyright (C) 2009 Phil Hagelberg

;; Author: Donald Ephraim Curtis <[email protected]>
Expand All @@ -13,7 +13,7 @@
;; Keywords: maint tools

;; Package-Version: 4.0.0.50-git
;; Package-Requires: ((emacs "26.1"))
;; Package-Requires: ((emacs "26.1") (compat "27.1"))

;; SPDX-License-Identifier: GPL-3.0-or-later

Expand Down Expand Up @@ -42,6 +42,7 @@
;;; Code:

(require 'cl-lib)
(require 'compat nil t)
(require 'pcase)
(require 'subr-x)

Expand Down Expand Up @@ -405,7 +406,7 @@ main library to a version that qualifies as a release, ignoring
any pre-releases.
Return (COMMIT-HASH COMMITTER-DATE VERSION-STRING)."
(when-let ((lib (package-build--main-library rcp)))
(and-let* ((lib (package-build--main-library rcp)))
(with-temp-buffer
(let (commit date version)
(save-excursion
Expand Down Expand Up @@ -466,7 +467,7 @@ Return (COMMIT-HASH COMMITTER-DATE VERSION-STRING)."
(defun package-build-pkg-version (rcp)
"Return version specified in the \"NAME-pkg.el\" file.
Return (COMMIT-HASH COMMITTER-DATE VERSION-STRING)."
(when-let ((file (package-build--pkgfile rcp)))
(and-let* ((file (package-build--pkgfile rcp)))
(let ((regexp (or (oref rcp version-regexp) package-build-version-regexp))
commit date version)
(catch 'before-latest
Expand Down Expand Up @@ -1075,7 +1076,7 @@ value specified in the file \"NAME.el\"."
(if (fboundp 'lm-maintainers)
(lm-maintainers)
(with-no-warnings
(when-let ((maintainer (lm-maintainer)))
(and-let* ((maintainer (lm-maintainer)))
(list maintainer)))))
(package-desc-from-define
name version
Expand All @@ -1085,10 +1086,15 @@ value specified in the file \"NAME.el\"."
^;;; [^ ]*\\.el ---[ \t]*\\(.*?\\)[ \t]*\\(-\\*-.*-\\*-[ \t]*\\)?$" nil t)
(match-string-no-properties 1)))
"No description available.")
(when-let ((require-lines (lm-header-multiline "package-requires")))
(package--prepare-dependencies
(package-read-from-string
(mapconcat #'identity require-lines " "))))
(cond
((fboundp 'lm-package-requires)
(lm-package-requires))
((fboundp 'package--prepare-dependencies)
(and-let* ((require-lines
(lm-header-multiline "package-requires")))
(package--prepare-dependencies
(package-read-from-string
(mapconcat #'identity require-lines " "))))))
;; `:kind' and `:archive' are handled separately.
:kind (or kind 'single)
;; The other keyword arguments are appended to the alist
Expand Down Expand Up @@ -1569,15 +1575,15 @@ If optional PRETTY-PRINT is non-nil, then pretty-print
;; section "Specifications (elpa-packages)" in "README" of the
;; "elpa-admin" branch in "emacs/elpa.git" repository; and also
;; `elpaa--supported-keywords' and `elpaa--publish-package-spec'.
(let ((recipe (package-recipe-lookup name)))
(push
`(,symbol
:url ,(package-recipe--upstream-url recipe)
,@(and (cl-typep recipe 'package-hg-recipe)
(list :vc-backend 'Hg))
,@(when-let* ((branch (oref recipe branch)))
(list :branch branch)))
vc-pkgs))))))
(and-let* ((recipe (with-demoted-errors "Recipe error: %S"
(package-recipe-lookup name))))
(push `(,symbol
:url ,(package-recipe--upstream-url recipe)
,@(and (cl-typep recipe 'package-hg-recipe)
(list :vc-backend 'Hg))
,@(and-let* ((branch (oref recipe branch)))
(list :branch branch)))
vc-pkgs))))))
(setq entries (cl-sort entries #'string< :key #'car))
(with-temp-file (or file (expand-file-name "archive-contents"))
(let ((print-level nil)
Expand Down Expand Up @@ -1646,7 +1652,7 @@ a package."
(json-encode
(cl-mapcan
(lambda (name)
(ignore-errors ; Silently ignore corrupted recipes.
(with-demoted-errors "Recipe error: %S"
(and (package-recipe-lookup name)
(with-temp-buffer
(insert-file-contents
Expand Down
6 changes: 3 additions & 3 deletions package-build/package-recipe-mode.el
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
;;; package-recipe-mode.el --- Major-mode for editing package recipes -*- lexical-binding:t; coding:utf-8 -*-

;; Copyright (C) 2011-2023 Donald Ephraim Curtis
;; Copyright (C) 2012-2023 Steve Purcell
;; Copyright (C) 2016-2023 Jonas Bernoulli
;; Copyright (C) 2011-2024 Donald Ephraim Curtis
;; Copyright (C) 2012-2024 Steve Purcell
;; Copyright (C) 2016-2024 Jonas Bernoulli
;; Copyright (C) 2009 Phil Hagelberg

;; Author: Donald Ephraim Curtis <[email protected]>
Expand Down
18 changes: 8 additions & 10 deletions package-build/package-recipe.el
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
;;; package-recipe.el --- Package recipes as EIEIO objects -*- lexical-binding:t; coding:utf-8 -*-

;; Copyright (C) 2018-2023 Jonas Bernoulli
;; Copyright (C) 2018-2024 Jonas Bernoulli

;; Author: Jonas Bernoulli <[email protected]>
;; Homepage: https://github.com/melpa/package-build
Expand All @@ -27,6 +27,7 @@

;;; Code:

(require 'compat nil t)
(require 'eieio)
(require 'subr-x)
(require 'url-parse)
Expand Down Expand Up @@ -182,17 +183,14 @@ file is invalid, then raise an error."
(cl-assert (not (plist-get plist :url)) ":url is redundant"))
(cl-assert (plist-get plist :url) ":url is missing")))
(dolist (key symbol-keys)
(let ((val (plist-get plist key)))
(when val
(cl-assert (symbolp val) nil "%s must be a symbol but is %S" key val))))
(when-let ((val (plist-get plist key)))
(cl-assert (symbolp val) nil "%s must be a symbol but is %S" key val)))
(dolist (key list-keys)
(let ((val (plist-get plist key)))
(when val
(cl-assert (listp val) nil "%s must be a list but is %S" key val))))
(when-let ((val (plist-get plist key)))
(cl-assert (listp val) nil "%s must be a list but is %S" key val)))
(dolist (key string-keys)
(let ((val (plist-get plist key)))
(when val
(cl-assert (stringp val) nil "%s must be a string but is %S" key val))))
(when-let ((val (plist-get plist key)))
(cl-assert (stringp val) nil "%s must be a string but is %S" key val)))
(when-let ((spec (plist-get plist :files)))
;; `:defaults' is only allowed as the first element.
;; If we find it in that position, skip over it.
Expand Down
2 changes: 2 additions & 0 deletions recipes/afterglow
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
(afterglow :fetcher github
:repo "ernstvanderlinden/emacs-afterglow")
3 changes: 3 additions & 0 deletions recipes/app-monochrome-themes
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
(app-monochrome-themes
:fetcher github
:repo "Greybeard-Entertainment/app-monochrome")
1 change: 1 addition & 0 deletions recipes/chatu
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
(chatu :repo "kimim/chatu" :fetcher github)
2 changes: 1 addition & 1 deletion recipes/deno-ts-mode
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
(deno-ts-mode
:fetcher sourcehut
:fetcher github
:repo "mgmarlow/deno-ts-mode")
1 change: 1 addition & 0 deletions recipes/embark-org-roam
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
(embark-org-roam :fetcher github :repo "bramadams/embark-org-roam")
1 change: 1 addition & 0 deletions recipes/emms-player-spotify
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
(emms-player-spotify :fetcher github :repo "sarg/emms-spotify")
2 changes: 1 addition & 1 deletion recipes/eshell-outline
Original file line number Diff line number Diff line change
@@ -1 +1 @@
(eshell-outline :fetcher git :url "https://git.jamzattack.xyz/eshell-outline")
(eshell-outline :fetcher github :repo "emacsattic/eshell-outline")
2 changes: 1 addition & 1 deletion recipes/evil-lispy
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
(evil-lispy :repo "sp3ctum/evil-lispy"
(evil-lispy :repo "mikavilpas/evil-lispy"
:fetcher github)
2 changes: 1 addition & 1 deletion recipes/flymake-clippy
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
(flymake-clippy
:fetcher sourcehut
:fetcher github
:repo "mgmarlow/flymake-clippy")
2 changes: 1 addition & 1 deletion recipes/flymake-fennel
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
(flymake-fennel
:fetcher sourcehut
:fetcher github
:repo "mgmarlow/flymake-fennel")
2 changes: 1 addition & 1 deletion recipes/flymake-golangci
Original file line number Diff line number Diff line change
@@ -1 +1 @@
(flymake-golangci :fetcher gitlab :repo "shackra/flymake-golangci")
(flymake-golangci :fetcher github :repo "emacsattic/flymake-golangci")
1 change: 1 addition & 0 deletions recipes/fmo-mode
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
(fmo-mode :fetcher github :repo "xeechou/fmo-mode.el")
1 change: 1 addition & 0 deletions recipes/magit-gptcommit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
(magit-gptcommit :fetcher github :repo "douo/magit-gptcommit")
2 changes: 1 addition & 1 deletion recipes/nordic-night-theme
Original file line number Diff line number Diff line change
@@ -1 +1 @@
(nordic-night-theme :fetcher git :url "https://codeberg.org/ashton314/nordic-night")
(nordic-night-theme :fetcher codeberg :repo "ashton314/nordic-night")
3 changes: 1 addition & 2 deletions recipes/org-caldav
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
(org-caldav
:repo "dengste/org-caldav"
:fetcher github
:files ("org-caldav.el"))
:fetcher github)
1 change: 1 addition & 0 deletions recipes/org-clock-agenda-daytime-mode
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
(org-clock-agenda-daytime-mode :repo "ArneBab/emacs-org-clock-daytime" :fetcher github)
2 changes: 1 addition & 1 deletion recipes/org-vcard
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
(org-vcard
:fetcher github
:repo "flexibeast/org-vcard"
:repo "pinoaffe/org-vcard"
:files ("org-vcard.el"
"styles"))
2 changes: 1 addition & 1 deletion recipes/ox-impress-js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(ox-impress-js :fetcher github
:repo "takumikinjo/org-impress-js.el"
:repo "emacsattic/org-impress-js"
:files ("*.el" "resources")
:old-names (org-impress-js))
2 changes: 1 addition & 1 deletion recipes/protobuf-ts-mode
Original file line number Diff line number Diff line change
@@ -1 +1 @@
(protobuf-ts-mode :fetcher git :url "https://git.ookami.one/cgit/protobuf-ts-mode")
(protobuf-ts-mode :fetcher github :repo "emacsattic/protobuf-ts-mode")
2 changes: 1 addition & 1 deletion recipes/pyim-cangjiedict
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(pyim-cangjiedict
:fetcher github
:repo "ba11aStone/pyim-cangjiedict"
:repo "con5tella/pyim-cangjiedict"
:files (:defaults "*.pyim"))
2 changes: 1 addition & 1 deletion recipes/pyim-smzmdict
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(pyim-smzmdict
:fetcher github
:repo "ba11aStone/pyim-smzmdict"
:repo "con5tella/pyim-smzmdict"
:files (:defaults "*.pyim"))
1 change: 1 addition & 0 deletions recipes/reverso
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
(reverso :repo "SqrtMinusOne/reverso.el" :fetcher github)
5 changes: 4 additions & 1 deletion recipes/rom-party
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
(rom-party :repo "LaurenceWarne/rom-party.el" :fetcher github)
(rom-party
:repo "LaurenceWarne/rom-party.el"
:fetcher github
:files (:defaults "index.extmap.gz"))
3 changes: 1 addition & 2 deletions recipes/tbx2org
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
(tbx2org :repo "istib/tbx2org" :fetcher github)

(tbx2org :repo "emacsattic/tbx2org" :fetcher github)
2 changes: 1 addition & 1 deletion recipes/tsort
Original file line number Diff line number Diff line change
@@ -1 +1 @@
(tsort :repo "ehawkvu/tsort.el" :fetcher github)
(tsort :repo "echawk/tsort.el" :fetcher github)

0 comments on commit 57028e0

Please sign in to comment.