commit:     84639be4799b6b9703051c21dd9ff58ed3bb99e0
Author:     Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
AuthorDate: Tue Dec  7 17:06:52 2021 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
CommitDate: Tue Dec  7 17:06:52 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=84639be4

media-video/droidcam: patch before sed

Closes: https://bugs.gentoo.org/828514
Package-Manager: Portage-3.0.28, Repoman-3.0.3
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>

 media-video/droidcam/droidcam-1.8.1-r1.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/media-video/droidcam/droidcam-1.8.1-r1.ebuild 
b/media-video/droidcam/droidcam-1.8.1-r1.ebuild
index d81482560789..ffafcc099bd0 100644
--- a/media-video/droidcam/droidcam-1.8.1-r1.ebuild
+++ b/media-video/droidcam/droidcam-1.8.1-r1.ebuild
@@ -51,15 +51,15 @@ PATCHES="${FILESDIR}/${PN}-makefile-fixes.patch"
 
 src_prepare() {
        if ! use gtk; then
-               sed -i -e '/cflags gtk+/d' Makefile || die
                default
+               sed -i -e '/cflags gtk+/d' Makefile || die
        else
+               xdg_src_prepare
                # remove path and extension from Icon and Exec entry
                sed -i -e 's/Icon=\/opt\/droidcam-icon.png/Icon=droidcam/g' \
                        -e 's/\/usr\/local\/bin\/droidcam/droidcam/g' \
                        droidcam.desktop || die
                sed -i -e 
's%/opt/droidcam-icon.png%/usr/share/icons/hicolor/96x96/apps/droidcam.png%g' 
src/droidcam.c || die
-               xdg_src_prepare
        fi
 }
 

Reply via email to