diff options
author | Ulrich Müller <ulm@gentoo.org> | 2024-11-19 17:07:59 +0100 |
---|---|---|
committer | Ulrich Müller <ulm@gentoo.org> | 2024-11-19 17:07:59 +0100 |
commit | 51fa9a67edbc27e2e8e8b57926a9eabfc271baa2 (patch) | |
tree | 02dcb2db32e6c9f58e06ba4051b83670c2834738 /app-emacs | |
parent | sys-devel/gcc: keyword 13.3.1_p20241115 (diff) | |
download | gentoo-51fa9a67edbc27e2e8e8b57926a9eabfc271baa2.tar.gz gentoo-51fa9a67edbc27e2e8e8b57926a9eabfc271baa2.tar.bz2 gentoo-51fa9a67edbc27e2e8e8b57926a9eabfc271baa2.zip |
app-emacs/ess: Make pdf and html docs use-conditional
Suggested-by: Hans de Graaff <graaff@gentoo.org>
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
Diffstat (limited to 'app-emacs')
-rw-r--r-- | app-emacs/ess/ess-24.01.1-r1.ebuild | 81 |
1 files changed, 81 insertions, 0 deletions
diff --git a/app-emacs/ess/ess-24.01.1-r1.ebuild b/app-emacs/ess/ess-24.01.1-r1.ebuild new file mode 100644 index 000000000000..04e8ad38343b --- /dev/null +++ b/app-emacs/ess/ess-24.01.1-r1.ebuild @@ -0,0 +1,81 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit elisp readme.gentoo-r1 + +DESCRIPTION="Emacs Speaks Statistics" +HOMEPAGE="https://ess.r-project.org/ + https://github.com/emacs-ess/ESS/" + +if [[ "${PV}" == *9999* ]] ; then + inherit git-r3 + + EGIT_REPO_URI="https://github.com/emacs-ess/${PN^^}.git" +else + SRC_URI="https://github.com/emacs-ess/${PN^^}/archive/refs/tags/v${PV}.tar.gz + -> ${P}.tar.gz" + S="${WORKDIR}/${PN^^}-${PV}" + + KEYWORDS="~amd64 ~arm ~ppc ~x86 ~amd64-linux ~x86-linux" +fi + +LICENSE="GPL-2+ GPL-3+ Texinfo-manual" +SLOT="0" +IUSE="doc" + +BDEPEND=" + doc? ( + app-text/texi2html + dev-texlive/texlive-fontsextra + dev-texlive/texlive-latex + dev-texlive/texlive-latexextra + dev-texlive/texlive-mathscience + dev-texlive/texlive-plaingeneric + virtual/latex-base + )" + +SITEFILE="50${PN}-gentoo.el" + +src_prepare() { + elisp_src_prepare + + sed -e "s|font-lock-reference-face|font-lock-constant-face|g" \ + -i lisp/*.el || die +} + +src_compile() { + local -x BYTECOMPFLAGS="-L lisp -L lisp/obsolete" + + elisp-compile lisp/*.el lisp/obsolete/*.el + emake autoloads + emake -C doc all + use doc && emake -C doc html pdf +} + +src_test() { + elisp-test-ert . -L lisp -L test -l test/ess-test.el +} + +src_install() { + # Version >=18 doesn't install *.el files any more #685978 + elisp-install "${PN}" lisp/*.{el,elc} lisp/obsolete/*.{el,elc} + elisp-make-site-file "${SITEFILE}" "${PN}" "(load \"ess-autoloads\" nil t)" + + insinto "${SITEETC}/${PN}" + doins -r etc/* + + doinfo ./doc/info/ess.info + + local DOC_CONTENTS="\ + Please see /usr/share/doc/${PF} for the complete documentation." + readme.gentoo_create_doc + + dodoc ChangeLog NEWS ONEWS README + if use doc; then + dodoc doc/{ess,readme}.pdf + docinto html + dodoc doc/html/{ess,news,readme}.html + fi +} |