media-libs/libuvc: new ebuild

Closes: https://github.com/gentoo/gentoo/pull/5769
This commit is contained in:
reagentoo
2017-09-22 23:32:57 +03:00
committed by Michał Górny
parent 8d5da17d92
commit 88a417b98f
3 changed files with 58 additions and 0 deletions

View File

@@ -0,0 +1 @@
DIST libuvc-0.0.6.tar.gz 95598 SHA256 42175a53c1c704365fdc782b44233925e40c9344fbb7f942181c1090f06e2873 SHA512 d8e52f5d062d2b4561562c9dc017d7f8d9d6734c4284e54b7bc58f9fc968cc8aec51dde938e8911a5c71d0c49fca4478c2fe08c9b7041d4fa26d7c6e1e653f1e WHIRLPOOL 470114ab1596ae8119a8d67c31d393f4919b85e42230027db58565e4369f322e5e7a6604bf29336e5c7bb7243714dca8a3d037854007cca1ac6606aa59161ecc

View File

@@ -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
}

View File

@@ -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>