misohena / el-easydraw

Embedded drawing tool for Emacs
https://misohena.jp/blog/2021-09-21-emacs-easy-draw.html
GNU General Public License v3.0
721 stars 21 forks source link

Fix installation with `package-vc-install` for Emacs 29: add package metadata #11

Closed thezeroalpha closed 1 year ago

thezeroalpha commented 1 year ago

Emacs version 29 added the ability to install packages from source, with package-vc-install. Attempting to install it this way:

(package-vc-install "https://github.com/misohena/el-easydraw" 'edraw)

Gives the error message "Version must be a string". In fact, there is no package version indicated in edraw.el.

This PR adds the necessary information (i.e. package version) to be able to install with package-vc-install, and some other metadata mentioned by package-lint.

You can test the installation before merging with:

(package-vc-install "https://github.com/thezeroalpha/el-easydraw" 'edraw "add-package-version")