Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rebase onto upstream #30

Merged
merged 10,000 commits into from
Mar 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
10000 commits
Select commit Hold shift + click to select a range
7d5fffc
Add org-memento
akirak Oct 6, 2022
485b753
Remove project-hercules
akirak Oct 30, 2022
25b1224
org-memento: Switch to github
akirak Nov 3, 2022
f289a2a
Simplify the recipe of nix3.el
akirak Nov 29, 2022
13575a2
Remove queue package
akirak Jan 7, 2023
0d5dd5e
Update akirak
akirak Mar 10, 2023
e42e4cd
ci: Add reset workflow
akirak Nov 5, 2023
16056b7
Add recipes for akirak (internal)
akirak Feb 16, 2022
9de7b75
Add recipes for my config
akirak Feb 16, 2022
95e30a6
Add recipe for project-hercules
akirak Feb 16, 2022
748af75
Split ghelp recipes
akirak Feb 24, 2022
e9187fe
Add nix3
akirak Feb 26, 2022
3bdc7b6
Add riben
akirak Mar 24, 2022
835a168
Add avy-riben
akirak Mar 27, 2022
7f6995c
Migrate akirak to sourcehut
akirak Apr 10, 2022
e60ee7f
Update the recipe for akirak
akirak Aug 28, 2022
5cd8278
Add org-memento
akirak Oct 6, 2022
a8cc28a
Remove project-hercules
akirak Oct 30, 2022
63bba4e
org-memento: Switch to github
akirak Nov 3, 2022
372f363
Simplify the recipe of nix3.el
akirak Nov 29, 2022
6987f72
Remove queue package
akirak Jan 7, 2023
f84b1d7
Update akirak
akirak Mar 10, 2023
5ead250
ci: Fetch the full history to identify the parent commit
akirak Nov 24, 2023
8d59dd5
Add recipes for akirak (internal)
akirak Feb 16, 2022
b119641
Add recipes for my config
akirak Feb 16, 2022
9e0f042
Add recipe for project-hercules
akirak Feb 16, 2022
a28e845
Split ghelp recipes
akirak Feb 24, 2022
48fcac4
Add nix3
akirak Feb 26, 2022
a441fe4
Add riben
akirak Mar 24, 2022
4ef1a11
Add avy-riben
akirak Mar 27, 2022
6542f90
Migrate akirak to sourcehut
akirak Apr 10, 2022
240c376
Update the recipe for akirak
akirak Aug 28, 2022
25d2446
Add org-memento
akirak Oct 6, 2022
cdc57a7
Remove project-hercules
akirak Oct 30, 2022
750b204
org-memento: Switch to github
akirak Nov 3, 2022
883e755
Simplify the recipe of nix3.el
akirak Nov 29, 2022
94a0474
Remove queue package
akirak Jan 7, 2023
0337359
Update akirak
akirak Mar 10, 2023
5b65ee4
ci: Add reset workflow
akirak Nov 5, 2023
2a77428
Add recipes for akirak (internal)
akirak Feb 16, 2022
ddad08b
Add recipes for my config
akirak Feb 16, 2022
c9d852d
Add recipe for project-hercules
akirak Feb 16, 2022
6ef1bcd
Split ghelp recipes
akirak Feb 24, 2022
5d58921
Add nix3
akirak Feb 26, 2022
d4abb5d
Add riben
akirak Mar 24, 2022
7642444
Add avy-riben
akirak Mar 27, 2022
724d811
Migrate akirak to sourcehut
akirak Apr 10, 2022
83e42bc
Update the recipe for akirak
akirak Aug 28, 2022
d431068
Add org-memento
akirak Oct 6, 2022
3a9a442
Remove project-hercules
akirak Oct 30, 2022
a1e0622
org-memento: Switch to github
akirak Nov 3, 2022
5f7aace
Simplify the recipe of nix3.el
akirak Nov 29, 2022
904371b
Remove queue package
akirak Jan 7, 2023
e0b1f5e
Update akirak
akirak Mar 10, 2023
ab12a46
ci: Fetch the full history to identify the parent commit
akirak Nov 24, 2023
5290a71
Add recipes for akirak (internal)
akirak Feb 16, 2022
ec79e86
Add recipes for my config
akirak Feb 16, 2022
2b960a3
Add recipe for project-hercules
akirak Feb 16, 2022
49e5be8
Split ghelp recipes
akirak Feb 24, 2022
fa35e46
Add nix3
akirak Feb 26, 2022
4c7e1b7
Add riben
akirak Mar 24, 2022
1039de3
Add avy-riben
akirak Mar 27, 2022
581e468
Migrate akirak to sourcehut
akirak Apr 10, 2022
8b793d1
Update the recipe for akirak
akirak Aug 28, 2022
fefa0da
Add org-memento
akirak Oct 6, 2022
e7fef09
Remove project-hercules
akirak Oct 30, 2022
1f4e33a
org-memento: Switch to github
akirak Nov 3, 2022
0f04b00
Simplify the recipe of nix3.el
akirak Nov 29, 2022
2e02e15
Remove queue package
akirak Jan 7, 2023
90b279e
Update akirak
akirak Mar 10, 2023
4d050dc
ci: Add reset workflow
akirak Nov 5, 2023
d08cb7d
Add recipes for akirak (internal)
akirak Feb 16, 2022
8ab87d8
Add recipes for my config
akirak Feb 16, 2022
9957c6c
Add recipe for project-hercules
akirak Feb 16, 2022
6e47c86
Split ghelp recipes
akirak Feb 24, 2022
bb71ac3
Add nix3
akirak Feb 26, 2022
8bb9fcd
Add riben
akirak Mar 24, 2022
705b7d8
Add avy-riben
akirak Mar 27, 2022
3c81dc4
Migrate akirak to sourcehut
akirak Apr 10, 2022
9d858a0
Update the recipe for akirak
akirak Aug 28, 2022
7f6ae12
Add org-memento
akirak Oct 6, 2022
ac24880
Remove project-hercules
akirak Oct 30, 2022
3f1ffe0
org-memento: Switch to github
akirak Nov 3, 2022
c903d56
Simplify the recipe of nix3.el
akirak Nov 29, 2022
9db2459
Remove queue package
akirak Jan 7, 2023
6260d79
Update akirak
akirak Mar 10, 2023
d2c13fb
ci: Fetch the full history to identify the parent commit
akirak Nov 24, 2023
7bc910b
Add recipes for akirak (internal)
akirak Feb 16, 2022
a703c9c
Add recipes for my config
akirak Feb 16, 2022
0cc9feb
Add recipe for project-hercules
akirak Feb 16, 2022
308cc6d
Split ghelp recipes
akirak Feb 24, 2022
7e5e10d
Add nix3
akirak Feb 26, 2022
d226ad8
Add riben
akirak Mar 24, 2022
4cd0cbc
Add avy-riben
akirak Mar 27, 2022
a45b60b
Migrate akirak to sourcehut
akirak Apr 10, 2022
96735ed
Update the recipe for akirak
akirak Aug 28, 2022
15f9b50
Add org-memento
akirak Oct 6, 2022
327ed0a
Remove project-hercules
akirak Oct 30, 2022
e6332b8
org-memento: Switch to github
akirak Nov 3, 2022
2113823
Simplify the recipe of nix3.el
akirak Nov 29, 2022
99c9031
Remove queue package
akirak Jan 7, 2023
37ebe46
Update akirak
akirak Mar 10, 2023
9054fe9
ci: Add reset workflow
akirak Nov 5, 2023
cc96851
Add recipes for akirak (internal)
akirak Feb 16, 2022
913dcdb
Add recipes for my config
akirak Feb 16, 2022
70e5c48
Add recipe for project-hercules
akirak Feb 16, 2022
752eb85
Split ghelp recipes
akirak Feb 24, 2022
54f030e
Add nix3
akirak Feb 26, 2022
061e8ff
Add riben
akirak Mar 24, 2022
3b4ae20
Add avy-riben
akirak Mar 27, 2022
45df8f0
Migrate akirak to sourcehut
akirak Apr 10, 2022
d07ba19
Update the recipe for akirak
akirak Aug 28, 2022
fb9f735
Add org-memento
akirak Oct 6, 2022
fb8de2b
Remove project-hercules
akirak Oct 30, 2022
91bfd24
org-memento: Switch to github
akirak Nov 3, 2022
a756ad0
Simplify the recipe of nix3.el
akirak Nov 29, 2022
1cd8dae
Remove queue package
akirak Jan 7, 2023
c798688
Update akirak
akirak Mar 10, 2023
c272a52
ci: Fetch the full history to identify the parent commit
akirak Nov 24, 2023
4a3e406
Add recipes for akirak (internal)
akirak Feb 16, 2022
dbb13a0
Add recipes for my config
akirak Feb 16, 2022
d2b0ef5
Add recipe for project-hercules
akirak Feb 16, 2022
c5eca46
Split ghelp recipes
akirak Feb 24, 2022
8e889c5
Add nix3
akirak Feb 26, 2022
67feb3e
Add riben
akirak Mar 24, 2022
d0438e7
Add avy-riben
akirak Mar 27, 2022
92222e1
Migrate akirak to sourcehut
akirak Apr 10, 2022
0155d93
Update the recipe for akirak
akirak Aug 28, 2022
965b692
Add org-memento
akirak Oct 6, 2022
bb14be5
Remove project-hercules
akirak Oct 30, 2022
a5be39e
org-memento: Switch to github
akirak Nov 3, 2022
f4bf99b
Simplify the recipe of nix3.el
akirak Nov 29, 2022
b2c600a
Remove queue package
akirak Jan 7, 2023
a26fd27
Update akirak
akirak Mar 10, 2023
ac0337c
ci: Add reset workflow
akirak Nov 5, 2023
a64860a
Add recipes for akirak (internal)
akirak Feb 16, 2022
fa61e81
Add recipes for my config
akirak Feb 16, 2022
17083ff
Add recipe for project-hercules
akirak Feb 16, 2022
fcf36c3
Split ghelp recipes
akirak Feb 24, 2022
0e301db
Add nix3
akirak Feb 26, 2022
4031f0b
Add riben
akirak Mar 24, 2022
843adf2
Add avy-riben
akirak Mar 27, 2022
cd72c4d
Migrate akirak to sourcehut
akirak Apr 10, 2022
c688435
Update the recipe for akirak
akirak Aug 28, 2022
e1874e1
Add org-memento
akirak Oct 6, 2022
814b35c
Remove project-hercules
akirak Oct 30, 2022
4f57441
org-memento: Switch to github
akirak Nov 3, 2022
0298b9e
Simplify the recipe of nix3.el
akirak Nov 29, 2022
a501bb2
Remove queue package
akirak Jan 7, 2023
0fc2b01
Update akirak
akirak Mar 10, 2023
0aea227
ci: Fetch the full history to identify the parent commit
akirak Nov 24, 2023
ea238ab
Add recipes for akirak (internal)
akirak Feb 16, 2022
2a92947
Add recipes for my config
akirak Feb 16, 2022
5676e6a
Add recipe for project-hercules
akirak Feb 16, 2022
b529c31
Split ghelp recipes
akirak Feb 24, 2022
ce20522
Add nix3
akirak Feb 26, 2022
825a887
Add riben
akirak Mar 24, 2022
f455f60
Add avy-riben
akirak Mar 27, 2022
2a4ec16
Migrate akirak to sourcehut
akirak Apr 10, 2022
986afd3
Update the recipe for akirak
akirak Aug 28, 2022
2f546af
Add org-memento
akirak Oct 6, 2022
14db028
Remove project-hercules
akirak Oct 30, 2022
00aea68
org-memento: Switch to github
akirak Nov 3, 2022
e268429
Simplify the recipe of nix3.el
akirak Nov 29, 2022
4fb84d0
Remove queue package
akirak Jan 7, 2023
c07fd62
Update akirak
akirak Mar 10, 2023
84eb42b
ci: Add reset workflow
akirak Nov 5, 2023
93c5701
Add recipes for akirak (internal)
akirak Feb 16, 2022
9837bd4
Add recipes for my config
akirak Feb 16, 2022
e39abee
Add recipe for project-hercules
akirak Feb 16, 2022
62bc5c9
Split ghelp recipes
akirak Feb 24, 2022
b4d1597
Add nix3
akirak Feb 26, 2022
6883aea
Add riben
akirak Mar 24, 2022
d2927b5
Add avy-riben
akirak Mar 27, 2022
fddd1e7
Migrate akirak to sourcehut
akirak Apr 10, 2022
6552d4b
Update the recipe for akirak
akirak Aug 28, 2022
8d76f72
Add org-memento
akirak Oct 6, 2022
ba2047e
Remove project-hercules
akirak Oct 30, 2022
3a1e78a
org-memento: Switch to github
akirak Nov 3, 2022
14fec7c
Simplify the recipe of nix3.el
akirak Nov 29, 2022
ff9c80c
Remove queue package
akirak Jan 7, 2023
e4ef422
Update akirak
akirak Mar 10, 2023
56ab3c9
ci: Fetch the full history to identify the parent commit
akirak Nov 24, 2023
38d0075
Add recipes for akirak (internal)
akirak Feb 16, 2022
a0032ae
Add recipes for my config
akirak Feb 16, 2022
53de1b9
Add recipe for project-hercules
akirak Feb 16, 2022
3cd160c
Split ghelp recipes
akirak Feb 24, 2022
1db2125
Add nix3
akirak Feb 26, 2022
c95bfce
Add riben
akirak Mar 24, 2022
2953ecf
Add avy-riben
akirak Mar 27, 2022
aa80a10
Migrate akirak to sourcehut
akirak Apr 10, 2022
feef9e0
Update the recipe for akirak
akirak Aug 28, 2022
5b205cc
Add org-memento
akirak Oct 6, 2022
2a009aa
Remove project-hercules
akirak Oct 30, 2022
9a7150c
org-memento: Switch to github
akirak Nov 3, 2022
f5456a4
Simplify the recipe of nix3.el
akirak Nov 29, 2022
f2fb9d7
Remove queue package
akirak Jan 7, 2023
8afe06f
Update akirak
akirak Mar 10, 2023
18e0ce5
ci: Add reset workflow
akirak Nov 5, 2023
fab65fb
Add recipes for akirak (internal)
akirak Feb 16, 2022
c639df9
Add recipes for my config
akirak Feb 16, 2022
f0359e4
Add recipe for project-hercules
akirak Feb 16, 2022
d1b6f59
Split ghelp recipes
akirak Feb 24, 2022
bdef17a
Add nix3
akirak Feb 26, 2022
cb8a1c5
Add riben
akirak Mar 24, 2022
527ae71
Add avy-riben
akirak Mar 27, 2022
93e4f85
Migrate akirak to sourcehut
akirak Apr 10, 2022
c45852e
Update the recipe for akirak
akirak Aug 28, 2022
2d38412
Add org-memento
akirak Oct 6, 2022
66f6357
Remove project-hercules
akirak Oct 30, 2022
58c4350
org-memento: Switch to github
akirak Nov 3, 2022
7a3380b
Simplify the recipe of nix3.el
akirak Nov 29, 2022
cc790a7
Remove queue package
akirak Jan 7, 2023
bf64e11
Update akirak
akirak Mar 10, 2023
ec97dfb
ci: Fetch the full history to identify the parent commit
akirak Nov 24, 2023
a384a2b
Add recipes for akirak (internal)
akirak Feb 16, 2022
9578198
Add recipes for my config
akirak Feb 16, 2022
4ca7473
Add recipe for project-hercules
akirak Feb 16, 2022
acb353f
Split ghelp recipes
akirak Feb 24, 2022
5a633fe
Add nix3
akirak Feb 26, 2022
2fe6ccb
Add riben
akirak Mar 24, 2022
0611fe1
Add avy-riben
akirak Mar 27, 2022
5e8cc1a
Migrate akirak to sourcehut
akirak Apr 10, 2022
b0eb824
Update the recipe for akirak
akirak Aug 28, 2022
c803b4a
Add org-memento
akirak Oct 6, 2022
3309df4
Remove project-hercules
akirak Oct 30, 2022
7eaca81
org-memento: Switch to github
akirak Nov 3, 2022
47483b1
Simplify the recipe of nix3.el
akirak Nov 29, 2022
85523e8
Remove queue package
akirak Jan 7, 2023
bb15e4c
Update akirak
akirak Mar 10, 2023
85591f0
ci: Add reset workflow
akirak Nov 5, 2023
185aa4f
Add recipes for akirak (internal)
akirak Feb 16, 2022
037982f
Add recipes for my config
akirak Feb 16, 2022
4451242
Add recipe for project-hercules
akirak Feb 16, 2022
78b336b
Split ghelp recipes
akirak Feb 24, 2022
f326a3b
Add nix3
akirak Feb 26, 2022
9ff3eb4
Add riben
akirak Mar 24, 2022
f403e56
Add avy-riben
akirak Mar 27, 2022
ff31bab
Migrate akirak to sourcehut
akirak Apr 10, 2022
ea4db39
Update the recipe for akirak
akirak Aug 28, 2022
fcc8291
Add org-memento
akirak Oct 6, 2022
bf05b7f
Remove project-hercules
akirak Oct 30, 2022
053b83c
org-memento: Switch to github
akirak Nov 3, 2022
cb0249a
Simplify the recipe of nix3.el
akirak Nov 29, 2022
79e5ceb
Remove queue package
akirak Jan 7, 2023
8687701
Update akirak
akirak Mar 10, 2023
8d673ee
ci: Fetch the full history to identify the parent commit
akirak Nov 24, 2023
618342a
ci(reset): Fetch the revision
akirak Dec 30, 2023
b677091
Migrate oahu and oahu-memento to github
akirak Jan 14, 2024
5eca90f
ci: Update only twice a month
akirak Feb 10, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions .github/workflows/rebase-onto-upstream.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Rebase onto upstream

