commit:     2b8ca2477464d99ddabb7c1da6df8138d44917e7
Author:     Pacho Ramos <pacho <AT> gentoo <DOT> org>
AuthorDate: Thu Sep 17 20:58:33 2020 +0000
Commit:     Pacho Ramos <pacho <AT> gentoo <DOT> org>
CommitDate: Thu Sep 17 20:58:33 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2b8ca247

sci-chemistry/vmd: Allow to apply user patches in plugins

Bug: https://bugs.gentoo.org/show_bug.cgi?id=741978
Package-Manager: Portage-3.0.7, Repoman-3.0.1
Signed-off-by: Pacho Ramos <pacho <AT> gentoo.org>

 sci-chemistry/vmd/vmd-1.9.4_alpha43.ebuild | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/sci-chemistry/vmd/vmd-1.9.4_alpha43.ebuild 
b/sci-chemistry/vmd/vmd-1.9.4_alpha43.ebuild
index 6ff1210c542..8ffb5a09007 100644
--- a/sci-chemistry/vmd/vmd-1.9.4_alpha43.ebuild
+++ b/sci-chemistry/vmd/vmd-1.9.4_alpha43.ebuild
@@ -78,11 +78,15 @@ pkg_nofetch() {
 }
 
 src_prepare() {
+       # Apply user patches from ${WORKDIR} to allow patching on patches
+       # subdir too
+       cd "${WORKDIR}"
        xdg_src_prepare
 
        use cuda && cuda_sanitize
 
-       cd "${WORKDIR}"/plugins || die
+       # Prepare plugins
+       cd plugins || die
 
        sed '/^.SILENT/d' -i $(find -name Makefile)
 

Reply via email to