summaryrefslogtreecommitdiff
path: root/media-video/isight-firmware-tools
diff options
context:
space:
mode:
Diffstat (limited to 'media-video/isight-firmware-tools')
-rw-r--r--media-video/isight-firmware-tools/Manifest6
-rw-r--r--media-video/isight-firmware-tools/files/isight-firmware-tools-1.5.90-build-O0.patch32
-rw-r--r--media-video/isight-firmware-tools/isight-firmware-tools-1.6-r1.ebuild59
-rw-r--r--media-video/isight-firmware-tools/metadata.xml10
4 files changed, 107 insertions, 0 deletions
diff --git a/media-video/isight-firmware-tools/Manifest b/media-video/isight-firmware-tools/Manifest
new file mode 100644
index 000000000000..d6c4916f5217
--- /dev/null
+++ b/media-video/isight-firmware-tools/Manifest
@@ -0,0 +1,6 @@
+AUX isight-firmware-tools-1.5.90-build-O0.patch 598 SHA256 237476772a4dc8fb81d89ffbb209832ab9f0b7aae9fbd45ed2e4f77f5f75cd2a SHA512 f2b781a94f29ab5c539a8b6f0da9abf554e79ae84825d1d3deb63fcb3844efe36db73c831e359b3436a1b08a8a16218aa1dfff941f07f67e3e7007c71e67cc39 WHIRLPOOL a64a8d39c1ced45242686debfcba9e5d59d975c58f1e3b4b7c966c61ed309da55eeed0eec877f9a892bacf29853d223ab24bb5d2de00011f513a182f195b5fe0
+DIST isight-firmware-tools-1.6.tar.gz 229122 SHA256 3181973db8a1cadd68785cd81959c8e1e9dc8110342ec1639a50db53d82a367e SHA512 1d72e10d1ff97665c96113c70786307e0b5d1cd24cd8f5fcd15ddd7b608ff1596023139a41f550a9fd288bd8968f69d348b433f5a739179fc0e3f8fa3e143fea WHIRLPOOL ac29469f205a3150f8ef0d95fc7c3b113559f325b172a8c4ccb1758195da32024b278d3e46b2eb899eca4e140758ef6b2381086b7f6e5c837adbb5b4bd3d520f
+EBUILD isight-firmware-tools-1.6-r1.ebuild 1587 SHA256 c5cd073c5d49cd213a079524a78202b767787cbab64716e5d15c9af8cfb157b1 SHA512 32ed20190d789e19c33fb7021d9c973b3c6bfe866064b29fd8f76b396adc6bc6284726b283b0af74429d1fcdf608c1b43bc4a2952887c92883f9f4bcfbd3715a WHIRLPOOL 1d68d7a1c4e88b9217feeefb89df9aaa9dc1a29d835689b9aa7078adb7272121e970fea2db5d5da6cf231f610a657634dd035481f5b07063cfa16081fc467eb6
+MISC ChangeLog 2470 SHA256 4d35dc6676317d3b4f7a5385d12e2895962dc8b0883680f5b4d9f87c04353608 SHA512 f8e7c2f97f25c8ea62b21b60329f2cc4fbf707029dd9c187967edad0cabda07699af02292cbfa302ea274eab3ae2633f84e503f941115788891ec44dc0950552 WHIRLPOOL d174a3e469bf48072053480a58b6eed2ecfaf332a81b5f3980e224ea35f956c9c1d31daef0e9f0ce0ce2e0c34337c33800179dc119e4f52dfa4122ba68c24ebf
+MISC ChangeLog-2015 4981 SHA256 78e9a6f9b0699b1d191a83eb8f486e1dfa078cdfb0ecbfad39deb6b496c42113 SHA512 2655e45418277f41ee93133524175184f88cf5fbb699134631ff83959936afabe2dcddd98e9949eb33abdecec606a83f7aed8f0b37f0d3d60429d06608920ed3 WHIRLPOOL bacf7fd9592d657bbd098d7e303833a5503da39f705ee5dc1af895d3ddeef555c06dde78c2958eb791c985122acdf30b5558da67802b7ddf7885d204854cb843
+MISC metadata.xml 303 SHA256 764c403e9542e9926f492f2f997007ccb9c4c1af1127aec7ead80acd0a8d681d SHA512 5c956a27b99e7c8b7a3dfd46b3ed4dc3f397cbb19c4d2d77f26d71f8f1db051471bb88abb80a4ea876849cddf766767386988fbd232fb47c502bebbfc477b6f0 WHIRLPOOL 922f5628e178d937d33284c3315504c7ef9610deffc91e6a41831334996774a52e52549f1f09964bd9a647d8beb9013eb3fba68854f1bf948ca7692e1de3b1fd
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
new file mode 100644
index 000000000000..8308cf6860b2
--- /dev/null
+++ b/media-video/isight-firmware-tools/files/isight-firmware-tools-1.5.90-build-O0.patch
@@ -0,0 +1,32 @@
+--- src/export.c
++++ src/export.c
+@@ -35,6 +35,8 @@
+ #include <glib/gi18n.h>
+ #include <glib/gstdio.h>
+
++#include <locale.h>
++
+ /* OPTIONS */
+ static gchar *input = NULL;
+ static gchar *output = "isight.ihx";
+--- src/extract.c
++++ src/extract.c
+@@ -36,6 +36,8 @@
+ #include <glib/gi18n.h>
+ #include <glib/gstdio.h>
+
++#include <locale.h>
++
+ /*
+ * Foreach file identified by their sha1sum, we store the offset where
+ * the firmware begin in the file.
+--- src/load.h
++++ src/load.h
+@@ -36,6 +36,8 @@
+ #include <glib.h>
+ #include <usb.h>
+
++#include <locale.h>
++
+ #ifndef _LOAD_H_
+ #define _LOAD_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-r1.ebuild
new file mode 100644
index 000000000000..2959f96fc526
--- /dev/null
+++ b/media-video/isight-firmware-tools/isight-firmware-tools-1.6-r1.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils versionator udev
+
+MY_MAJORV="$(get_version_component_range 1).6"
+
+DESCRIPTION="Extract, load or export firmware for the iSight webcams"
+HOMEPAGE="https://launchpad.net/isight-firmware-tools"
+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
+ dev-libs/libgcrypt:0
+ virtual/libusb:0
+ virtual/udev"
+DEPEND="${RDEPEND}
+ >=dev-util/intltool-0.40
+ sys-apps/texinfo
+ virtual/pkgconfig"
+
+src_prepare() {
+ # Fix build with -O0, bug #221325
+ epatch "${FILESDIR}"/${PN}-1.5.90-build-O0.patch
+
+ sed -i \
+ -e "s:@udevdir@:$(get_udevdir):" \
+ src/isight.rules.in.in || die
+}
+
+src_configure() {
+ # https://bugs.launchpad.net/isight-firmware-tools/+bug/243255
+ econf --docdir=/usr/share/doc/${PF}
+}
+
+src_install() {
+ emake \
+ DESTDIR="${D}" \
+ libudevdir="$(get_udevdir)" \
+ rulesdir="$(get_udevdir)"/rules.d \
+ install
+
+ mv -vf "${D}/$(get_udevdir)"/rules.d/{isight.rules,70-isight.rules}
+
+ dodoc AUTHORS ChangeLog HOWTO NEWS README
+ rm -f "${D}"/usr/share/doc/${PF}/HOWTO
+}
+
+pkg_postinst() {
+ elog "You need to extract your firmware prior to being able to loading it"
+ elog "ift-extract --apple-driver /macos/System/Library/Extensions/IOUSBFamily.kext/Contents/PlugIns/AppleUSBVideoSupport.kext/Contents/MacOS/AppleUSBVideoSupport"
+ elog "If you do not have OSX you can get AppleUSBVideoSupport from"
+ elog "http://www.mediafire.com/?81xtkqyttjt"
+}
diff --git a/media-video/isight-firmware-tools/metadata.xml b/media-video/isight-firmware-tools/metadata.xml
new file mode 100644
index 000000000000..1de5fa78159e
--- /dev/null
+++ b/media-video/isight-firmware-tools/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>eva@gentoo.org</email>
+ </maintainer>
+ <upstream>
+ <remote-id type="launchpad">isight-firmware-tools</remote-id>
+ </upstream>
+</pkgmetadata>