public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] proj/devmanual:master commit in: ebuild-writing/functions/src_prepare/
@ 2016-04-27 16:27 Göktürk Yüksek
  0 siblings, 0 replies; 4+ messages in thread
From: Göktürk Yüksek @ 2016-04-27 16:27 UTC (permalink / raw
  To: gentoo-commits

commit:     254f88c6369a54657f4afa87c85769ec518574bd
Author:     Göktürk Yüksek <gokturk <AT> binghamton <DOT> edu>
AuthorDate: Sun Apr 24 05:19:57 2016 +0000
Commit:     Göktürk Yüksek <gokturk <AT> binghamton <DOT> edu>
CommitDate: Wed Apr 27 15:56:11 2016 +0000
URL:        https://gitweb.gentoo.org/proj/devmanual.git/commit/?id=254f88c6

ebuild-writing/functions/src_prepare: add links to subsections

Signed-off-by: Göktürk Yüksek <gokturk <AT> binghamton.edu>

 ebuild-writing/functions/src_prepare/text.xml | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/ebuild-writing/functions/src_prepare/text.xml b/ebuild-writing/functions/src_prepare/text.xml
index 3d9030c..932190e 100644
--- a/ebuild-writing/functions/src_prepare/text.xml
+++ b/ebuild-writing/functions/src_prepare/text.xml
@@ -57,6 +57,18 @@ src_prepare() {
 </body>
 </section>
 
+<section>
+<title><c>src_prepare</c> Processes</title>
+<body>
+<p>
+The following subsections cover different topics which often occur
+when writing <c>src_prepare</c> functions.
+</p>
+
+<contentsTree/>
+</body>
+</section>
+
 </chapter>
 <include href="epatch/"/>
 <include href="autopackage/"/>


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [gentoo-commits] proj/devmanual:master commit in: ebuild-writing/functions/src_prepare/
@ 2018-06-22 18:25 Ulrich Müller
  0 siblings, 0 replies; 4+ messages in thread
From: Ulrich Müller @ 2018-06-22 18:25 UTC (permalink / raw
  To: gentoo-commits

commit:     8e52b04d8749afb4f06be7f8fe8e62632e21cb50
Author:     Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
AuthorDate: Sat Jun 16 20:39:32 2018 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Mon Jun 18 19:17:39 2018 +0000
URL:        https://gitweb.gentoo.org/proj/devmanual.git/commit/?id=8e52b04d

ebuild-writing/functions/src_prepare: modernize src_prepare()

 ebuild-writing/functions/src_prepare/text.xml | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/ebuild-writing/functions/src_prepare/text.xml b/ebuild-writing/functions/src_prepare/text.xml
index 2a30581..2a8cb84 100644
--- a/ebuild-writing/functions/src_prepare/text.xml
+++ b/ebuild-writing/functions/src_prepare/text.xml
@@ -48,8 +48,10 @@ src_prepare() {
 <body>
 <codesample lang="ebuild">
 src_prepare() {
-	epatch "${FILESDIR}/${PV}/${P}-fix-bogosity.patch"
-	use pam &amp;&amp; epatch "${FILESDIR}/${PV}/${P}-pam.patch"
+	eapply "${FILESDIR}/${PV}/${P}-fix-bogosity.patch"
+	eapply "${FILESDIR}/${PV}/${P}-pam.patch"
+
+	eapply_user
 
 	sed -i -e 's/"ispell"/"aspell"/' src/defaults.h || die "Sed failed!"
 }


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [gentoo-commits] proj/devmanual:master commit in: ebuild-writing/functions/src_prepare/
@ 2018-10-24 13:01 Brian Evans
  0 siblings, 0 replies; 4+ messages in thread
From: Brian Evans @ 2018-10-24 13:01 UTC (permalink / raw
  To: gentoo-commits

commit:     404265ebc3cd062402d737dc120f872c3330fa86
Author:     Brian Evans <grknight <AT> gentoo <DOT> org>
AuthorDate: Fri Sep 14 17:08:48 2018 +0000
Commit:     Brian Evans <grknight <AT> gentoo <DOT> org>
CommitDate: Wed Oct 24 12:51:35 2018 +0000
URL:        https://gitweb.gentoo.org/proj/devmanual.git/commit/?id=404265eb

src_prepare: Show new EAPI 6 default_src_prepare

Signed-off-by: Brian Evans <grknight <AT> gentoo.org>

 ebuild-writing/functions/src_prepare/text.xml | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/ebuild-writing/functions/src_prepare/text.xml b/ebuild-writing/functions/src_prepare/text.xml
index 2a8cb84..4ff2074 100644
--- a/ebuild-writing/functions/src_prepare/text.xml
+++ b/ebuild-writing/functions/src_prepare/text.xml
@@ -40,6 +40,19 @@ src_prepare() {
 	true;
 }
 </codesample>
+<p>
+Beginning with EAPI=6, the src_prepare function gained a new default implementation:
+</p>
+<codesample lang="ebuild">
+src_prepare() {  
+    if declare -p PATCHES | grep -q "^declare -a "; then  
+        [[ -n ${PATCHES[@]} ]] && eapply "${PATCHES[@]}"  
+    else  
+        [[ -n ${PATCHES} ]] && eapply ${PATCHES}  
+    fi  
+    eapply_user  
+}
+</codesample>
 </body>
 </section>
 


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [gentoo-commits] proj/devmanual:master commit in: ebuild-writing/functions/src_prepare/
@ 2019-03-19 18:28 Brian Evans
  0 siblings, 0 replies; 4+ messages in thread
From: Brian Evans @ 2019-03-19 18:28 UTC (permalink / raw
  To: gentoo-commits

commit:     247eac25f939ec546b4e0a152b32e2c1cad31f4c
Author:     Brian Evans <grknight <AT> gentoo <DOT> org>
AuthorDate: Tue Mar 19 18:05:20 2019 +0000
Commit:     Brian Evans <grknight <AT> gentoo <DOT> org>
CommitDate: Tue Mar 19 18:05:20 2019 +0000
URL:        https://gitweb.gentoo.org/proj/devmanual.git/commit/?id=247eac25

Add note about eapply_user in src_prepare

Thanks to Thomas Schneider <bugs.gentoo.org <AT> qsuscs.de> for this text

Closes: https://bugs.gentoo.org/657322
Signed-off-by: Brian Evans <grknight <AT> gentoo.org>

 ebuild-writing/functions/src_prepare/text.xml | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/ebuild-writing/functions/src_prepare/text.xml b/ebuild-writing/functions/src_prepare/text.xml
index 0425bb1..7ab3aa9 100644
--- a/ebuild-writing/functions/src_prepare/text.xml
+++ b/ebuild-writing/functions/src_prepare/text.xml
@@ -53,6 +53,10 @@ src_prepare() {
     eapply_user
 }
 </codesample>
+<note>
+With EAPI=6, you must call <c>eapply_user</c> or <c>default</c> if you define
+<c>src_prepare</c>!
+</note>
 </body>
 </section>
 


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-03-19 18:28 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-10-24 13:01 [gentoo-commits] proj/devmanual:master commit in: ebuild-writing/functions/src_prepare/ Brian Evans
  -- strict thread matches above, loose matches on Subject: below --
2019-03-19 18:28 Brian Evans
2018-06-22 18:25 Ulrich Müller
2016-04-27 16:27 Göktürk Yüksek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox