From 82fc9160e97aebfc0f341215a27c7f799163174c Mon Sep 17 00:00:00 2001 From: Maciej Barć Date: Sat, 26 Aug 2023 20:14:46 +0200 Subject: app-emacs/cape: use elisp-org-export-to MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maciej Barć --- app-emacs/cape/cape-0.17-r1.ebuild | 40 ++++++++++++++++++++++++++++++++++++++ app-emacs/cape/cape-0.17.ebuild | 34 -------------------------------- app-emacs/cape/cape-9999.ebuild | 25 ++++++++++++------------ 3 files changed, 53 insertions(+), 46 deletions(-) create mode 100644 app-emacs/cape/cape-0.17-r1.ebuild delete mode 100644 app-emacs/cape/cape-0.17.ebuild (limited to 'app-emacs/cape') diff --git a/app-emacs/cape/cape-0.17-r1.ebuild b/app-emacs/cape/cape-0.17-r1.ebuild new file mode 100644 index 000000000000..42896ab1f608 --- /dev/null +++ b/app-emacs/cape/cape-0.17-r1.ebuild @@ -0,0 +1,40 @@ +# Copyright 2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +NEED_EMACS=27.1 + +inherit elisp + +DESCRIPTION="Completion At Point Extensions" +HOMEPAGE="https://github.com/minad/cape/" + +if [[ ${PV} == 9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/minad/${PN}.git" +else + SRC_URI="https://github.com/minad/${PN}/archive/refs/tags/${PV}.tar.gz + -> ${P}.tar.gz" + KEYWORDS="~amd64" +fi + +LICENSE="GPL-3+" +SLOT="0" + +RDEPEND=" + >=app-emacs/compat-29.1.4.0 +" +DEPEND=" + ${RDEPEND} +" + +DOCS=( CHANGELOG.org README.org ) +ELISP_TEXINFO="${PN}.texi" +SITEFILE="50${PN}-gentoo.el" + +src_compile() { + elisp-org-export-to texinfo README.org + elisp_src_compile + elisp-make-autoload-file +} diff --git a/app-emacs/cape/cape-0.17.ebuild b/app-emacs/cape/cape-0.17.ebuild deleted file mode 100644 index 16b63bbdfda8..000000000000 --- a/app-emacs/cape/cape-0.17.ebuild +++ /dev/null @@ -1,34 +0,0 @@ -# Copyright 2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -NEED_EMACS=27.1 - -inherit elisp - -DESCRIPTION="Completion At Point Extensions" -HOMEPAGE="https://github.com/minad/cape/" - -if [[ ${PV} == 9999 ]]; then - inherit git-r3 - EGIT_REPO_URI="https://github.com/minad/${PN}.git" -else - SRC_URI="https://github.com/minad/${PN}/archive/refs/tags/${PV}.tar.gz - -> ${P}.tar.gz" - KEYWORDS="~amd64" -fi - -LICENSE="GPL-3+" -SLOT="0" - -RDEPEND=">=app-emacs/compat-29.1.4.0" -DEPEND="${RDEPEND}" - -DOCS=( CHANGELOG.org README.org ) -SITEFILE="50${PN}-gentoo.el" - -src_install() { - elisp-make-autoload-file - elisp_src_install -} diff --git a/app-emacs/cape/cape-9999.ebuild b/app-emacs/cape/cape-9999.ebuild index f7f6e19f558b..42896ab1f608 100644 --- a/app-emacs/cape/cape-9999.ebuild +++ b/app-emacs/cape/cape-9999.ebuild @@ -4,19 +4,19 @@ EAPI=8 NEED_EMACS=27.1 + inherit elisp DESCRIPTION="Completion At Point Extensions" -HOMEPAGE="https://github.com/minad/cape" +HOMEPAGE="https://github.com/minad/cape/" if [[ ${PV} == 9999 ]]; then inherit git-r3 - EGIT_REPO_URI="https://github.com/minad/cape.git" + EGIT_REPO_URI="https://github.com/minad/${PN}.git" else - # Recompressed from ELPA. - SRC_URI="https://dev.gentoo.org/~arsen/${P}.tar.xz" + SRC_URI="https://github.com/minad/${PN}/archive/refs/tags/${PV}.tar.gz + -> ${P}.tar.gz" KEYWORDS="~amd64" - ELISP_REMOVE="${PN}-pkg.el" fi LICENSE="GPL-3+" @@ -25,15 +25,16 @@ SLOT="0" RDEPEND=" >=app-emacs/compat-29.1.4.0 " -DEPEND="${RDEPEND}" +DEPEND=" + ${RDEPEND} +" +DOCS=( CHANGELOG.org README.org ) +ELISP_TEXINFO="${PN}.texi" SITEFILE="50${PN}-gentoo.el" -src_install() { +src_compile() { + elisp-org-export-to texinfo README.org + elisp_src_compile elisp-make-autoload-file - elisp_src_install - - if [[ ${PV} != 9999 ]]; then - doinfo cape.info - fi } -- cgit v1.2.3-65-gdbad