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 37C1E158086 for ; Thu, 9 Dec 2021 04:12:51 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 850C92BC007; Thu, 9 Dec 2021 04:12:50 +0000 (UTC) Received: from smtp.gentoo.org (dev.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) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 71CB42BC007 for ; Thu, 9 Dec 2021 04:12:50 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 7ED6F34372B for ; Thu, 9 Dec 2021 04:12:49 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 18ECD1DC for ; Thu, 9 Dec 2021 04:12:48 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1639023131.22633c2132444e7398db9d6de3fcfdd6e4cf4639.sam@gentoo> Subject: [gentoo-commits] proj/devmanual:master commit in: quickstart/ X-VCS-Repository: proj/devmanual X-VCS-Files: quickstart/text.xml X-VCS-Directories: quickstart/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 22633c2132444e7398db9d6de3fcfdd6e4cf4639 X-VCS-Branch: master Date: Thu, 9 Dec 2021 04:12:48 +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: d010d4d0-4dba-442c-8c86-1bc6e4a275cf X-Archives-Hash: 6901c9e56b46993c0c46929d500b0d22 commit: 22633c2132444e7398db9d6de3fcfdd6e4cf4639 Author: Sam James gentoo org> AuthorDate: Thu Dec 9 04:12:11 2021 +0000 Commit: Sam James gentoo org> CommitDate: Thu Dec 9 04:12:11 2021 +0000 URL: https://gitweb.gentoo.org/proj/devmanual.git/commit/?id=22633c21 quickstart: mention PATCHES, use .patch and not .diff - We expect contributions to use .patch and not .diff nowadays. - Mention PATCHES so people are aware it's an option. Signed-off-by: Sam James gentoo.org> quickstart/text.xml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/quickstart/text.xml b/quickstart/text.xml index fb9461e..caff4e5 100644 --- a/quickstart/text.xml +++ b/quickstart/text.xml @@ -257,8 +257,9 @@ for some more complex examples.

-Often we need to apply patches. This is done in the src_prepare -function using the eapply helper function. To use eapply +Often we need to apply patches. This is done either by defining the +PATCHES array in global scope or in the src_prepare function +using the eapply helper function. To use eapply, one must use EAPI 7. Here's app-misc/detox/detox-1.1.0.ebuild:

@@ -266,7 +267,7 @@ one must use EAPI 7. Here's app-misc/detox/detox-1.1.0.ebuild: # Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=7 +EAPI=8 DESCRIPTION="detox safely removes spaces and strange characters from filenames" HOMEPAGE="http://detox.sourceforge.net/" @@ -387,11 +388,10 @@ DEPEND="${RDEPEND}" BDEPEND="dev-util/pkgconfig nls? ( >=sys-devel/gettext-0.12.1 )" -src_prepare() { - eapply "${FILESDIR}"/${PN}-namespace.diff \ - "${FILESDIR}"/${PN}-procmime.diff - eapply_user -} +PATCHES=( + "${FILESDIR}"/${PN}-namespace.patch + "${FILESDIR}"/${PN}-procmime.patch +) src_configure() { econf \