summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Ammerlaan <andrewammerlaan@gentoo.org>2021-12-07 18:06:52 +0100
committerAndrew Ammerlaan <andrewammerlaan@gentoo.org>2021-12-07 18:06:52 +0100
commit84639be4799b6b9703051c21dd9ff58ed3bb99e0 (patch)
tree6efdb74224ff9e3dc3d389c5d7ba9cf42a1bddd9 /media-video/droidcam/droidcam-1.8.1-r1.ebuild
parentdev-perl/Specio: Stabilize 0.470.0 ppc64, #828458 (diff)
downloadgentoo-84639be4799b6b9703051c21dd9ff58ed3bb99e0.tar.gz
gentoo-84639be4799b6b9703051c21dd9ff58ed3bb99e0.tar.bz2
gentoo-84639be4799b6b9703051c21dd9ff58ed3bb99e0.zip
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@gentoo.org>
Diffstat (limited to 'media-video/droidcam/droidcam-1.8.1-r1.ebuild')
-rw-r--r--media-video/droidcam/droidcam-1.8.1-r1.ebuild4
1 files 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 d8148256078..ffafcc099bd 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
}