commit:     c8db74269be5c0e0517ea4e205f303e2d18bc45b
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri May  2 23:25:58 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri May  2 23:25:58 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c8db7426

app-misc/lirc: restore conditional for Debian patching

This isn't used in the current version but it's part of the *_p infra
in the ebuild.

Signed-off-by: Sam James <sam <AT> gentoo.org>

 app-misc/lirc/lirc-0.10.2-r1.ebuild | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/app-misc/lirc/lirc-0.10.2-r1.ebuild 
b/app-misc/lirc/lirc-0.10.2-r1.ebuild
index 3ab3e910806a..5fc386b55363 100644
--- a/app-misc/lirc/lirc-0.10.2-r1.ebuild
+++ b/app-misc/lirc/lirc-0.10.2-r1.ebuild
@@ -94,6 +94,10 @@ pkg_setup() {
 src_prepare() {
        default
 
+       if [[ -d "${WORKDIR}"/debian/patches ]] ; then
+               eapply $(sed -e 's:^:../debian/patches/:' 
../debian/patches/series || die)
+       fi
+
        # https://bugs.gentoo.org/922209
        sed -i -e "/^libpython / 
s|\$(libdir)/python\$(PYTHON_VERSION)|$(python_get_stdlib)|" Makefile.am || die
        sed -i -e "/^libpython / 
s|\$(libdir)/python\$(PYTHON_VERSION)|$(python_get_stdlib)|" tools/Makefile.am 
|| die

Reply via email to