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 (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id BB302158009 for ; Thu, 29 Jun 2023 17:47:50 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 85420E07F0; Thu, 29 Jun 2023 17:47:31 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 554CBE07E6 for ; Thu, 29 Jun 2023 17:47:31 +0000 (UTC) From: =?UTF-8?q?Ulrich=20M=C3=BCller?= To: gentoo-dev@lists.gentoo.org Cc: =?UTF-8?q?Ulrich=20M=C3=BCller?= Subject: [gentoo-dev] [PATCH 2/2] elisp.eclass: Update elisp_src_install Date: Thu, 29 Jun 2023 19:47:00 +0200 Message-ID: <20230629174708.15232-2-ulm@gentoo.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230629174708.15232-1-ulm@gentoo.org> References: <20230629174708.15232-1-ulm@gentoo.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail 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: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Archives-Salt: 338c315a-0716-45c2-81a4-b76637e9bf12 X-Archives-Hash: d11c7a5f2c2f684a1ec31872275f9bea Call the new elisp-make-site-file function when no explicit site-init file is found. Signed-off-by: Ulrich Müller --- eclass/elisp.eclass | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/eclass/elisp.eclass b/eclass/elisp.eclass index 1ac1a2dbfabf..72e623a12179 100644 --- a/eclass/elisp.eclass +++ b/eclass/elisp.eclass @@ -166,7 +166,11 @@ elisp_src_test() { elisp_src_install() { elisp-install ${PN} *.el *.elc if [[ -n ${SITEFILE} ]]; then - elisp-site-file-install "${FILESDIR}/${SITEFILE}" + if [[ -f "${FILESDIR}/${SITEFILE}" ]]; then + elisp-site-file-install "${FILESDIR}/${SITEFILE}" + else + elisp-make-site-file "${SITEFILE}" + fi fi if [[ -n ${ELISP_TEXINFO} ]]; then set -- ${ELISP_TEXINFO} -- 2.41.0