summaryrefslogtreecommitdiff
path: root/dev-libs/libcec
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-libs/libcec
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-libs/libcec')
-rw-r--r--dev-libs/libcec/Manifest7
-rw-r--r--dev-libs/libcec/libcec-3.1.0-r1.ebuild78
-rw-r--r--dev-libs/libcec/libcec-4.0.2.ebuild81
-rw-r--r--dev-libs/libcec/metadata.xml17
4 files changed, 183 insertions, 0 deletions
diff --git a/dev-libs/libcec/Manifest b/dev-libs/libcec/Manifest
new file mode 100644
index 000000000000..545e612c4eb5
--- /dev/null
+++ b/dev-libs/libcec/Manifest
@@ -0,0 +1,7 @@
+DIST libcec-3.1.0.tar.gz 1097121 SHA256 09109d21a1b03f42c9e341d12600f2e4c41038d640269fa75408e2d36126f921 SHA512 e06f65d85ee268ec23380186d11e53f3e477bf25b955c9314cc13555eedeffee902dc8a0f3005248250c584760ab68c461b087b305dc4ef463da628ee1ab433b WHIRLPOOL 05e60255d00a897a53f042263ae73f61999875fe508a2fc6334cc00b62442d7e991a0f6a742acab440119ccdd34dfc842d97efe4fcb1a697181e76e3a0b414f8
+DIST libcec-4.0.2.tar.gz 334995 SHA256 b8b8dd31f3ebdd5472f03ab7d401600ea0d959b1288b9ca24bf457ef60e2ba27 SHA512 7bb80965cd1bef713f59bff136dc4a7f1172c4a9bdb8e2f59c6bcc5b74110848c0b2912263280ea68177908a688127e8d7208fc43ce6e65d589343b85395a0bb WHIRLPOOL 6895cf138bfb3e4d81bfbea9269b16d505a066c980d0e040a11fef2573ff5746a37013fd6a222eceea8a65e7ddffc97a3bf05b3cb032af262cd923ba699d95b8
+EBUILD libcec-3.1.0-r1.ebuild 2048 SHA256 a757d366d9e453a0c9013b14b375ce331ca90d0d95fe65f05828ab7f276d5dd2 SHA512 e6d11e0d455c0e277b864ab2def6209ded30718d8939032576d1ee5d5370e743adfe44545bde1869342775b0d13f2b64152cc0f134564bd920a54ce7d69ade3c WHIRLPOOL 2820e67aa657ba7f21ac78ae5bfc2d4e073dae8cfa02fb9d44cc84408317406c7787c3b27613da2ca56752b2ebe6c0617b8e2e33f2303b9e50d7d98af516c8d4
+EBUILD libcec-4.0.2.ebuild 2112 SHA256 a67a6f72b5bdd4bd7e884bf9ec54a8fc7b05d0c911ffb11c028a2ac21bb36747 SHA512 5bb45988de38b50974c2d52053733c0861cb2416957a83208178b620cd9938ac0af4e5fc8467d0c0c9e9049214e61fae3321effd89ea203c84303b604b5b6a7d WHIRLPOOL 01341ec0313527d2643aed83e5922b38b161ba10624da6226c204a26b2e5c4d5d7d3ecddb31dc73b37b72c7d4b9994ac67f089ab51704e3ce925cc7f674d05f4
+MISC ChangeLog 5644 SHA256 43ef402ce991ac657e3a2c20a95b3479742ff1702d15c79b106fd0255da53d32 SHA512 75bcaba27493a04ec4e64e7084814948fe1b2eceff75d98fe21f75425cf15af4a4259fbe8935be58cb242dad49db26ab332246afee98935e57a02c82f739d82f WHIRLPOOL ee2b52853a25c27b8225687f726e69d37aa09c7ea9ce9fe0a70a873eb670dfcaa8bd539d4a7e9075759262b1e8b44621ad1e711e352f034e3a9e06ab5490f8ce
+MISC ChangeLog-2015 4378 SHA256 1125451396b5d1e3a81abd28c63c8f23b866a1f6248a022a52559d4c4e2a7ed7 SHA512 07a2aa58140d5721dd369983abf78490b0cdd3d1bc08adff6678a0c01ac1575f1caf744a3ea9576afba189bd36a671e9fdb3b903d280000d1b6c46d91a7dc00a WHIRLPOOL 059f22bafd1eaa2b2e0a934d9bd0ef99b22b84328be9523f547eecf0e6e10716736785d8c34ab800cd5736ac8f9df7607b0b169b352d6df7210403b950820f56
+MISC metadata.xml 662 SHA256 d13674c30bd576f407573aa40b1c54bdbc9bd6fe8b2f975af2aa0b6fda74780a SHA512 5abf50f31e2a18c7a5fce12414dd74efab13be9ea00a70b84384de8f95722f327d7446f51369b7feb33616bc0ff182cbbb7dd0be2855f5b54aee4e3c69dbc59e WHIRLPOOL 95b1e7457f98380fa257f06a1abe90f7ea241474b6fe3155d415e44507db7cbd3c88769cf47db0d1abb1bbacf98338ac590226ac6fb8b7d7ce97d216da7afb61
diff --git a/dev-libs/libcec/libcec-3.1.0-r1.ebuild b/dev-libs/libcec/libcec-3.1.0-r1.ebuild
new file mode 100644
index 000000000000..46b752cba094
--- /dev/null
+++ b/dev-libs/libcec/libcec-3.1.0-r1.ebuild
@@ -0,0 +1,78 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python{2_7,3_4,3_5} )
+
+inherit cmake-utils linux-info python-single-r1 toolchain-funcs
+
+DESCRIPTION="Library for communicating with the Pulse-Eight USB HDMI-CEC Adaptor"
+HOMEPAGE="http://libcec.pulse-eight.com"
+SRC_URI="https://github.com/Pulse-Eight/${PN}/archive/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~arm x86"
+IUSE="cubox exynos python raspberry-pi +xrandr"
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+
+RDEPEND="virtual/udev
+ >=dev-libs/libplatform-2.0.0
+ raspberry-pi? ( >=media-libs/raspberrypi-userland-0_pre20160305-r1 )
+ xrandr? ( x11-libs/libXrandr )
+ python? ( ${PYTHON_DEPS} )"
+DEPEND="${RDEPEND}
+ python? ( dev-lang/swig )
+ virtual/pkgconfig"
+
+CONFIG_CHECK="~USB_ACM"
+
+S="${WORKDIR}/${PN}-${P}"
+
+pkg_pretend() {
+ linux-info_pkg_setup
+}
+
+pkg_setup() {
+ linux-info_pkg_setup
+ use python && python-single-r1_pkg_setup
+}
+
+src_prepare() {
+ cmake-utils_src_prepare
+
+ # Do not hardcode the python libpath #577612
+ sed -i \
+ -e '/DESTINATION/s:lib/python${PYTHON_VERSION}/dist-packages:${PYTHON_SITEDIR}:' \
+ src/libcec/cmake/CheckPlatformSupport.cmake || die
+
+ use python || cmake_comment_add_subdirectory "src/pyCecClient"
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DSKIP_PYTHON_WRAPPER=$(usex python)
+ -DHAVE_EXYNOS_API=$(usex exynos)
+ -DHAVE_TDA955X_API=$(usex cubox)
+ -DHAVE_RPI_API=$(usex raspberry-pi)
+ )
+ use python && mycmakeargs+=(
+ -DPYTHON_SITEDIR="$(python_get_sitedir)"
+ )
+
+ # raspberrypi-userland itself does not provide .pc file so using
+ # bcm_host.pc instead
+ use raspberry-pi && mycmakeargs+=(
+ -DRPI_INCLUDE_DIR=$( $(tc-getPKG_CONFIG) --variable=includedir bcm_host) \
+ -DRPI_LIB_DIR=$( $(tc-getPKG_CONFIG) --variable=libdir bcm_host)
+ )
+
+ cmake-utils_src_configure
+}
+
+pkg_postinst() {
+ elog "You will need to ensure the user running your CEC client has"
+ elog "read/write access to the device. You can ensure this by adding"
+ elog "them to the uucp group"
+}
diff --git a/dev-libs/libcec/libcec-4.0.2.ebuild b/dev-libs/libcec/libcec-4.0.2.ebuild
new file mode 100644
index 000000000000..6c8fc121c6aa
--- /dev/null
+++ b/dev-libs/libcec/libcec-4.0.2.ebuild
@@ -0,0 +1,81 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python{2_7,3_4,3_5} )
+MY_PV=${PV/_p/-}
+MY_P=${PN}-${MY_PV}
+
+inherit cmake-utils linux-info python-single-r1 toolchain-funcs
+
+DESCRIPTION="Library for communicating with the Pulse-Eight USB HDMI-CEC Adaptor"
+HOMEPAGE="http://libcec.pulse-eight.com"
+SRC_URI="https://github.com/Pulse-Eight/${PN}/archive/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~arm x86"
+IUSE="cubox exynos python raspberry-pi +xrandr"
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+
+RDEPEND="virtual/udev
+ >=dev-libs/libplatform-2.0.0
+ sys-libs/ncurses:=
+ raspberry-pi? ( >=media-libs/raspberrypi-userland-0_pre20160305-r1 )
+ xrandr? ( x11-libs/libXrandr )
+ python? ( ${PYTHON_DEPS} )"
+DEPEND="${RDEPEND}
+ python? ( dev-lang/swig )
+ virtual/pkgconfig"
+
+CONFIG_CHECK="~USB_ACM"
+
+S="${WORKDIR}/${PN}-${MY_P}"
+
+pkg_pretend() {
+ linux-info_pkg_setup
+}
+
+pkg_setup() {
+ linux-info_pkg_setup
+ use python && python-single-r1_pkg_setup
+}
+
+src_prepare() {
+ cmake-utils_src_prepare
+
+ # Do not hardcode the python libpath #577612
+ sed -i \
+ -e '/DESTINATION/s:lib/python${PYTHON_VERSION}/dist-packages:${PYTHON_SITEDIR}:' \
+ src/libcec/cmake/CheckPlatformSupport.cmake || die
+
+ use python || cmake_comment_add_subdirectory "src/pyCecClient"
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DSKIP_PYTHON_WRAPPER=$(usex !python)
+ -DHAVE_EXYNOS_API=$(usex exynos)
+ -DHAVE_TDA995X_API=$(usex cubox)
+ -DHAVE_RPI_API=$(usex raspberry-pi)
+ )
+ use python && mycmakeargs+=(
+ -DPYTHON_SITEDIR="$(python_get_sitedir)"
+ )
+
+ # raspberrypi-userland itself does not provide .pc file so using
+ # bcm_host.pc instead
+ use raspberry-pi && mycmakeargs+=(
+ -DRPI_INCLUDE_DIR=$( $(tc-getPKG_CONFIG) --variable=includedir bcm_host) \
+ -DRPI_LIB_DIR=$( $(tc-getPKG_CONFIG) --variable=libdir bcm_host)
+ )
+
+ cmake-utils_src_configure
+}
+
+pkg_postinst() {
+ elog "You will need to ensure the user running your CEC client has"
+ elog "read/write access to the device. You can ensure this by adding"
+ elog "them to the uucp group"
+}
diff --git a/dev-libs/libcec/metadata.xml b/dev-libs/libcec/metadata.xml
new file mode 100644
index 000000000000..29b2c8ce0c4b
--- /dev/null
+++ b/dev-libs/libcec/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>thev00d00@gentoo.org</email>
+ <name>Ian Whyman</name>
+ </maintainer>
+ <use>
+ <flag name="cubox">Enable support for enable support for the TDA995x</flag>
+ <flag name="exynos">Enable support for Exynos chipsets</flag>
+ <flag name="raspberry-pi">Enable support for the Raspberry Pi</flag>
+ <flag name="xrandr">Enable detection of active HDMI using xrandr extensions</flag>
+ </use>
+ <upstream>
+ <remote-id type="github">Pulse-Eight/libcec</remote-id>
+ </upstream>
+</pkgmetadata>