commit: 2fbc7f9e1f252cbaafaca434098a591484aeeb96 Author: Maciej Barć <xgqt <AT> gentoo <DOT> org> AuthorDate: Wed Dec 20 13:41:05 2023 +0000 Commit: Maciej Barć <xgqt <AT> gentoo <DOT> org> CommitDate: Wed Dec 20 19:45:47 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2fbc7f9e
app-emacs/package-lint: add new dependency for 0.21 - compat Closes: https://bugs.gentoo.org/920378 Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org> app-emacs/package-lint/package-lint-0.21-r1.ebuild | 51 ++++++++++++++++++++++ app-emacs/package-lint/package-lint-0.21.ebuild | 35 --------------- 2 files changed, 51 insertions(+), 35 deletions(-) diff --git a/app-emacs/package-lint/package-lint-0.21-r1.ebuild b/app-emacs/package-lint/package-lint-0.21-r1.ebuild new file mode 100644 index 000000000000..995c84ec579c --- /dev/null +++ b/app-emacs/package-lint/package-lint-0.21-r1.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +NEED_EMACS=26.1 + +inherit elisp + +DESCRIPTION="Linting library for Emacs Lisp package metadata" +HOMEPAGE="https://github.com/purcell/package-lint/" + +if [[ "${PV}" == *9999* ]] ; then + inherit git-r3 + + EGIT_REPO_URI="https://github.com/purcell/${PN}.git" +else + SRC_URI="https://github.com/purcell/${PN}/archive/${PV}.tar.gz + -> ${P}.tar.gz" + + KEYWORDS="~amd64 ~x86" +fi + +LICENSE="GPL-3+" +SLOT="0" + +RDEPEND=" + app-emacs/compat +" +BDEPEND=" + ${RDEPEND} +" + +PATCHES=( "${FILESDIR}/${PN}-symbol-info-data-directory.patch" ) +SITEFILE="50${PN}-gentoo.el" + +src_prepare() { + elisp_src_prepare + + sed "s|@SITEETC@|${EPREFIX}${SITEETC}/${PN}|" -i "${PN}.el" || die +} + +src_install() { + elisp-install "${PN}" ${PN}{,-flymake}.el{,c} + elisp-make-site-file "${SITEFILE}" + + insinto "${SITEETC}/${PN}" + doins -r data + + einstalldocs +} diff --git a/app-emacs/package-lint/package-lint-0.21.ebuild b/app-emacs/package-lint/package-lint-0.21.ebuild deleted file mode 100644 index 4f573a3330fa..000000000000 --- a/app-emacs/package-lint/package-lint-0.21.ebuild +++ /dev/null @@ -1,35 +0,0 @@ -# Copyright 1999-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -NEED_EMACS=26.1 - -inherit elisp - -DESCRIPTION="Linting library for Emacs Lisp package metadata" -HOMEPAGE="https://github.com/purcell/package-lint/" -SRC_URI="https://github.com/purcell/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" - -LICENSE="GPL-3+" -KEYWORDS="~amd64 ~x86" -SLOT="0" - -PATCHES=( "${FILESDIR}"/${PN}-symbol-info-data-directory.patch ) -SITEFILE="50${PN}-gentoo.el" - -src_prepare() { - elisp_src_prepare - - sed "s|@SITEETC@|${EPREFIX}${SITEETC}/${PN}|" -i ${PN}.el || die -} - -src_install() { - elisp-install ${PN} ${PN}{,-flymake}.el{,c} - elisp-make-site-file "${SITEFILE}" - - insinto ${SITEETC}/${PN} - doins -r data - - einstalldocs -}
