summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakov Smolić <jsmolic@gentoo.org>2021-10-22 09:00:58 +0200
committerJakov Smolić <jsmolic@gentoo.org>2021-10-22 10:21:10 +0200
commit5c6f51815587626a90718810e4b77ced5fa96984 (patch)
treec621f2ab19b60932fb15469bfc11da38558f955f /media-video
parentmedia-video/dvbsnoop: Port to EAPI 8 (diff)
downloadgentoo-5c6f51815587626a90718810e4b77ced5fa96984.tar.gz
gentoo-5c6f51815587626a90718810e4b77ced5fa96984.tar.bz2
gentoo-5c6f51815587626a90718810e4b77ced5fa96984.zip
media-video/isight-firmware-tools: Port to EAPI 8
Signed-off-by: Jakov Smolić <jsmolic@gentoo.org>
Diffstat (limited to 'media-video')
-rw-r--r--media-video/isight-firmware-tools/files/isight-firmware-tools-1.5.90-build-O0.patch12
-rw-r--r--media-video/isight-firmware-tools/isight-firmware-tools-1.6-r2.ebuild (renamed from media-video/isight-firmware-tools/isight-firmware-tools-1.6-r1.ebuild)33
2 files changed, 26 insertions, 19 deletions
diff --git a/media-video/isight-firmware-tools/files/isight-firmware-tools-1.5.90-build-O0.patch b/media-video/isight-firmware-tools/files/isight-firmware-tools-1.5.90-build-O0.patch
index 8308cf6860b2..2b8697079e16 100644
--- a/media-video/isight-firmware-tools/files/isight-firmware-tools-1.5.90-build-O0.patch
+++ b/media-video/isight-firmware-tools/files/isight-firmware-tools-1.5.90-build-O0.patch
@@ -1,5 +1,5 @@
---- src/export.c
-+++ src/export.c
+--- a/src/export.c
++++ b/src/export.c
@@ -35,6 +35,8 @@
#include <glib/gi18n.h>
#include <glib/gstdio.h>
@@ -9,8 +9,8 @@
/* OPTIONS */
static gchar *input = NULL;
static gchar *output = "isight.ihx";
---- src/extract.c
-+++ src/extract.c
+--- a/src/extract.c
++++ b/src/extract.c
@@ -36,6 +36,8 @@
#include <glib/gi18n.h>
#include <glib/gstdio.h>
@@ -20,8 +20,8 @@
/*
* Foreach file identified by their sha1sum, we store the offset where
* the firmware begin in the file.
---- src/load.h
-+++ src/load.h
+--- a/src/load.h
++++ b/src/load.h
@@ -36,6 +36,8 @@
#include <glib.h>
#include <usb.h>
diff --git a/media-video/isight-firmware-tools/isight-firmware-tools-1.6-r1.ebuild b/media-video/isight-firmware-tools/isight-firmware-tools-1.6-r2.ebuild
index 1d92625a87c5..e588027bf107 100644
--- a/media-video/isight-firmware-tools/isight-firmware-tools-1.6-r1.ebuild
+++ b/media-video/isight-firmware-tools/isight-firmware-tools-1.6-r2.ebuild
@@ -1,10 +1,11 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=5
-inherit epatch versionator udev
+EAPI=8
-MY_MAJORV="$(get_version_component_range 1).6"
+inherit udev
+
+MY_MAJORV="$(ver_cut 1).6"
DESCRIPTION="Extract, load or export firmware for the iSight webcams"
HOMEPAGE="https://launchpad.net/isight-firmware-tools"
@@ -13,20 +14,26 @@ SRC_URI="https://launchpad.net/${PN}/main/${MY_MAJORV}/+download/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 x86"
-IUSE=""
-RDEPEND=">=dev-libs/glib-2.14:2
+RDEPEND="
+ >=dev-libs/glib-2.14:2
dev-libs/libgcrypt:0
virtual/libusb:0
- virtual/udev"
-DEPEND="${RDEPEND}
+ virtual/udev
+"
+DEPEND="${RDEPEND}"
+BDEPEND="
>=dev-util/intltool-0.40
sys-apps/texinfo
- virtual/pkgconfig"
+ virtual/pkgconfig
+"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-1.5.90-build-O0.patch
+)
src_prepare() {
- # Fix build with -O0, bug #221325
- epatch "${FILESDIR}"/${PN}-1.5.90-build-O0.patch
+ default
sed -i \
-e "s:@udevdir@:$(get_udevdir):" \
@@ -45,10 +52,10 @@ src_install() {
rulesdir="$(get_udevdir)"/rules.d \
install
- mv -vf "${D}/$(get_udevdir)"/rules.d/{isight.rules,70-isight.rules}
+ mv -vf "${ED}/$(get_udevdir)"/rules.d/{isight.rules,70-isight.rules} || die
- dodoc AUTHORS ChangeLog HOWTO NEWS README
- rm -f "${D}"/usr/share/doc/${PF}/HOWTO
+ einstalldocs
+ rm "${ED}"/usr/share/doc/${PF}/HOWTO || die
}
pkg_postinst() {