From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-1106291-garchives=archives.gentoo.org@lists.gentoo.org> Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 5D17C138334 for <garchives@archives.gentoo.org>; Sat, 17 Aug 2019 22:08:57 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 87F21E0923; Sat, 17 Aug 2019 22:08:51 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 2DFF7E0922 for <gentoo-commits@lists.gentoo.org>; Sat, 17 Aug 2019 22:08:51 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 3901F349CF7 for <gentoo-commits@lists.gentoo.org>; Sat, 17 Aug 2019 22:08:50 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 89CC4778 for <gentoo-commits@lists.gentoo.org>; Sat, 17 Aug 2019 22:08:45 +0000 (UTC) From: "Ulrich Müller" <ulm@gentoo.org> 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" <ulm@gentoo.org> Message-ID: <1566077227.06c1c0f8718db24298c7868f65bf133577988584.ulm@gentoo> Subject: [gentoo-commits] repo/proj/emacs:master commit in: eclass/ X-VCS-Repository: repo/proj/emacs X-VCS-Files: eclass/elisp.eclass X-VCS-Directories: eclass/ X-VCS-Committer: ulm X-VCS-Committer-Name: Ulrich Müller X-VCS-Revision: 06c1c0f8718db24298c7868f65bf133577988584 X-VCS-Branch: master Date: Sat, 17 Aug 2019 22:08:45 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: dc413361-6269-4271-805e-64bcdd8e8369 X-Archives-Hash: 2ee3a193f118b48063e1775e539096bb commit: 06c1c0f8718db24298c7868f65bf133577988584 Author: Ulrich Müller <ulm <AT> gentoo <DOT> org> AuthorDate: Sat Aug 17 21:27:07 2019 +0000 Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org> CommitDate: Sat Aug 17 21:27:07 2019 +0000 URL: https://gitweb.gentoo.org/repo/proj/emacs.git/commit/?id=06c1c0f8 elisp.eclass: Sync from gentoo repo. Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org> eclass/elisp.eclass | 35 +++++++++++++---------------------- 1 file changed, 13 insertions(+), 22 deletions(-) diff --git a/eclass/elisp.eclass b/eclass/elisp.eclass index 0f07a3e..c885345 100644 --- a/eclass/elisp.eclass +++ b/eclass/elisp.eclass @@ -1,4 +1,4 @@ -# Copyright 1999-2018 Gentoo Foundation +# Copyright 1999-2019 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 # @ECLASS: elisp.eclass @@ -9,6 +9,7 @@ # Jeremy Maitin-Shepard <jbms@attbi.com> # Christian Faulhammer <fauli@gentoo.org> # Ulrich Müller <ulm@gentoo.org> +# @SUPPORTED_EAPIS: 4 5 6 7 # @BLURB: Eclass for Emacs Lisp packages # @DESCRIPTION: # @@ -66,21 +67,17 @@ inherit elisp-common case ${EAPI:-0} in - 0|1|2|3|4|5) inherit epatch ;; + 4|5) inherit epatch ;; 6|7) ;; - *) die "${ECLASS}: EAPI ${EAPI} not supported" ;; + *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;; esac -case ${EAPI:-0} in - 0|1) EXPORT_FUNCTIONS src_{unpack,compile,install} \ - pkg_{setup,postinst,postrm} ;; - *) EXPORT_FUNCTIONS src_{unpack,prepare,configure,compile,install} \ - pkg_{setup,postinst,postrm} ;; -esac +EXPORT_FUNCTIONS src_{unpack,prepare,configure,compile,install} \ + pkg_{setup,postinst,postrm} RDEPEND=">=virtual/emacs-${NEED_EMACS:-23}" -case ${EAPI:-0} in - 0|1|2|3|4|5|6) DEPEND="${RDEPEND}" ;; +case ${EAPI} in + 4|5|6) DEPEND="${RDEPEND}" ;; *) BDEPEND="${RDEPEND}" ;; esac @@ -101,8 +98,7 @@ elisp_pkg_setup() { # @FUNCTION: elisp_src_unpack # @DESCRIPTION: # Unpack the sources; also handle the case of a single *.el file in -# WORKDIR for packages distributed that way. For EAPIs without -# src_prepare, call elisp_src_prepare. +# WORKDIR for packages distributed that way. elisp_src_unpack() { [[ -n ${A} ]] && unpack ${A} @@ -111,11 +107,6 @@ elisp_src_unpack() { mv ${P}.el ${PN}.el || die [[ -d ${S} ]] || S=${WORKDIR} fi - - case ${EAPI:-0} in - 0|1) [[ -d ${S} ]] && cd "${S}" - elisp_src_prepare ;; - esac } # @FUNCTION: elisp_src_prepare @@ -135,15 +126,15 @@ elisp_src_prepare() { else die "Cannot find ${patch}" fi - case ${EAPI:-0} in - 0|1|2|3|4|5) epatch "${file}" ;; + case ${EAPI} in + 4|5) epatch "${file}" ;; *) eapply "${file}" ;; esac done # apply any user patches - case ${EAPI:-0} in - 0|1|2|3|4|5) epatch_user ;; + case ${EAPI} in + 4|5) epatch_user ;; *) eapply_user ;; esac