commit: a166928ab188ff3b108d9a2651217dd96828b282
Author: Sebastian Engel <sighunter <AT> gmx <DOT> de>
AuthorDate: Wed Aug 28 11:13:20 2024 +0000
Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Sat Sep 14 19:10:58 2024 +0000
URL: https://gitweb.gentoo.org/proj/devmanual.git/commit/?id=a166928a
src_unpack/rpm-sources: Replace src_unpack override example code
This replaces the code example with a snippet of how it is currently used in
::gentoo/dev-util/intel-ocl-sdk/intel-ocl-sdk-18.1.0.015.ebuild
because the old example code had multiple issues.
Signed-off-by: Sebastian Engel <sighunter <AT> gmx.de>
Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>
ebuild-writing/functions/src_unpack/rpm-sources/text.xml | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/ebuild-writing/functions/src_unpack/rpm-sources/text.xml
b/ebuild-writing/functions/src_unpack/rpm-sources/text.xml
index 0029c53..99c932e 100644
--- a/ebuild-writing/functions/src_unpack/rpm-sources/text.xml
+++ b/ebuild-writing/functions/src_unpack/rpm-sources/text.xml
@@ -25,10 +25,8 @@ manner such as:
<codesample lang="ebuild">
src_unpack() {
- rpm_src_unpack ${A}
- cd "${S}"
-
- use ssl && eapply "${FILESDIR}/${PV}/${P}-ssl.patch"
+ unpack ${A}
+ rpm_unpack "${S}/rpm/intel-openclrt-${PV}-${ALT_PV}.x86_64.rpm"
}
</codesample>