on:
workflow_dispatch:
schedule:
- cron: '0 8 1,15 * *'

jobs:
push:
runs-on: ubuntu-latest

strategy:
matrix:
base_ref:
- akirak
# - admin
upstream_branch:
- 'master'

steps:

- uses: actions/checkout@v3
with:
fetch-depth: 0
ref: ${{ matrix.base_ref }}

- name: Fetch the upstream
run: |
git remote add upstream https://github.com/melpa/melpa.git
git fetch upstream ${{ matrix.upstream_branch }}

- name: Cherry pick commits
run: |
git config --add user.name 'github-actions[bot]'
git config --add user.email '6270544+github-actions[bot]@users.noreply.github.com'
git rebase -s ort -X theirs upstream/${{ matrix.upstream_branch }}

- uses: peter-evans/create-pull-request@v5
with:
base: ${{ matrix.base_ref }}
title: 'Rebase onto upstream'
branch: 'rebase-${{ matrix.base_ref }}'
labels: automation
token: ${{ secrets.PAT_FOR_PR }}
50 changes: 50 additions & 0 deletions .github/workflows/reset-on-merge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Reset on merge

on:
pull_request:
types:
- closed

jobs:
reset:

if: |
github.event.pull_request.merged == true &&
github.base_ref == 'akirak' &&
github.head_ref == 'rebase-akirak' &&
github.event.pull_request.head.repo.id == github.event.pull_request.base.repo.id

runs-on: ubuntu-latest

steps:

- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.base_ref }}

- name: Tag the last head revision
id: backup
run: |
tag="${{ github.base_ref }}-backup-$(date +'%Y%m%d%H%M%S')"
git tag "$tag" "$(git rev-parse HEAD~1)"
echo "tag=$tag" >> "$GITHUB_OUTPUT"

- name: Push the tag
uses: ad-m/github-push-action@master
with:
tags: true
branch: ${{ steps.backup.outputs.tag }}

- name: Reset
run: |
git fetch origin "$rev"
git reset --hard "$rev"
env:
rev: ${{ github.head_ref }}

- name: Push the resetted branch
uses: ad-m/github-push-action@master
with:
branch: ${{ github.base_ref }}
force: true
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/acm
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
(acm :fetcher github :repo "manateelazycat/lsp-bridge"
:files ("acm/*.el" "acm/icons"))
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")
2 changes: 2 additions & 0 deletions recipes/akirak
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
(akirak :fetcher github :repo "akirak/emacs-config"
:files ("emacs/lisp/*.el"))
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/apprentice
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
(apprentice :fetcher github :repo "Sasanidas/Apprentice")
2 changes: 2 additions & 0 deletions recipes/avy-riben
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
(avy-riben :fetcher github :repo "akirak/emacs-dumb-japanese"
:files ("avy-riben.el"))
1 change: 1 addition & 0 deletions recipes/beancount
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
(beancount :fetcher github :repo "beancount/beancount-mode")
7 changes: 6 additions & 1 deletion recipes/benchmark-init
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
(benchmark-init :fetcher github :repo "dholm/benchmark-init-el")
;; I initially intended to use this fork until a bugfix PR is merged.
;;
;; However, I added another patch which further enhances the package,
;; so I probably won't switch back to the original.
;; https://github.com/akirak/benchmark-init-el/commit/cc16e08c3d3a6e0044046b74c3f6544e46250d4a
(benchmark-init :fetcher github :repo "akirak/benchmark-init-el")
1 change: 1 addition & 0 deletions recipes/bfmt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
(bfmt :fetcher github :repo "akirak/bfmt.el")
1 change: 1 addition & 0 deletions recipes/chatgpt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
(chatgpt :fetcher github :repo "joshcho/ChatGPT.el")
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: 2 additions & 0 deletions recipes/clipsave
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
(clipurl :fetcher github :repo "akirak/clipurl.el"
:files ("clipsave.el"))
Loading
Loading