summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorreagentoo <reagentoo@gmail.com>2017-09-22 23:32:57 +0300
committerMichał Górny <mgorny@gentoo.org>2017-10-18 22:28:28 +0200
commit88a417b98f96ce1a5ee586a00baa7ceb4ca9414d (patch)
treeb0e1389e8f5e3f49695ef38d14dd5ff17fc5b93a /media-libs
parentdev-perl/Monitoring-Plugin: stable 0.390.0 for sparc (thanks to Rolf Eike Beer) (diff)
downloadgentoo-88a417b98f96ce1a5ee586a00baa7ceb4ca9414d.tar.gz
gentoo-88a417b98f96ce1a5ee586a00baa7ceb4ca9414d.tar.bz2
gentoo-88a417b98f96ce1a5ee586a00baa7ceb4ca9414d.zip
media-libs/libuvc: new ebuild
Closes: https://github.com/gentoo/gentoo/pull/5769
Diffstat (limited to 'media-libs')
-rw-r--r--media-libs/libuvc/Manifest1
-rw-r--r--media-libs/libuvc/libuvc-0.0.6.ebuild42
-rw-r--r--media-libs/libuvc/metadata.xml15
3 files changed, 58 insertions, 0 deletions
diff --git a/media-libs/libuvc/Manifest b/media-libs/libuvc/Manifest
new file mode 100644
index 000000000000..90b336b35eff
--- /dev/null
+++ b/media-libs/libuvc/Manifest
@@ -0,0 +1 @@
+DIST libuvc-0.0.6.tar.gz 95598 SHA256 42175a53c1c704365fdc782b44233925e40c9344fbb7f942181c1090f06e2873 SHA512 d8e52f5d062d2b4561562c9dc017d7f8d9d6734c4284e54b7bc58f9fc968cc8aec51dde938e8911a5c71d0c49fca4478c2fe08c9b7041d4fa26d7c6e1e653f1e WHIRLPOOL 470114ab1596ae8119a8d67c31d393f4919b85e42230027db58565e4369f322e5e7a6604bf29336e5c7bb7243714dca8a3d037854007cca1ac6606aa59161ecc
diff --git a/media-libs/libuvc/libuvc-0.0.6.ebuild b/media-libs/libuvc/libuvc-0.0.6.ebuild
new file mode 100644
index 000000000000..80fde0f10f9a
--- /dev/null
+++ b/media-libs/libuvc/libuvc-0.0.6.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cmake-utils
+
+DESCRIPTION="A cross-platform library for USB video devices, built atop libusb"
+HOMEPAGE="https://int80k.com/libuvc/"
+SRC_URI="https://github.com/ktossell/libuvc/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+KEYWORDS="~amd64 ~x86"
+LICENSE="BSD"
+SLOT="0"
+IUSE=""
+
+RDEPEND="
+ virtual/jpeg:62
+ virtual/libusb:1
+ virtual/udev
+"
+DEPEND="${RDEPEND}"
+
+CMAKE_MIN_VERSION="2.8.0"
+
+DOCS=( changelog.txt README.md )
+
+src_prepare() {
+ sed -r -i \
+ -e 's/(\$\{CMAKE_INSTALL_PREFIX\}\/)lib/\1'"$(get_libdir)"'/' \
+ CMakeLists.txt || die
+
+ cmake-utils_src_prepare
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DCMAKE_BUILD_TARGET=Shared
+ )
+
+ cmake-utils_src_configure
+}
diff --git a/media-libs/libuvc/metadata.xml b/media-libs/libuvc/metadata.xml
new file mode 100644
index 000000000000..af18713bf7b4
--- /dev/null
+++ b/media-libs/libuvc/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>reagentoo@gmail.com</email>
+ <name>Dmitry Baranov</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">ktossell/libuvc</remote-id>
+ </upstream>
+</pkgmetadata>