aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-12-09 04:12:11 +0000
committerSam James <sam@gentoo.org>2021-12-09 04:12:11 +0000
commit22633c2132444e7398db9d6de3fcfdd6e4cf4639 (patch)
tree6c956f8e9626156f267aadea20ac4a3944eff250 /quickstart/text.xml
parentquickstart: add Oxford comma (minor grammar fix) (diff)
downloaddevmanual-22633c2132444e7398db9d6de3fcfdd6e4cf4639.tar.gz
devmanual-22633c2132444e7398db9d6de3fcfdd6e4cf4639.tar.bz2
devmanual-22633c2132444e7398db9d6de3fcfdd6e4cf4639.zip
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 <sam@gentoo.org>
Diffstat (limited to 'quickstart/text.xml')
-rw-r--r--quickstart/text.xml16
1 files 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.
<body>
<p>
-Often we need to apply patches. This is done in the <c>src_prepare</c>
-function using the <c>eapply</c> helper function. To use <c>eapply</c>
+Often we need to apply patches. This is done either by defining the
+<c>PATCHES</c> array in global scope or in the <c>src_prepare</c> function
+using the <c>eapply</c> helper function. To use <c>eapply</c>,
one must use EAPI 7. Here's <c>app-misc/detox/detox-1.1.0.ebuild</c>:
</p>
@@ -266,7 +267,7 @@ one must use EAPI 7. Here's <c>app-misc/detox/detox-1.1.0.ebuild</c>:
# 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? ( &gt;=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 \