From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id ED0411581EC for ; Tue, 19 Nov 2024 16:10:36 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 34C95E07D7; Tue, 19 Nov 2024 16:10:36 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 1ACDAE07D7 for ; Tue, 19 Nov 2024 16:10:36 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 21EDC340C40 for ; Tue, 19 Nov 2024 16:10:35 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 200FD1295 for ; Tue, 19 Nov 2024 16:10:33 +0000 (UTC) From: "Ulrich Müller" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Ulrich Müller" Message-ID: <1732032479.51fa9a67edbc27e2e8e8b57926a9eabfc271baa2.ulm@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-emacs/ess/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-emacs/ess/ess-24.01.1-r1.ebuild X-VCS-Directories: app-emacs/ess/ X-VCS-Committer: ulm X-VCS-Committer-Name: Ulrich Müller X-VCS-Revision: 51fa9a67edbc27e2e8e8b57926a9eabfc271baa2 X-VCS-Branch: master Date: Tue, 19 Nov 2024 16:10:33 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 0392cb06-5ca5-4313-be1e-2e0e5c897d94 X-Archives-Hash: 158fe72b7c4f1cede9e166a2153ea686 commit: 51fa9a67edbc27e2e8e8b57926a9eabfc271baa2 Author: Ulrich Müller gentoo org> AuthorDate: Tue Nov 19 16:07:59 2024 +0000 Commit: Ulrich Müller gentoo org> CommitDate: Tue Nov 19 16:07:59 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=51fa9a67 app-emacs/ess: Make pdf and html docs use-conditional Suggested-by: Hans de Graaff gentoo.org> Signed-off-by: Ulrich Müller gentoo.org> app-emacs/ess/ess-24.01.1-r1.ebuild | 81 +++++++++++++++++++++++++++++++++++++ 1 file changed, 81 insertions(+) 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 +}