"Jason A. Donenfeld" <[email protected]>
writes:

> Svend -- Check this page out:
> <http://devmanual.gentoo.org/eclass-reference/elisp-common.eclass/index.html>.
> Scroll down to "FUNCTIONS." There are a few functions here:
> elisp-install, elisp-site-file-install, .... I don't know anything
> about emacs. Any clue which of these I'd want to use for installing
> this in the Gentoo package?

I am not familiar with the Gentoo packaging system, but using magit as
an example, I think we would need something like this.

files/50password-store-gentoo.el:

(add-to-list 'load-path "@SITELISP@")
(autoload 'password-store-edit "password-store" nil t)
(autoload 'password-store-copy "password-store" nil t)
(autoload 'password-store-init "password-store" nil t)
(autoload 'password-store-insert "password-store" nil t)
(autoload 'password-store-generate "password-store" nil t)
(autoload 'password-store-remove "password-store" nil t)
(autoload 'password-store-rename "password-store" nil t)
(autoload 'password-store-version "password-store" nil t)

and something like this in the ebuild file:

SITEFILE="50${PN}-gentoo.el"
...
elisp-install ${PN} contrib/emacs/*.el || die
elisp-site-file-install "${FILESDIR}/${SITEFILE}" || die

https://github.com/funtoo/portage/blob/4e545986174f69273500c72f217060728debc3dc/app-emacs/magit/files/50magit-gentoo.el

_______________________________________________
Password-Store mailing list
[email protected]
http://lists.zx2c4.com/mailman/listinfo/password-store

Reply via email to