]> Pileus Git - ~andy/sunrise/commitdiff
media-libs/unicap: New ebuild for media-libs/unicap-0.9.3 (bug #175881)
authorMatt Whitlock (whitslack) <matt@whitlock.name>
Tue, 3 Mar 2009 23:08:17 +0000 (23:08 +0000)
committerMatt Whitlock (whitslack) <matt@whitlock.name>
Tue, 3 Mar 2009 23:08:17 +0000 (23:08 +0000)
svn path=/sunrise/; revision=8011

media-libs/unicap/ChangeLog [new file with mode: 0644]
media-libs/unicap/Manifest [new file with mode: 0644]
media-libs/unicap/metadata.xml [new file with mode: 0644]
media-libs/unicap/unicap-0.9.3.ebuild [new file with mode: 0644]

diff --git a/media-libs/unicap/ChangeLog b/media-libs/unicap/ChangeLog
new file mode 100644 (file)
index 0000000..8413519
--- /dev/null
@@ -0,0 +1,8 @@
+# ChangeLog for media-libs/unicap
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+  03 Mar 2009; Matt Whitlock (whitslack) <matt@whitlock.name>
+  +unicap-0.9.3.ebuild, +metadata.xml:
+  New ebuild for media-libs/unicap-0.9.3 (bug #175881)
+
diff --git a/media-libs/unicap/Manifest b/media-libs/unicap/Manifest
new file mode 100644 (file)
index 0000000..660cb40
--- /dev/null
@@ -0,0 +1,4 @@
+DIST unicap-0.9.3.tar.gz 1324790 RMD160 dd2b687197ac81534d2adbc5db8dcc2bdc3e3aad SHA1 b9d1580a9e10d15a8ab86400a0200b72e582dc4d SHA256 bf619a4675aa4b7cec9c3a664e1fcd9d869facf393e4e9e51e52490db98d6585
+EBUILD unicap-0.9.3.ebuild 1482 RMD160 f8955d69e54ca144f7180ea483932e3b0877d501 SHA1 a728f791dc01f218f35978313190a0db929e40f2 SHA256 dfc30aaf061ed2ef8ee01a8bae247ed5a48feb85f5107103b318ef023aa8645f
+MISC ChangeLog 275 RMD160 3b0f69f547f2c411b64a437fed4f8ca33a88777e SHA1 ec7e705330aaac86a7e6bfe9d2b164120ceaf56e SHA256 82dc9d3ed8e5207fb0d628be6e0f3d0b25aa648d9a0c365fb7cfd6e21e57e375
+MISC metadata.xml 419 RMD160 49d7b407aa6a3a5ec52499595f9f144b038ff92b SHA1 cd80866e2e1ff8b13671e365fe44e123d3126fc3 SHA256 fe48ed89d7e3147e6d393c3656e081f6270876ba2ee87508fe22e66cafa34180
diff --git a/media-libs/unicap/metadata.xml b/media-libs/unicap/metadata.xml
new file mode 100644 (file)
index 0000000..b7c5936
--- /dev/null
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+       <herd>no-herd</herd>
+       <maintainer>
+               <email>maintainer-wanted@gentoo.org</email>
+       </maintainer>
+       <longdescription>unicap provides a uniform interface to video capture
+       devices. It allows applications to use any supported video capture device
+       via a single API.</longdescription>
+</pkgmetadata>
diff --git a/media-libs/unicap/unicap-0.9.3.ebuild b/media-libs/unicap/unicap-0.9.3.ebuild
new file mode 100644 (file)
index 0000000..eec0af3
--- /dev/null
@@ -0,0 +1,53 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="2"
+
+DESCRIPTION="The uniform API for image acquisition devices"
+HOMEPAGE="http://unicap-imaging.org/"
+SRC_URI="http://unicap-imaging.org/download/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="alsa debug gtk ieee1394 nls png theora threads v4l v4l2"
+
+DEPEND="alsa? ( media-libs/alsa-lib )
+       gtk? ( >=x11-libs/gtk+-2.0 )
+       ieee1394? ( >=sys-libs/libraw1394-0.10.0 )
+       theora? ( media-libs/libtheora )"
+RDEPEND=${DEPEND}
+
+src_configure() {
+       local myconf
+
+       if use debug ; then
+               myconf="${myconf} --enable-thing --enable-debug-unicap
+                       --enable-debug-ucil --enable-debug-thing"
+               use gtk && myconf="${myconf} --enable-debug-unicapgtk"
+               use ieee1394 && myconf="${myconf} --enable-debug-dcam
+                       --enable-debug-vid21394"
+               use v4l && myconf="${myconf} --enable-debug-v4l"
+               use v4l2 && myconf="${myconf} --enable-debug-v4l2"
+       fi
+
+       econf ${myconf} \
+               $(use_enable alsa ucil-alsa) \
+               $(use_enable gtk unicapgtk) \
+               $(use_enable ieee1394 dcam) \
+               $(use_enable ieee1394 vid21394) \
+               $(use_enable nls) \
+               $(use_enable png ucil-png) \
+               $(use_enable theora ucil-theora) \
+               $(use_enable threads unicap-threads) \
+               $(use_enable v4l) \
+               $(use_enable v4l2) \
+               --enable-ucil
+}
+
+src_install() {
+       emake DESTDIR="${D}" install || die "emake install failed"
+       dodoc AUTHORS ChangeLog NEWS README README.troubleshooting \
+               || die "dodoc failed"
+}