From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-dev+bounces-89743-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 40C60138334
	for <garchives@archives.gentoo.org>; Wed, 18 Dec 2019 11:09:16 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 9B41EE090E;
	Wed, 18 Dec 2019 11:08:43 +0000 (UTC)
Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183])
	(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 1C7BBE0891
	for <gentoo-dev@lists.gentoo.org>; Wed, 18 Dec 2019 11:08:43 +0000 (UTC)
Received: from a1i15 (a1i15.kph.uni-mainz.de [134.93.134.92])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	(Authenticated sender: ulm)
	by smtp.gentoo.org (Postfix) with ESMTPSA id 560D234D9E8
	for <gentoo-dev@lists.gentoo.org>; Wed, 18 Dec 2019 11:08:41 +0000 (UTC)
From: Ulrich =?utf-8?Q?M=C3=BCller?= <ulm@gentoo.org>
To: <gentoo-dev@lists.gentoo.org>
Subject: [gentoo-dev] [PATCH 2/3] elisp-common.eclass: Update documentation.
In-Reply-To: <cover.1576663643.git.ulm@gentoo.org>
References: <cover.1576663643.git.ulm@gentoo.org>
Message-Id: <fee8485011a11f45b10f0d0d2e237885accaaa77.1576663643.git.ulm@gentoo.org>
Date: Wed, 18 Dec 2019 12:08:38 +0100
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)
Precedence: bulk
List-Post: <mailto:gentoo-dev@lists.gentoo.org>
List-Help: <mailto:gentoo-dev+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-dev+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-dev+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-dev.gentoo.org>
X-BeenThere: gentoo-dev@lists.gentoo.org
Reply-to: gentoo-dev@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-=";
	micalg=pgp-sha256; protocol="application/pgp-signature"
X-Archives-Salt: 0cc3ec52-da33-48eb-91b7-405d825df820
X-Archives-Hash: 9da5f803d4810ab55996eea80c8145e2

--=-=-=
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

After the package split between emacs and emacs-vcs is gone, packages
can depend on app-editors/emacs directly.

Signed-off-by: Ulrich M=C3=BCller <ulm@gentoo.org>
=2D--
 eclass/elisp-common.eclass | 22 +++++++++-------------
 1 file changed, 9 insertions(+), 13 deletions(-)

diff --git a/eclass/elisp-common.eclass b/eclass/elisp-common.eclass
index 6f79caee2f0..47e33ac28ae 100644
=2D-- a/eclass/elisp-common.eclass
+++ b/eclass/elisp-common.eclass
@@ -24,26 +24,26 @@
 # When relying on the emacs USE flag, you need to add
 #
 # @CODE
=2D# 	emacs? ( virtual/emacs )
+# 	emacs? ( app-editors/emacs:* )
 # @CODE
 #
 # to your DEPEND/RDEPEND line and use the functions provided here to
 # bring the files to the correct locations.
 #
=2D# If your package requires a minimum Emacs version, e.g. Emacs 24, then
=2D# the dependency should be on >=3Dvirtual/emacs-24 instead.  Because the
=2D# user can select the Emacs executable with eselect, you should also
=2D# make sure that the active Emacs version is sufficient.  This can be
=2D# tested with function elisp-need-emacs(), which would typically be
=2D# called from pkg_setup(), as in the following example:
+# If your package requires a minimum Emacs version, e.g. Emacs 26.1,
+# then the dependency should be on >=3Dapp-editors/emacs-26.1:* instead.
+# Because the user can select the Emacs executable with eselect, you
+# should also make sure that the active Emacs version is sufficient.
+# This can be tested with function elisp-need-emacs(), which would
+# typically be called from pkg_setup(), as in the following example:
 #
 # @CODE
=2D# 	elisp-need-emacs 24 || die "Emacs version too low"
+# 	elisp-need-emacs 26.1 || die "Emacs version too low"
 # @CODE
 #
 # Please note that such tests should be limited to packages that are
 # known to fail with lower Emacs versions; the standard case is to
=2D# depend on virtual/emacs without version.
+# depend on app-editors/emacs without version.
 #
 # @ROFF .SS
 # src_compile() usage:
@@ -152,10 +152,6 @@
 #
 # When having optional Emacs support, you should prepend "use emacs &&"
 # to above calls of elisp-site-regen().
=2D# Don't use "has_version virtual/emacs"!  When unmerging the state of
=2D# the emacs USE flag is taken from the package database and not from the
=2D# environment, so it is no problem when you unset USE=3Demacs between
=2D# merge and unmerge of a package.
=20
 case ${EAPI:-0} in
 	4|5|6) inherit eapi7-ver ;;
=2D-=20
2.24.1

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQEzBAEBCAAdFiEEZlHkP3TnuTbxrN0HwwkGhRxhwnMFAl36CLYACgkQwwkGhRxh
wnNMOwf+N6r9+YcNJ5GUXGj5uNBTN4a3gZLpDGkiTmS1e8btLoSwNPDXgpH4Ze9Y
p82CkJ+Fm08PjVsZrgul4832uoDTsHsacJ1ZZbaq1UshWOWwgEFyKD30sKwddVWx
TvkforLClAxfA7Nia3QSPvbQbJxt1nhHvNfFrsJLODR5U5xlBWisqXEa9K0i9sWd
OKb9ua3RyxCC4h1WBJi/En+/jBbWEzR2RD0ZFv/QplamdIVCcOIamZmH2KHQJSV4
h7dGaUwYYcS4ugBaldCUj6VkpcucqdGbv20N1F1MTHwrt4iLSnj3l5u2yCv0tj+h
OCDbggK5BxN9tRg16myCqOaM1TRKNg==
=5L51
-----END PGP SIGNATURE-----
--=-=-=--