[gentoo-commits] repo/gentoo:master commit in: dev-libs/libcec/

2024-05-28 Thread Arthur Zamarin
commit: 2d1807e50ac856a7c69588451fadc1050d29b304
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Tue May 28 18:19:34 2024 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Tue May 28 18:19:34 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2d1807e5

dev-libs/libcec: Stabilize 6.0.2-r2 x86, #932949

Signed-off-by: Arthur Zamarin  gentoo.org>

 dev-libs/libcec/libcec-6.0.2-r2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/libcec/libcec-6.0.2-r2.ebuild 
b/dev-libs/libcec/libcec-6.0.2-r2.ebuild
index 1e281a0fa561..eb9dc1969acd 100644
--- a/dev-libs/libcec/libcec-6.0.2-r2.ebuild
+++ b/dev-libs/libcec/libcec-6.0.2-r2.ebuild
@@ -16,7 +16,7 @@ S="${WORKDIR}/${PN}-${MY_P}"
 
 LICENSE="GPL-2+"
 SLOT="0"
-KEYWORDS="amd64 ~arm arm64 ~riscv ~x86"
+KEYWORDS="amd64 ~arm arm64 ~riscv x86"
 IUSE="cubox exynos kernel-cec python tools udev +xrandr"
 REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
 



[gentoo-commits] repo/gentoo:master commit in: dev-libs/libcec/

2024-05-28 Thread Sam James
commit: 27c93140ec98b60b39d854515666c12145bc898b
Author: Sam James  gentoo  org>
AuthorDate: Tue May 28 12:34:17 2024 +
Commit: Sam James  gentoo  org>
CommitDate: Tue May 28 12:34:17 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=27c93140

dev-libs/libcec: Stabilize 6.0.2-r2 amd64, #932949

Signed-off-by: Sam James  gentoo.org>

 dev-libs/libcec/libcec-6.0.2-r2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/libcec/libcec-6.0.2-r2.ebuild 
b/dev-libs/libcec/libcec-6.0.2-r2.ebuild
index 53f926392e48..1e281a0fa561 100644
--- a/dev-libs/libcec/libcec-6.0.2-r2.ebuild
+++ b/dev-libs/libcec/libcec-6.0.2-r2.ebuild
@@ -16,7 +16,7 @@ S="${WORKDIR}/${PN}-${MY_P}"
 
 LICENSE="GPL-2+"
 SLOT="0"
-KEYWORDS="~amd64 ~arm arm64 ~riscv ~x86"
+KEYWORDS="amd64 ~arm arm64 ~riscv ~x86"
 IUSE="cubox exynos kernel-cec python tools udev +xrandr"
 REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
 



[gentoo-commits] repo/gentoo:master commit in: dev-libs/libcec/

2024-05-28 Thread Michał Górny
commit: 0f26fbb4e27c192f691b8191528feaf3e9b67da5
Author: Michał Górny  gentoo  org>
AuthorDate: Tue May 28 12:29:21 2024 +
Commit: Michał Górny  gentoo  org>
CommitDate: Tue May 28 12:29:21 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0f26fbb4

dev-libs/libcec: Stabilize 6.0.2-r2 arm64, #932949

Signed-off-by: Michał Górny  gentoo.org>

 dev-libs/libcec/libcec-6.0.2-r2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/libcec/libcec-6.0.2-r2.ebuild 
b/dev-libs/libcec/libcec-6.0.2-r2.ebuild
index 44b6038bfb33..53f926392e48 100644
--- a/dev-libs/libcec/libcec-6.0.2-r2.ebuild
+++ b/dev-libs/libcec/libcec-6.0.2-r2.ebuild
@@ -16,7 +16,7 @@ S="${WORKDIR}/${PN}-${MY_P}"
 
 LICENSE="GPL-2+"
 SLOT="0"
-KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86"
+KEYWORDS="~amd64 ~arm arm64 ~riscv ~x86"
 IUSE="cubox exynos kernel-cec python tools udev +xrandr"
 REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
 



[gentoo-commits] repo/gentoo:master commit in: dev-libs/libcec/

2024-04-22 Thread Viorel Munteanu
commit: bb2e78f8c1d5f0a9eb7bc7b31e26fa6b28645e96
Author: Viorel Munteanu  gentoo  org>
AuthorDate: Mon Apr 22 16:11:57 2024 +
Commit: Viorel Munteanu  gentoo  org>
CommitDate: Mon Apr 22 16:51:47 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bb2e78f8

dev-libs/libcec: enable py3.12

Closes: https://bugs.gentoo.org/929414
Signed-off-by: Viorel Munteanu  gentoo.org>

 dev-libs/libcec/libcec-6.0.2-r2.ebuild | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/dev-libs/libcec/libcec-6.0.2-r2.ebuild 
b/dev-libs/libcec/libcec-6.0.2-r2.ebuild
index 9d3d2bf12bb9..44b6038bfb33 100644
--- a/dev-libs/libcec/libcec-6.0.2-r2.ebuild
+++ b/dev-libs/libcec/libcec-6.0.2-r2.ebuild
@@ -1,13 +1,13 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
 
-PYTHON_COMPAT=( python3_{9..11} )
+PYTHON_COMPAT=( python3_{10..12} )
 MY_PV=${PV/_p/-}
 MY_P=${PN}-${MY_PV}
 
-inherit cmake linux-info python-single-r1 toolchain-funcs udev
+inherit cmake linux-info python-single-r1 udev
 
 DESCRIPTION="Library for communicating with the Pulse-Eight USB HDMI-CEC 
Adaptor"
 HOMEPAGE="https://libcec.pulse-eight.com;



[gentoo-commits] repo/gentoo:master commit in: dev-libs/libcec/

2024-02-10 Thread James Le Cuirot
commit: 0cbac5c78998c0921d575bb2037df7d5052c22a6
Author: James Le Cuirot  gentoo  org>
AuthorDate: Tue Nov 14 09:06:23 2023 +
Commit: James Le Cuirot  gentoo  org>
CommitDate: Sat Feb 10 21:23:24 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0cbac5c7

dev-libs/libcec: Drop Raspberry Pi support in revbump

media-libs/raspberrypi-userland is being last-rited. It should now be
possible to use this package with the regular kernel drivers. cec-ctl
from v4l-utils should also work.

Signed-off-by: James Le Cuirot  gentoo.org>

 dev-libs/libcec/libcec-6.0.2-r2.ebuild | 123 +
 1 file changed, 123 insertions(+)

diff --git a/dev-libs/libcec/libcec-6.0.2-r2.ebuild 
b/dev-libs/libcec/libcec-6.0.2-r2.ebuild
new file mode 100644
index ..9d3d2bf12bb9
--- /dev/null
+++ b/dev-libs/libcec/libcec-6.0.2-r2.ebuild
@@ -0,0 +1,123 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{9..11} )
+MY_PV=${PV/_p/-}
+MY_P=${PN}-${MY_PV}
+
+inherit cmake linux-info python-single-r1 toolchain-funcs udev
+
+DESCRIPTION="Library for communicating with the Pulse-Eight USB HDMI-CEC 
Adaptor"
+HOMEPAGE="https://libcec.pulse-eight.com;
+SRC_URI="https://github.com/Pulse-Eight/${PN}/archive/${MY_P}.tar.gz;
+S="${WORKDIR}/${PN}-${MY_P}"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86"
+IUSE="cubox exynos kernel-cec python tools udev +xrandr"
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+
+RDEPEND=">=dev-libs/libplatform-2.0.0
+   python? ( ${PYTHON_DEPS} )
+   udev? ( virtual/udev )
+   xrandr? (
+   x11-libs/libX11
+   x11-libs/libXrandr
+   )
+
+"
+DEPEND="${RDEPEND}
+   python? ( dev-lang/swig )"
+BDEPEND="virtual/pkgconfig"
+
+CONFIG_CHECK="~USB_ACM"
+
+PATCHES=(
+   "${FILESDIR}/${PN}-4.0.7-no-override-udev.patch"
+   "${FILESDIR}/${PN}-6.0.2-musl-nullptr.patch"
+)
+
+pkg_pretend() {
+   use udev || CONFIG_CHECK+=" ~SYSFS"
+   ERROR_SYSFS="When using libcec build without udev, kernel config option 
CONFIG_SYSFS is required to automatically detect P8 USB-CEC adapter port number"
+
+   linux-info_pkg_setup
+}
+
+pkg_setup() {
+   linux-info_pkg_setup
+   use python && python-single-r1_pkg_setup
+}
+
+src_prepare() {
+   cmake_src_prepare
+
+   # Do not hardcode the python libpath #577612
+   sed -i \
+   -e 
'/DESTINATION/s:"lib/python${PYTHON_VERSION}/${PYTHON_PKG_DIR}":${PYTHON_SITEDIR}:'
 \
+   src/libcec/cmake/CheckPlatformSupport.cmake || die
+
+   sed -Ee 's|[ ~]?#DIST#;?||g' debian/changelog.in > ChangeLog || die
+
+   (use tools && use python) || cmake_comment_add_subdirectory 
"src/pyCecClient"
+
+   if ! use tools; then
+   cmake_comment_add_subdirectory "src/cec-client"
+   cmake_comment_add_subdirectory "src/cecc-client"
+   sed -i -Ee 's|add_dependencies\(cecc?-client cec\)|#DO NOT 
BUILD \0|' \
+   CMakeLists.txt || die
+   fi
+}
+
+src_configure() {
+   local mycmakeargs=(
+   -DHAVE_LINUX_API=$(usex kernel-cec ON OFF)
+   -DHAVE_LIBUDEV=$(usex udev ON OFF)
+   -DSKIP_PYTHON_WRAPPER=$(usex python OFF ON)
+   -DHAVE_EXYNOS_API=$(usex exynos ON OFF)
+   -DHAVE_TDA995X_API=$(usex cubox ON OFF)
+   -DHAVE_RPI_API=OFF
+   )
+
+   if linux_config_exists && linux_chkconfig_present SYSFS; then
+   mycmakeargs+=( -DHAVE_P8_USB_DETECT=ON )
+   fi
+
+   cmake_src_configure
+}
+
+src_compile() {
+   cmake_src_compile
+
+   if use udev ; then
+   sed '/2548/ s/SUBSYSTEM/SUBSYSTEMS/; s/$/, GROUP="video"/;' 
"${S}/debian/pulse-eight-usb-cec.udev" > \
+   "${BUILD_DIR}/65-pulse-eight-usb-cec.rules" || die
+   fi
+}
+
+src_install() {
+   cmake_src_install
+
+   use python && python_optimize "${D}$(python_get_sitedir)"
+
+   use tools && doman debian/cec-client.1
+
+   if use udev; then
+   udev_dorules "${BUILD_DIR}/65-pulse-eight-usb-cec.rules"
+   fi
+}
+
+pkg_postrm() {
+   use udev && udev_reload
+}
+
+pkg_postinst() {
+   use udev && udev_reload
+
+   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 video group"
+}



[gentoo-commits] repo/gentoo:master commit in: dev-libs/libcec/

2023-05-28 Thread Andreas Sturmlechner
commit: cb511a6bf60ef73840f628380137fecf569a40f8
Author: Andreas Sturmlechner  gentoo  org>
AuthorDate: Sun May 28 18:37:48 2023 +
Commit: Andreas Sturmlechner  gentoo  org>
CommitDate: Sun May 28 18:38:13 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cb511a6b

dev-libs/libcec: drop 6.0.2

Signed-off-by: Andreas Sturmlechner  gentoo.org>

 dev-libs/libcec/libcec-6.0.2.ebuild | 125 
 1 file changed, 125 deletions(-)

diff --git a/dev-libs/libcec/libcec-6.0.2.ebuild 
b/dev-libs/libcec/libcec-6.0.2.ebuild
deleted file mode 100644
index 0348aae7ad68..
--- a/dev-libs/libcec/libcec-6.0.2.ebuild
+++ /dev/null
@@ -1,125 +0,0 @@
-# Copyright 1999-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-PYTHON_COMPAT=( python3_{9..10} )
-MY_PV=${PV/_p/-}
-MY_P=${PN}-${MY_PV}
-
-inherit cmake linux-info python-single-r1 toolchain-funcs udev
-
-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 arm64 ~riscv x86"
-IUSE="cubox exynos python raspberry-pi kernel-cec tools +xrandr udev"
-REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
-
-RDEPEND=">=dev-libs/libplatform-2.0.0
-   python? ( ${PYTHON_DEPS} )
-   raspberry-pi? ( >=media-libs/raspberrypi-userland-0_pre20160305-r1 )
-   tools? ( sys-libs/ncurses:= )
-   udev? ( virtual/udev )
-   xrandr? ( x11-libs/libXrandr )
-"
-DEPEND="${RDEPEND}
-   python? ( dev-lang/swig )"
-BDEPEND="virtual/pkgconfig"
-
-CONFIG_CHECK="~USB_ACM"
-
-S="${WORKDIR}/${PN}-${MY_P}"
-
-PATCHES=(
-   "${FILESDIR}/${PN}-4.0.7-no-override-udev.patch"
-   "${FILESDIR}/${PN}-6.0.2-musl-nullptr.patch"
-)
-
-pkg_pretend() {
-   use udev || CONFIG_CHECK+=" ~SYSFS"
-   ERROR_SYSFS="When using libcec build without udev, kernel config option 
CONFIG_SYSFS is required to automatically detect P8 USB-CEC adapter port number"
-
-   linux-info_pkg_setup
-}
-
-pkg_setup() {
-   linux-info_pkg_setup
-   use python && python-single-r1_pkg_setup
-}
-
-src_prepare() {
-   cmake_src_prepare
-
-   # Do not hardcode the python libpath #577612
-   sed -i \
-   -e 
'/DESTINATION/s:"lib/python${PYTHON_VERSION}/${PYTHON_PKG_DIR}":${PYTHON_SITEDIR}:'
 \
-   src/libcec/cmake/CheckPlatformSupport.cmake || die
-
-   sed -Ee 's|[ ~]?#DIST#;?||g' debian/changelog.in > ChangeLog || die
-
-   (use tools && use python) || cmake_comment_add_subdirectory 
"src/pyCecClient"
-
-   if ! use tools; then
-   cmake_comment_add_subdirectory "src/cec-client"
-   cmake_comment_add_subdirectory "src/cecc-client"
-   sed -i -Ee 's|add_dependencies\(cecc?-client cec\)|#DO NOT 
BUILD \0|' \
-   CMakeLists.txt || die
-   fi
-}
-
-src_configure() {
-   local mycmakeargs=(
-   -DHAVE_LINUX_API=$(usex kernel-cec ON OFF)
-   -DHAVE_LIBUDEV=$(usex udev ON OFF)
-   -DSKIP_PYTHON_WRAPPER=$(usex python OFF ON)
-   -DHAVE_EXYNOS_API=$(usex exynos ON OFF)
-   -DHAVE_TDA995X_API=$(usex cubox ON OFF)
-   -DHAVE_RPI_API=$(usex raspberry-pi ON OFF)
-   )
-
-   if linux_config_exists && linux_chkconfig_present SYSFS; then
-   mycmakeargs+=( -DHAVE_P8_USB_DETECT=ON )
-   fi
-
-   # 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_src_configure
-}
-
-src_compile() {
-   cmake_src_compile
-
-   if use udev ; then
-   cp "${S}/debian/pulse-eight-usb-cec.udev" \
-   "${BUILD_DIR}/65-pulse-eight-usb-cec.udev" || die
-   fi
-}
-
-src_install() {
-   cmake_src_install
-
-   use python && python_optimize "${D}$(python_get_sitedir)"
-
-   use tools && doman debian/cec-client.1
-
-   if use udev; then
-   udev_dorules "${BUILD_DIR}/65-pulse-eight-usb-cec.udev"
-   fi
-}
-
-pkg_postinst() {
-   use udev && udev_reload
-
-   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"
-}



[gentoo-commits] repo/gentoo:master commit in: dev-libs/libcec/

2023-05-05 Thread Arthur Zamarin
commit: 7bda1064f00b8fa59ba6623ca13ddd118d3aade1
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Fri May  5 09:03:24 2023 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Fri May  5 09:03:24 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7bda1064

dev-libs/libcec: Stabilize 6.0.2-r1 arm64, #905603

Signed-off-by: Arthur Zamarin  gentoo.org>

 dev-libs/libcec/libcec-6.0.2-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/libcec/libcec-6.0.2-r1.ebuild 
b/dev-libs/libcec/libcec-6.0.2-r1.ebuild
index 2cf4f0ad16cd..f6382bb14788 100644
--- a/dev-libs/libcec/libcec-6.0.2-r1.ebuild
+++ b/dev-libs/libcec/libcec-6.0.2-r1.ebuild
@@ -16,7 +16,7 @@ S="${WORKDIR}/${PN}-${MY_P}"
 
 LICENSE="GPL-2+"
 SLOT="0"
-KEYWORDS="amd64 ~arm ~arm64 ~riscv x86"
+KEYWORDS="amd64 ~arm arm64 ~riscv x86"
 IUSE="cubox exynos kernel-cec python raspberry-pi tools udev +xrandr"
 REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
 



[gentoo-commits] repo/gentoo:master commit in: dev-libs/libcec/

2023-05-02 Thread Sam James
commit: 021e3e48a99f3a09dce3dd473df54d870eeb50e4
Author: Sam James  gentoo  org>
AuthorDate: Tue May  2 20:15:17 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Tue May  2 20:15:24 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=021e3e48

dev-libs/libcec: Stabilize 6.0.2-r1 x86, #905603

Signed-off-by: Sam James  gentoo.org>

 dev-libs/libcec/libcec-6.0.2-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/libcec/libcec-6.0.2-r1.ebuild 
b/dev-libs/libcec/libcec-6.0.2-r1.ebuild
index 2af5747ccb35..2cf4f0ad16cd 100644
--- a/dev-libs/libcec/libcec-6.0.2-r1.ebuild
+++ b/dev-libs/libcec/libcec-6.0.2-r1.ebuild
@@ -16,7 +16,7 @@ S="${WORKDIR}/${PN}-${MY_P}"
 
 LICENSE="GPL-2+"
 SLOT="0"
-KEYWORDS="amd64 ~arm ~arm64 ~riscv ~x86"
+KEYWORDS="amd64 ~arm ~arm64 ~riscv x86"
 IUSE="cubox exynos kernel-cec python raspberry-pi tools udev +xrandr"
 REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
 



[gentoo-commits] repo/gentoo:master commit in: dev-libs/libcec/

2023-05-02 Thread Sam James
commit: 852953b7a7f2b70ca1434b201df114b018e1a23e
Author: Sam James  gentoo  org>
AuthorDate: Tue May  2 20:07:07 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Tue May  2 20:10:52 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=852953b7

dev-libs/libcec: Stabilize 6.0.2-r1 amd64, #905603

Signed-off-by: Sam James  gentoo.org>

 dev-libs/libcec/libcec-6.0.2-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/libcec/libcec-6.0.2-r1.ebuild 
b/dev-libs/libcec/libcec-6.0.2-r1.ebuild
index f35813989e13..2af5747ccb35 100644
--- a/dev-libs/libcec/libcec-6.0.2-r1.ebuild
+++ b/dev-libs/libcec/libcec-6.0.2-r1.ebuild
@@ -16,7 +16,7 @@ S="${WORKDIR}/${PN}-${MY_P}"
 
 LICENSE="GPL-2+"
 SLOT="0"
-KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86"
+KEYWORDS="amd64 ~arm ~arm64 ~riscv ~x86"
 IUSE="cubox exynos kernel-cec python raspberry-pi tools udev +xrandr"
 REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
 



[gentoo-commits] repo/gentoo:master commit in: dev-libs/libcec/

2023-05-02 Thread Viorel Munteanu
commit: 496cb065e413016d6f788c26f485d55349b1c46b
Author: Alan Swanson  improbability  net>
AuthorDate: Mon May  1 15:59:35 2023 +
Commit: Viorel Munteanu  gentoo  org>
CommitDate: Tue May  2 08:24:00 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=496cb065

dev-libs/libcec: Fix udev rule

Also change udev rule to set group ownership to "video" instead of "uucp".

Closes: https://bugs.gentoo.org/765358
Closes: https://bugs.gentoo.org/896708
Signed-off-by: Alan Swanson  improbability.net>
Closes: https://github.com/gentoo/gentoo/pull/20851
Signed-off-by: Viorel Munteanu  gentoo.org>

 dev-libs/libcec/libcec-6.0.2-r1.ebuild | 131 +
 1 file changed, 131 insertions(+)

diff --git a/dev-libs/libcec/libcec-6.0.2-r1.ebuild 
b/dev-libs/libcec/libcec-6.0.2-r1.ebuild
new file mode 100644
index ..f35813989e13
--- /dev/null
+++ b/dev-libs/libcec/libcec-6.0.2-r1.ebuild
@@ -0,0 +1,131 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{9..11} )
+MY_PV=${PV/_p/-}
+MY_P=${PN}-${MY_PV}
+
+inherit cmake linux-info python-single-r1 toolchain-funcs udev
+
+DESCRIPTION="Library for communicating with the Pulse-Eight USB HDMI-CEC 
Adaptor"
+HOMEPAGE="https://libcec.pulse-eight.com;
+SRC_URI="https://github.com/Pulse-Eight/${PN}/archive/${MY_P}.tar.gz;
+S="${WORKDIR}/${PN}-${MY_P}"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86"
+IUSE="cubox exynos kernel-cec python raspberry-pi tools udev +xrandr"
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+
+RDEPEND=">=dev-libs/libplatform-2.0.0
+   python? ( ${PYTHON_DEPS} )
+   raspberry-pi? ( >=media-libs/raspberrypi-userland-0_pre20160305-r1 )
+   udev? ( virtual/udev )
+   xrandr? (
+   x11-libs/libX11
+   x11-libs/libXrandr
+   )
+
+"
+DEPEND="${RDEPEND}
+   python? ( dev-lang/swig )"
+BDEPEND="virtual/pkgconfig"
+
+CONFIG_CHECK="~USB_ACM"
+
+PATCHES=(
+   "${FILESDIR}/${PN}-4.0.7-no-override-udev.patch"
+   "${FILESDIR}/${PN}-6.0.2-musl-nullptr.patch"
+)
+
+pkg_pretend() {
+   use udev || CONFIG_CHECK+=" ~SYSFS"
+   ERROR_SYSFS="When using libcec build without udev, kernel config option 
CONFIG_SYSFS is required to automatically detect P8 USB-CEC adapter port number"
+
+   linux-info_pkg_setup
+}
+
+pkg_setup() {
+   linux-info_pkg_setup
+   use python && python-single-r1_pkg_setup
+}
+
+src_prepare() {
+   cmake_src_prepare
+
+   # Do not hardcode the python libpath #577612
+   sed -i \
+   -e 
'/DESTINATION/s:"lib/python${PYTHON_VERSION}/${PYTHON_PKG_DIR}":${PYTHON_SITEDIR}:'
 \
+   src/libcec/cmake/CheckPlatformSupport.cmake || die
+
+   sed -Ee 's|[ ~]?#DIST#;?||g' debian/changelog.in > ChangeLog || die
+
+   (use tools && use python) || cmake_comment_add_subdirectory 
"src/pyCecClient"
+
+   if ! use tools; then
+   cmake_comment_add_subdirectory "src/cec-client"
+   cmake_comment_add_subdirectory "src/cecc-client"
+   sed -i -Ee 's|add_dependencies\(cecc?-client cec\)|#DO NOT 
BUILD \0|' \
+   CMakeLists.txt || die
+   fi
+}
+
+src_configure() {
+   local mycmakeargs=(
+   -DHAVE_LINUX_API=$(usex kernel-cec ON OFF)
+   -DHAVE_LIBUDEV=$(usex udev ON OFF)
+   -DSKIP_PYTHON_WRAPPER=$(usex python OFF ON)
+   -DHAVE_EXYNOS_API=$(usex exynos ON OFF)
+   -DHAVE_TDA995X_API=$(usex cubox ON OFF)
+   -DHAVE_RPI_API=$(usex raspberry-pi ON OFF)
+   )
+
+   if linux_config_exists && linux_chkconfig_present SYSFS; then
+   mycmakeargs+=( -DHAVE_P8_USB_DETECT=ON )
+   fi
+
+   # 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_src_configure
+}
+
+src_compile() {
+   cmake_src_compile
+
+   if use udev ; then
+   sed '/2548/ s/SUBSYSTEM/SUBSYSTEMS/; s/$/, GROUP="video"/;' 
"${S}/debian/pulse-eight-usb-cec.udev" > \
+   "${BUILD_DIR}/65-pulse-eight-usb-cec.rules" || die
+   fi
+}
+
+src_install() {
+   cmake_src_install
+
+   use python && python_optimize "${D}$(python_get_sitedir)"
+
+   use tools && doman debian/cec-client.1
+
+   if use udev; then
+   udev_dorules "${BUILD_DIR}/65-pulse-eight-usb-cec.rules"
+   fi
+}
+
+pkg_postrm() {
+   use udev && udev_reload
+}
+
+pkg_postinst() {
+   use udev && udev_reload
+
+   elog "You will need to ensure the user running your CEC client has"
+   elog "read/write access to the device. 

[gentoo-commits] repo/gentoo:master commit in: dev-libs/libcec/

2022-08-27 Thread Yixun Lan
commit: 21ac24643598143081544d72ac45e313e570f811
Author: Yixun Lan  gentoo  org>
AuthorDate: Sat Aug 27 10:18:27 2022 +
Commit: Yixun Lan  gentoo  org>
CommitDate: Sat Aug 27 11:45:00 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=21ac2464

dev-libs/libcec: Keyword 6.0.2 riscv, #866533

Signed-off-by: Yixun Lan  gentoo.org>

 dev-libs/libcec/libcec-6.0.2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/libcec/libcec-6.0.2.ebuild 
b/dev-libs/libcec/libcec-6.0.2.ebuild
index 2e1ceac2dcf0..889a3825300e 100644
--- a/dev-libs/libcec/libcec-6.0.2.ebuild
+++ b/dev-libs/libcec/libcec-6.0.2.ebuild
@@ -15,7 +15,7 @@ 
SRC_URI="https://github.com/Pulse-Eight/${PN}/archive/${MY_P}.tar.gz;
 
 LICENSE="GPL-2+"
 SLOT="0"
-KEYWORDS="amd64 ~arm arm64 x86"
+KEYWORDS="amd64 ~arm arm64 ~riscv x86"
 IUSE="cubox exynos python raspberry-pi kernel-cec tools +xrandr udev"
 REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
 



[gentoo-commits] repo/gentoo:master commit in: dev-libs/libcec/

2022-04-27 Thread Sam James
commit: 1717e31f229054a31d42dc0cf60165e333de11b6
Author: Sam James  gentoo  org>
AuthorDate: Thu Apr 28 03:22:39 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Thu Apr 28 03:31:48 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1717e31f

dev-libs/libcec: use udev.eclass; call udev_reload

Signed-off-by: Sam James  gentoo.org>

 dev-libs/libcec/libcec-6.0.2.ebuild | 7 ---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/dev-libs/libcec/libcec-6.0.2.ebuild 
b/dev-libs/libcec/libcec-6.0.2.ebuild
index 9518fad0b156..2e1ceac2dcf0 100644
--- a/dev-libs/libcec/libcec-6.0.2.ebuild
+++ b/dev-libs/libcec/libcec-6.0.2.ebuild
@@ -7,7 +7,7 @@ PYTHON_COMPAT=( python3_{8..10} )
 MY_PV=${PV/_p/-}
 MY_P=${PN}-${MY_PV}
 
-inherit cmake linux-info python-single-r1 toolchain-funcs
+inherit cmake linux-info python-single-r1 toolchain-funcs udev
 
 DESCRIPTION="Library for communicating with the Pulse-Eight USB HDMI-CEC 
Adaptor"
 HOMEPAGE="http://libcec.pulse-eight.com;
@@ -112,12 +112,13 @@ src_install() {
use tools && doman debian/cec-client.1
 
if use udev; then
-   insinto /lib/udev/rules.d
-   doins "${BUILD_DIR}/65-pulse-eight-usb-cec.udev"
+   udev_dorules "${BUILD_DIR}/65-pulse-eight-usb-cec.udev"
fi
 }
 
 pkg_postinst() {
+   use udev && udev_reload
+
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"



[gentoo-commits] repo/gentoo:master commit in: dev-libs/libcec/, dev-libs/libcec/files/

2022-04-21 Thread Sam James
commit: d65dc3c1a57f44e5cc517f49bf95efc1eee99907
Author: Sam James  gentoo  org>
AuthorDate: Fri Apr 22 00:01:19 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Fri Apr 22 00:20:10 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d65dc3c1

dev-libs/libcec: fix build with musl 1.2.3

Signed-off-by: Sam James  gentoo.org>

 .../libcec/files/libcec-6.0.2-musl-nullptr.patch   | 29 ++
 dev-libs/libcec/libcec-6.0.2.ebuild|  3 ++-
 2 files changed, 31 insertions(+), 1 deletion(-)

diff --git a/dev-libs/libcec/files/libcec-6.0.2-musl-nullptr.patch 
b/dev-libs/libcec/files/libcec-6.0.2-musl-nullptr.patch
new file mode 100644
index ..d161e20c130d
--- /dev/null
+++ b/dev-libs/libcec/files/libcec-6.0.2-musl-nullptr.patch
@@ -0,0 +1,29 @@
+https://github.com/Pulse-Eight/libcec/pull/599
+
+From 452b2049b2ee3e73968c603e5524b2d349ac0c3e Mon Sep 17 00:00:00 2001
+From: psykose 
+Date: Sat, 9 Apr 2022 17:59:11 +
+Subject: [PATCH] cecloader.h: fix null return
+
+returning NULL is invalid for a return type of bool when NULL is defined
+as `nullptr` instead of 0L
+--- a/include/cecloader.h
 b/include/cecloader.h
+@@ -172,7 +172,7 @@ bool LibCecBootloader(const char *strLib = NULL)
+ if (!g_libCEC)
+ {
+   std::cout << dlerror() << std::endl;
+-  return NULL;
++  return false;
+ }
+   }
+ 
+@@ -181,7 +181,7 @@ bool LibCecBootloader(const char *strLib = NULL)
+   if (!LibCecBootloader)
+   {
+ std::cout << "cannot find CECStartBootloader" << std::endl;
+-return NULL;
++return false;
+   }
+ 
+   bool bReturn = LibCecBootloader();

diff --git a/dev-libs/libcec/libcec-6.0.2.ebuild 
b/dev-libs/libcec/libcec-6.0.2.ebuild
index 80507a293bfb..9518fad0b156 100644
--- a/dev-libs/libcec/libcec-6.0.2.ebuild
+++ b/dev-libs/libcec/libcec-6.0.2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -36,6 +36,7 @@ S="${WORKDIR}/${PN}-${MY_P}"
 
 PATCHES=(
"${FILESDIR}/${PN}-4.0.7-no-override-udev.patch"
+   "${FILESDIR}/${PN}-6.0.2-musl-nullptr.patch"
 )
 
 pkg_pretend() {



[gentoo-commits] repo/gentoo:master commit in: dev-libs/libcec/

2021-11-02 Thread Arthur Zamarin
commit: e6c0fc3de871081e8cedb2b02f715b1711ef2a3f
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Tue Nov  2 07:30:41 2021 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Tue Nov  2 08:38:11 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e6c0fc3d

dev-libs/libcec: enable py3.10

Signed-off-by: Arthur Zamarin  gentoo.org>

 dev-libs/libcec/libcec-6.0.2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/libcec/libcec-6.0.2.ebuild 
b/dev-libs/libcec/libcec-6.0.2.ebuild
index c118e523468..80507a293bf 100644
--- a/dev-libs/libcec/libcec-6.0.2.ebuild
+++ b/dev-libs/libcec/libcec-6.0.2.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=7
 
-PYTHON_COMPAT=( python3_{7,8,9} )
+PYTHON_COMPAT=( python3_{8..10} )
 MY_PV=${PV/_p/-}
 MY_P=${PN}-${MY_PV}
 



[gentoo-commits] repo/gentoo:master commit in: dev-libs/libcec/

2021-05-19 Thread Craig Andrews
commit: dbdcc05196eb7afa9e1a84c2c610dd3c14a17028
Author: Craig Andrews  gentoo  org>
AuthorDate: Wed May 19 23:38:22 2021 +
Commit: Craig Andrews  gentoo  org>
CommitDate: Wed May 19 23:38:40 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dbdcc051

dev-libs/libcec: Python 3.9 compatibility

Package-Manager: Portage-3.0.18, Repoman-3.0.3
Signed-off-by: Craig Andrews  gentoo.org>

 dev-libs/libcec/libcec-6.0.2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/libcec/libcec-6.0.2.ebuild 
b/dev-libs/libcec/libcec-6.0.2.ebuild
index e4f03cb101b..c118e523468 100644
--- a/dev-libs/libcec/libcec-6.0.2.ebuild
+++ b/dev-libs/libcec/libcec-6.0.2.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=7
 
-PYTHON_COMPAT=( python3_{7,8} )
+PYTHON_COMPAT=( python3_{7,8,9} )
 MY_PV=${PV/_p/-}
 MY_P=${PN}-${MY_PV}
 



[gentoo-commits] repo/gentoo:master commit in: dev-libs/libcec/

2021-03-29 Thread Sam James
commit: b793d458e6d763e95569108b40823fcfdbf1f84e
Author: Sam James  gentoo  org>
AuthorDate: Mon Mar 29 14:31:40 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Mon Mar 29 14:31:40 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b793d458

dev-libs/libcec: Stabilize 6.0.2 arm64, #778446

Signed-off-by: Sam James  gentoo.org>

 dev-libs/libcec/libcec-6.0.2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/libcec/libcec-6.0.2.ebuild 
b/dev-libs/libcec/libcec-6.0.2.ebuild
index 0457daa7328..e4f03cb101b 100644
--- a/dev-libs/libcec/libcec-6.0.2.ebuild
+++ b/dev-libs/libcec/libcec-6.0.2.ebuild
@@ -15,7 +15,7 @@ 
SRC_URI="https://github.com/Pulse-Eight/${PN}/archive/${MY_P}.tar.gz;
 
 LICENSE="GPL-2+"
 SLOT="0"
-KEYWORDS="amd64 ~arm ~arm64 x86"
+KEYWORDS="amd64 ~arm arm64 x86"
 IUSE="cubox exynos python raspberry-pi kernel-cec tools +xrandr udev"
 REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
 



[gentoo-commits] repo/gentoo:master commit in: dev-libs/libcec/

2021-01-02 Thread Sam James
commit: e21788a3d2fce8a285b4032888ea5a58cfd01ad3
Author: Sam James  gentoo  org>
AuthorDate: Sun Jan  3 01:17:19 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Sun Jan  3 01:17:19 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e21788a3

dev-libs/libcec: Stabilize 6.0.2 amd64, #762107

Signed-off-by: Sam James  gentoo.org>

 dev-libs/libcec/libcec-6.0.2.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dev-libs/libcec/libcec-6.0.2.ebuild 
b/dev-libs/libcec/libcec-6.0.2.ebuild
index 9ffaf6366ec..b22be742212 100644
--- a/dev-libs/libcec/libcec-6.0.2.ebuild
+++ b/dev-libs/libcec/libcec-6.0.2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -15,7 +15,7 @@ 
SRC_URI="https://github.com/Pulse-Eight/${PN}/archive/${MY_P}.tar.gz;
 
 LICENSE="GPL-2+"
 SLOT="0"
-KEYWORDS="~amd64 ~arm ~arm64 ~x86"
+KEYWORDS="amd64 ~arm ~arm64 ~x86"
 IUSE="cubox exynos python raspberry-pi kernel-cec tools +xrandr udev"
 REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
 



[gentoo-commits] repo/gentoo:master commit in: dev-libs/libcec/files/

2020-11-13 Thread Aaron Bauman
commit: b4cbba24c0056cc899254fd69b6ecfa1a962b086
Author: Michael Mair-Keimberger  gmail  com>
AuthorDate: Sun Nov  8 19:04:44 2020 +
Commit: Aaron Bauman  gentoo  org>
CommitDate: Fri Nov 13 21:16:37 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b4cbba24

dev-libs/libcec: remove unused patch

Package-Manager: Portage-3.0.9, Repoman-3.0.2
Signed-off-by: Michael Mair-Keimberger  gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/18188
Signed-off-by: Aaron Bauman  gentoo.org>

 dev-libs/libcec/files/libcec-4.0.2-no-tinfo.patch | 25 ---
 1 file changed, 25 deletions(-)

diff --git a/dev-libs/libcec/files/libcec-4.0.2-no-tinfo.patch 
b/dev-libs/libcec/files/libcec-4.0.2-no-tinfo.patch
deleted file mode 100644
index 673c6f86c97..000
--- a/dev-libs/libcec/files/libcec-4.0.2-no-tinfo.patch
+++ /dev/null
@@ -1,25 +0,0 @@
 libcec-libcec-4.0.2/src/cec-client/CMakeLists.txt
-+++ libcec-libcec-4.0.2/src/cec-client/CMakeLists.txt
-@@ -27,8 +27,12 @@ set(cecclient_SOURCES cec-client.cpp)
- check_library_exists(curses initscr "" HAVE_CURSES_API)
- if (HAVE_CURSES_API)
-   list(APPEND cecclient_SOURCES curses/CursesControl.cpp)
-+
-+  # tinfo
-+  find_library(HAVE_CURSES_TINFO tinfo)
- endif()
- 
-+
- add_executable(cec-client ${cecclient_SOURCES})
- set_target_properties(cec-client PROPERTIES VERSION 
${LIBCEC_VERSION_MAJOR}.${LIBCEC_VERSION_MINOR}.${LIBCEC_VERSION_PATCH})
- target_link_libraries(cec-client ${p8-platform_LIBRARIES})
-@@ -44,6 +48,9 @@ if (NOT WIN32)
-   # curses
-   if (HAVE_CURSES_API)
- target_link_libraries(cec-client curses)
-+if (HAVE_CURSES_TINFO)
-+  target_link_libraries(cec-client tinfo)
-+endif()
-   endif()
- 
-   # rt



[gentoo-commits] repo/gentoo:master commit in: dev-libs/libcec/

2020-11-06 Thread Sam James
commit: 55d28585cd3bd086ea50d969f6d24084fad8d2d4
Author: Sam James  gentoo  org>
AuthorDate: Fri Nov  6 08:31:25 2020 +
Commit: Sam James  gentoo  org>
CommitDate: Fri Nov  6 08:32:56 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=55d28585

dev-libs/libcec: cmake-utils -> cmake

Package-Manager: Portage-3.0.8, Repoman-3.0.2
Signed-off-by: Sam James  gentoo.org>

 dev-libs/libcec/libcec-4.0.4-r1.ebuild |  6 +++---
 dev-libs/libcec/libcec-4.0.7.ebuild| 12 ++--
 2 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/dev-libs/libcec/libcec-4.0.4-r1.ebuild 
b/dev-libs/libcec/libcec-4.0.4-r1.ebuild
index d89298c497b..4f1dbb82397 100644
--- a/dev-libs/libcec/libcec-4.0.4-r1.ebuild
+++ b/dev-libs/libcec/libcec-4.0.4-r1.ebuild
@@ -7,7 +7,7 @@ PYTHON_COMPAT=( python{3_6,3_7,3_8} )
 MY_PV=${PV/_p/-}
 MY_P=${PN}-${MY_PV}
 
-inherit cmake-utils linux-info python-single-r1 toolchain-funcs
+inherit cmake 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;
@@ -43,7 +43,7 @@ pkg_setup() {
 }
 
 src_prepare() {
-   cmake-utils_src_prepare
+   cmake_src_prepare
 
# Do not hardcode the python libpath #577612
sed -i \
@@ -68,7 +68,7 @@ src_configure() {
-DRPI_LIB_DIR=$( $(tc-getPKG_CONFIG) --variable=libdir bcm_host)
)
 
-   cmake-utils_src_configure
+   cmake_src_configure
 }
 
 pkg_postinst() {

diff --git a/dev-libs/libcec/libcec-4.0.7.ebuild 
b/dev-libs/libcec/libcec-4.0.7.ebuild
index 0e2d7d2ec95..55442c3f1e3 100644
--- a/dev-libs/libcec/libcec-4.0.7.ebuild
+++ b/dev-libs/libcec/libcec-4.0.7.ebuild
@@ -7,7 +7,7 @@ PYTHON_COMPAT=( python{3_6,3_7,3_8} )
 MY_PV=${PV/_p/-}
 MY_P=${PN}-${MY_PV}
 
-inherit cmake-utils linux-info python-single-r1 toolchain-funcs
+inherit cmake 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;
@@ -51,7 +51,7 @@ pkg_setup() {
 }
 
 src_prepare() {
-   cmake-utils_src_prepare
+   cmake_src_prepare
 
# Do not hardcode the python libpath #577612
sed -i \
@@ -91,20 +91,20 @@ src_configure() {
-DRPI_LIB_DIR=$( $(tc-getPKG_CONFIG) --variable=libdir bcm_host)
)
 
-   cmake-utils_src_configure
+   cmake_src_configure
 }
 
 src_compile() {
-   cmake-utils_src_compile
+   cmake_src_compile
 
-   if use udev ; then
+   if use udev; then
cp "${S}/debian/pulse-eight-usb-cec.udev" \
"${BUILD_DIR}/65-pulse-eight-usb-cec.udev" || die
fi
 }
 
 src_install() {
-   cmake-utils_src_install
+   cmake_src_install
 
use python && python_optimize "${D}$(python_get_sitedir)"
 



[gentoo-commits] repo/gentoo:master commit in: dev-libs/libcec/

2020-11-06 Thread Sam James
commit: 4e008d05af9c1c094345588a5454bc72f2248929
Author: Sam James  gentoo  org>
AuthorDate: Fri Nov  6 08:31:50 2020 +
Commit: Sam James  gentoo  org>
CommitDate: Fri Nov  6 08:32:57 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4e008d05

dev-libs/libcec: cleanup old

Package-Manager: Portage-3.0.8, Repoman-3.0.2
Signed-off-by: Sam James  gentoo.org>

 dev-libs/libcec/Manifest   |  1 -
 dev-libs/libcec/libcec-4.0.2-r2.ebuild | 83 --
 2 files changed, 84 deletions(-)

diff --git a/dev-libs/libcec/Manifest b/dev-libs/libcec/Manifest
index 77048113bec..e40cd603a8c 100644
--- a/dev-libs/libcec/Manifest
+++ b/dev-libs/libcec/Manifest
@@ -1,4 +1,3 @@
-DIST libcec-4.0.2.tar.gz 334995 BLAKE2B 
bdbebeb339ce39f2f740805c4c627cc5190cc0dd57d0d87e3d3aa4ba8feeba103336d035fb8b282358f2e08fa470111be43df4df48870be0e9aa93f35434d0ef
 SHA512 
7bb80965cd1bef713f59bff136dc4a7f1172c4a9bdb8e2f59c6bcc5b74110848c0b2912263280ea68177908a688127e8d7208fc43ce6e65d589343b85395a0bb
 DIST libcec-4.0.4.tar.gz 344976 BLAKE2B 
ce88730ee6e9f57a3f874dd47343e8bb12bd9d3644b58703f0b797bfe656fa25461e6847db4023fec92d9e9740f0e58b59a203258d39d8883b8ae9cde147f455
 SHA512 
8991ba96fe9a87e5e1f63ff87f77fc0fc3b735c537e2ee6cb004fdc264d75cecd043e39b49cf9e64aeadd24bb1fb57911d9c4bd6c494d9ba4035d7320c268116
 DIST libcec-4.0.7.tar.gz 355249 BLAKE2B 
5f742364804d0d10cfcd71635645d33c3dfde200e79332470d2b5b2e64966834a0604d4684ad5919a00aaf60f05f4dbbbc9ce13a0dcf0ba4fa11d1f6a0391673
 SHA512 
424540a45f9cae3d5d615d487c45033f9cdeb665b8176832495597e2cd58ef7681e13b52f6a32f8a40e1146c04a1a383f5785ea1e731c5c517a9a7843a81
 DIST libcec-6.0.2.tar.gz 355807 BLAKE2B 
007530d839493355f283992a4390550d6ddd432977d7489c17087f7e5bb6f503c35e967ed6a620d55e2e7c25ce10814f360d146a28b860cdcdd108fae152f896
 SHA512 
c16ac268e67b01d4e35fad644e5927e1d9fc7bcaeff698ac5f0eadd31ec63a0bef2a2b2bc37860d1571e1e0cdc55911c2de468c661c7c7ae1d492f80188035cb

diff --git a/dev-libs/libcec/libcec-4.0.2-r2.ebuild 
b/dev-libs/libcec/libcec-4.0.2-r2.ebuild
deleted file mode 100644
index 7a242dcd518..000
--- a/dev-libs/libcec/libcec-4.0.2-r2.ebuild
+++ /dev/null
@@ -1,83 +0,0 @@
-# Copyright 1999-2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-PYTHON_COMPAT=( python3_6 )
-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}"
-
-PATCHES=( "${FILESDIR}/${P}-no-tinfo.patch" )
-
-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"
-}



[gentoo-commits] repo/gentoo:master commit in: dev-libs/libcec/

2020-11-06 Thread Sam James
commit: d36aa4f810677ad98a4970696c0101fc33c96d7d
Author: Sam James  gentoo  org>
AuthorDate: Fri Nov  6 08:28:54 2020 +
Commit: Sam James  gentoo  org>
CommitDate: Fri Nov  6 08:28:54 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d36aa4f8

dev-libs/libcec: bump to 6.0.2

Package-Manager: Portage-3.0.8, Repoman-3.0.2
Signed-off-by: Sam James  gentoo.org>

 dev-libs/libcec/Manifest|   1 +
 dev-libs/libcec/libcec-6.0.2.ebuild | 123 
 2 files changed, 124 insertions(+)

diff --git a/dev-libs/libcec/Manifest b/dev-libs/libcec/Manifest
index bd1494466a1..77048113bec 100644
--- a/dev-libs/libcec/Manifest
+++ b/dev-libs/libcec/Manifest
@@ -1,3 +1,4 @@
 DIST libcec-4.0.2.tar.gz 334995 BLAKE2B 
bdbebeb339ce39f2f740805c4c627cc5190cc0dd57d0d87e3d3aa4ba8feeba103336d035fb8b282358f2e08fa470111be43df4df48870be0e9aa93f35434d0ef
 SHA512 
7bb80965cd1bef713f59bff136dc4a7f1172c4a9bdb8e2f59c6bcc5b74110848c0b2912263280ea68177908a688127e8d7208fc43ce6e65d589343b85395a0bb
 DIST libcec-4.0.4.tar.gz 344976 BLAKE2B 
ce88730ee6e9f57a3f874dd47343e8bb12bd9d3644b58703f0b797bfe656fa25461e6847db4023fec92d9e9740f0e58b59a203258d39d8883b8ae9cde147f455
 SHA512 
8991ba96fe9a87e5e1f63ff87f77fc0fc3b735c537e2ee6cb004fdc264d75cecd043e39b49cf9e64aeadd24bb1fb57911d9c4bd6c494d9ba4035d7320c268116
 DIST libcec-4.0.7.tar.gz 355249 BLAKE2B 
5f742364804d0d10cfcd71635645d33c3dfde200e79332470d2b5b2e64966834a0604d4684ad5919a00aaf60f05f4dbbbc9ce13a0dcf0ba4fa11d1f6a0391673
 SHA512 
424540a45f9cae3d5d615d487c45033f9cdeb665b8176832495597e2cd58ef7681e13b52f6a32f8a40e1146c04a1a383f5785ea1e731c5c517a9a7843a81
+DIST libcec-6.0.2.tar.gz 355807 BLAKE2B 
007530d839493355f283992a4390550d6ddd432977d7489c17087f7e5bb6f503c35e967ed6a620d55e2e7c25ce10814f360d146a28b860cdcdd108fae152f896
 SHA512 
c16ac268e67b01d4e35fad644e5927e1d9fc7bcaeff698ac5f0eadd31ec63a0bef2a2b2bc37860d1571e1e0cdc55911c2de468c661c7c7ae1d492f80188035cb

diff --git a/dev-libs/libcec/libcec-6.0.2.ebuild 
b/dev-libs/libcec/libcec-6.0.2.ebuild
new file mode 100644
index 000..9ffaf6366ec
--- /dev/null
+++ b/dev-libs/libcec/libcec-6.0.2.ebuild
@@ -0,0 +1,123 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{6,7,8} )
+MY_PV=${PV/_p/-}
+MY_P=${PN}-${MY_PV}
+
+inherit cmake 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 ~arm64 ~x86"
+IUSE="cubox exynos python raspberry-pi kernel-cec tools +xrandr udev"
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+
+RDEPEND=">=dev-libs/libplatform-2.0.0
+   python? ( ${PYTHON_DEPS} )
+   raspberry-pi? ( >=media-libs/raspberrypi-userland-0_pre20160305-r1 )
+   tools? ( sys-libs/ncurses:= )
+   udev? ( virtual/udev )
+   xrandr? ( x11-libs/libXrandr )
+"
+DEPEND="${RDEPEND}
+   python? ( dev-lang/swig )"
+BDEPEND="virtual/pkgconfig"
+
+CONFIG_CHECK="~USB_ACM"
+
+S="${WORKDIR}/${PN}-${MY_P}"
+
+PATCHES=(
+   "${FILESDIR}/${PN}-4.0.7-no-override-udev.patch"
+)
+
+pkg_pretend() {
+   use udev || CONFIG_CHECK+=" ~SYSFS"
+   ERROR_SYSFS="When using libcec build without udev, kernel config option 
CONFIG_SYSFS is required to automatically detect P8 USB-CEC adapter port number"
+
+   linux-info_pkg_setup
+}
+
+pkg_setup() {
+   linux-info_pkg_setup
+   use python && python-single-r1_pkg_setup
+}
+
+src_prepare() {
+   cmake_src_prepare
+
+   # Do not hardcode the python libpath #577612
+   sed -i \
+   -e 
'/DESTINATION/s:"lib/python${PYTHON_VERSION}/${PYTHON_PKG_DIR}":${PYTHON_SITEDIR}:'
 \
+   src/libcec/cmake/CheckPlatformSupport.cmake || die
+
+   sed -Ee 's|[ ~]?#DIST#;?||g' debian/changelog.in > ChangeLog || die
+
+   (use tools && use python) || cmake_comment_add_subdirectory 
"src/pyCecClient"
+
+   if ! use tools; then
+   cmake_comment_add_subdirectory "src/cec-client"
+   cmake_comment_add_subdirectory "src/cecc-client"
+   sed -i -Ee 's|add_dependencies\(cecc?-client cec\)|#DO NOT 
BUILD \0|' \
+   CMakeLists.txt || die
+   fi
+}
+
+src_configure() {
+   local mycmakeargs=(
+   -DHAVE_LINUX_API=$(usex kernel-cec ON OFF)
+   -DHAVE_LIBUDEV=$(usex udev ON OFF)
+   -DSKIP_PYTHON_WRAPPER=$(usex python OFF ON)
+   -DHAVE_EXYNOS_API=$(usex exynos ON OFF)
+   -DHAVE_TDA995X_API=$(usex cubox ON OFF)
+   -DHAVE_RPI_API=$(usex raspberry-pi ON OFF)
+   )
+
+   if linux_config_exists && linux_chkconfig_present SYSFS; then
+   mycmakeargs+=( -DHAVE_P8_USB_DETECT=ON )
+   fi
+
+   # 

[gentoo-commits] repo/gentoo:master commit in: dev-libs/libcec/

2020-11-06 Thread Sam James
commit: a270f5b067b93263bfe7cc9d589e061a1c9e790a
Author: Sam James  gentoo  org>
AuthorDate: Fri Nov  6 08:23:40 2020 +
Commit: Sam James  gentoo  org>
CommitDate: Fri Nov  6 08:24:23 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a270f5b0

dev-libs/libcec: fix build with -udev

Closes: https://bugs.gentoo.org/739628
Package-Manager: Portage-3.0.8, Repoman-3.0.2
Signed-off-by: Sam James  gentoo.org>

 dev-libs/libcec/libcec-4.0.7.ebuild | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/dev-libs/libcec/libcec-4.0.7.ebuild 
b/dev-libs/libcec/libcec-4.0.7.ebuild
index 67a73ca791e..0e2d7d2ec95 100644
--- a/dev-libs/libcec/libcec-4.0.7.ebuild
+++ b/dev-libs/libcec/libcec-4.0.7.ebuild
@@ -97,9 +97,10 @@ src_configure() {
 src_compile() {
cmake-utils_src_compile
 
-   use udev && \
+   if use udev ; then
cp "${S}/debian/pulse-eight-usb-cec.udev" \
"${BUILD_DIR}/65-pulse-eight-usb-cec.udev" || die
+   fi
 }
 
 src_install() {



[gentoo-commits] repo/gentoo:master commit in: dev-libs/libcec/files/, dev-libs/libcec/

2020-08-24 Thread Ian Whyman
commit: 1ee05f3df2404423b1309fa703d2e803e794ce4e
Author: Karlson2k (Evgeny Grin)  narod  ru>
AuthorDate: Wed Aug  5 20:09:22 2020 +
Commit: Ian Whyman  gentoo  org>
CommitDate: Mon Aug 24 17:59:37 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1ee05f3d

dev-libs/libcec: bump to 4.0.7, fixes.

- Fixed man page and ChangeLog
- Fixed dependencies
- Added Linux Kernel CEC Framework support
- Binary test and demo tools are optional now udev is optional now (libcec uses 
SYSFS detection method)
- Added installation of udev USB-CEC rule
- Fixed byte-compiling Python module

Signed-off-by: Karlson2k (Evgeny Grin)  narod.ru>
Closes: https://github.com/gentoo/gentoo/pull/17022
Signed-off-by: Ian Whyman  gentoo.org>

 dev-libs/libcec/Manifest   |   1 +
 .../files/libcec-4.0.7-no-override-udev.patch  |  24 
 dev-libs/libcec/libcec-4.0.7.ebuild| 122 +
 dev-libs/libcec/metadata.xml   |   3 +
 4 files changed, 150 insertions(+)

diff --git a/dev-libs/libcec/Manifest b/dev-libs/libcec/Manifest
index afc82f2aa41..bd1494466a1 100644
--- a/dev-libs/libcec/Manifest
+++ b/dev-libs/libcec/Manifest
@@ -1,2 +1,3 @@
 DIST libcec-4.0.2.tar.gz 334995 BLAKE2B 
bdbebeb339ce39f2f740805c4c627cc5190cc0dd57d0d87e3d3aa4ba8feeba103336d035fb8b282358f2e08fa470111be43df4df48870be0e9aa93f35434d0ef
 SHA512 
7bb80965cd1bef713f59bff136dc4a7f1172c4a9bdb8e2f59c6bcc5b74110848c0b2912263280ea68177908a688127e8d7208fc43ce6e65d589343b85395a0bb
 DIST libcec-4.0.4.tar.gz 344976 BLAKE2B 
ce88730ee6e9f57a3f874dd47343e8bb12bd9d3644b58703f0b797bfe656fa25461e6847db4023fec92d9e9740f0e58b59a203258d39d8883b8ae9cde147f455
 SHA512 
8991ba96fe9a87e5e1f63ff87f77fc0fc3b735c537e2ee6cb004fdc264d75cecd043e39b49cf9e64aeadd24bb1fb57911d9c4bd6c494d9ba4035d7320c268116
+DIST libcec-4.0.7.tar.gz 355249 BLAKE2B 
5f742364804d0d10cfcd71635645d33c3dfde200e79332470d2b5b2e64966834a0604d4684ad5919a00aaf60f05f4dbbbc9ce13a0dcf0ba4fa11d1f6a0391673
 SHA512 
424540a45f9cae3d5d615d487c45033f9cdeb665b8176832495597e2cd58ef7681e13b52f6a32f8a40e1146c04a1a383f5785ea1e731c5c517a9a7843a81

diff --git a/dev-libs/libcec/files/libcec-4.0.7-no-override-udev.patch 
b/dev-libs/libcec/files/libcec-4.0.7-no-override-udev.patch
new file mode 100644
index 000..d5b7f8664a3
--- /dev/null
+++ b/dev-libs/libcec/files/libcec-4.0.7-no-override-udev.patch
@@ -0,0 +1,24 @@
+ src/libcec/cmake/CheckPlatformSupport.cmake | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/src/libcec/cmake/CheckPlatformSupport.cmake 
b/src/libcec/cmake/CheckPlatformSupport.cmake
+index 5d423df..9e77924 100644
+--- a/src/libcec/cmake/CheckPlatformSupport.cmake
 b/src/libcec/cmake/CheckPlatformSupport.cmake
+@@ -90,6 +90,7 @@ else()
+   check_function_exists(flock HAVE_FLOCK)
+ 
+   # udev
++  if (${HAVE_LIBUDEV})
+   pkg_check_modules(UDEV udev)
+   if (UDEV_FOUND)
+ set(PLATFORM_LIBREQUIRES "${PLATFORM_LIBREQUIRES} ${UDEV_LIBRARIES}")
+@@ -106,6 +107,7 @@ else()
+ list(APPEND CMAKE_REQUIRED_LIBRARIES "${UDEV_LIBRARIES}")
+ set(HAVE_P8_USB_DETECT ON CACHE BOOL "p8 usb-cec detection supported" 
FORCE)
+   endif()
++  endif()
+ 
+   # xrandr
+   check_include_files("X11/Xlib.h;X11/Xatom.h;X11/extensions/Xrandr.h" 
HAVE_RANDR_HEADERS)
+

diff --git a/dev-libs/libcec/libcec-4.0.7.ebuild 
b/dev-libs/libcec/libcec-4.0.7.ebuild
new file mode 100644
index 000..67a73ca791e
--- /dev/null
+++ b/dev-libs/libcec/libcec-4.0.7.ebuild
@@ -0,0 +1,122 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python{3_6,3_7,3_8} )
+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 ~arm64 ~x86"
+IUSE="cubox exynos python raspberry-pi kernel-cec tools +xrandr udev"
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+
+RDEPEND="udev? ( virtual/udev )
+   >=dev-libs/libplatform-2.0.0
+   tools? ( 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 )"
+
+BDEPEND="virtual/pkgconfig"
+
+CONFIG_CHECK="~USB_ACM"
+
+S="${WORKDIR}/${PN}-${MY_P}"
+
+PATCHES=(
+   "${FILESDIR}/${PN}-4.0.7-no-override-udev.patch"
+   )
+
+pkg_pretend() {
+   use udev || CONFIG_CHECK+=" ~SYSFS"
+   ERROR_SYSFS="When using libcec build without udev, kernel config option 
CONFIG_SYSFS is required to automatically detect P8 USB-CEC adapter port number"
+
+   linux-info_pkg_setup
+}
+
+pkg_setup() {
+   linux-info_pkg_setup
+   use 

[gentoo-commits] repo/gentoo:master commit in: dev-libs/libcec/

2020-05-13 Thread Agostino Sarubbo
commit: c2cc0966888a2ed57a0239057796e453d2e0994a
Author: Agostino Sarubbo  gentoo  org>
AuthorDate: Wed May 13 10:07:50 2020 +
Commit: Agostino Sarubbo  gentoo  org>
CommitDate: Wed May 13 10:07:50 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c2cc0966

dev-libs/libcec: x86 stable wrt bug #721708

Package-Manager: Portage-2.3.99, Repoman-2.3.22
RepoMan-Options: --include-arches="x86"
Signed-off-by: Agostino Sarubbo  gentoo.org>

 dev-libs/libcec/libcec-4.0.4-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/libcec/libcec-4.0.4-r1.ebuild 
b/dev-libs/libcec/libcec-4.0.4-r1.ebuild
index b669325d786..4bf945f6836 100644
--- a/dev-libs/libcec/libcec-4.0.4-r1.ebuild
+++ b/dev-libs/libcec/libcec-4.0.4-r1.ebuild
@@ -15,7 +15,7 @@ 
SRC_URI="https://github.com/Pulse-Eight/${PN}/archive/${MY_P}.tar.gz;
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="amd64 ~arm ~x86"
+KEYWORDS="amd64 ~arm x86"
 IUSE="cubox exynos python raspberry-pi +xrandr"
 REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
 



[gentoo-commits] repo/gentoo:master commit in: dev-libs/libcec/

2020-05-12 Thread Agostino Sarubbo
commit: 32501d121f141ee7d1a090a28d3a916595a9ce7f
Author: Agostino Sarubbo  gentoo  org>
AuthorDate: Tue May 12 13:04:12 2020 +
Commit: Agostino Sarubbo  gentoo  org>
CommitDate: Tue May 12 13:04:12 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=32501d12

dev-libs/libcec: amd64 stable wrt bug #721708

Package-Manager: Portage-2.3.99, Repoman-2.3.22
RepoMan-Options: --include-arches="amd64"
Signed-off-by: Agostino Sarubbo  gentoo.org>

 dev-libs/libcec/libcec-4.0.4-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/libcec/libcec-4.0.4-r1.ebuild 
b/dev-libs/libcec/libcec-4.0.4-r1.ebuild
index 0792ea9e3cb..b669325d786 100644
--- a/dev-libs/libcec/libcec-4.0.4-r1.ebuild
+++ b/dev-libs/libcec/libcec-4.0.4-r1.ebuild
@@ -15,7 +15,7 @@ 
SRC_URI="https://github.com/Pulse-Eight/${PN}/archive/${MY_P}.tar.gz;
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~amd64 ~arm ~x86"
+KEYWORDS="amd64 ~arm ~x86"
 IUSE="cubox exynos python raspberry-pi +xrandr"
 REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
 



[gentoo-commits] repo/gentoo:master commit in: dev-libs/libcec/

2020-04-18 Thread Craig Andrews
commit: b4231cadf2c2143165f9120b3de896d93e779a48
Author: Craig Andrews  gentoo  org>
AuthorDate: Sat Apr 18 17:37:26 2020 +
Commit: Craig Andrews  gentoo  org>
CommitDate: Sat Apr 18 17:55:15 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b4231cad

dev-libs/libcec: Python 3.8 compatibility

Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Craig Andrews  gentoo.org>

 dev-libs/libcec/libcec-4.0.4-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/libcec/libcec-4.0.4-r1.ebuild 
b/dev-libs/libcec/libcec-4.0.4-r1.ebuild
index c07d3a0f291..0792ea9e3cb 100644
--- a/dev-libs/libcec/libcec-4.0.4-r1.ebuild
+++ b/dev-libs/libcec/libcec-4.0.4-r1.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=7
 
-PYTHON_COMPAT=( python{3_6,3_7} )
+PYTHON_COMPAT=( python{3_6,3_7,3_8} )
 MY_PV=${PV/_p/-}
 MY_P=${PN}-${MY_PV}
 



[gentoo-commits] repo/gentoo:master commit in: dev-libs/libcec/

2020-02-10 Thread Michał Górny
commit: 8582191c1164379ae040483afd0408b2d213a120
Author: Michał Górny  gentoo  org>
AuthorDate: Mon Feb 10 11:34:18 2020 +
Commit: Michał Górny  gentoo  org>
CommitDate: Mon Feb 10 11:54:03 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8582191c

dev-libs/libcec: Remove py2

Signed-off-by: Michał Górny  gentoo.org>

 dev-libs/libcec/libcec-4.0.2-r2.ebuild | 2 +-
 dev-libs/libcec/libcec-4.0.4-r1.ebuild | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dev-libs/libcec/libcec-4.0.2-r2.ebuild 
b/dev-libs/libcec/libcec-4.0.2-r2.ebuild
index 581e64dcf5f..7a242dcd518 100644
--- a/dev-libs/libcec/libcec-4.0.2-r2.ebuild
+++ b/dev-libs/libcec/libcec-4.0.2-r2.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=6
 
-PYTHON_COMPAT=( python{2_7,3_6} )
+PYTHON_COMPAT=( python3_6 )
 MY_PV=${PV/_p/-}
 MY_P=${PN}-${MY_PV}
 

diff --git a/dev-libs/libcec/libcec-4.0.4-r1.ebuild 
b/dev-libs/libcec/libcec-4.0.4-r1.ebuild
index 06c3c9d4960..c07d3a0f291 100644
--- a/dev-libs/libcec/libcec-4.0.4-r1.ebuild
+++ b/dev-libs/libcec/libcec-4.0.4-r1.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=7
 
-PYTHON_COMPAT=( python{2_7,3_6,3_7} )
+PYTHON_COMPAT=( python{3_6,3_7} )
 MY_PV=${PV/_p/-}
 MY_P=${PN}-${MY_PV}
 



[gentoo-commits] repo/gentoo:master commit in: dev-libs/libcec/

2019-10-15 Thread Craig Andrews
commit: d5662ab17bc163d424c5761d529cec67d48d575e
Author: Craig Andrews  gentoo  org>
AuthorDate: Sun Oct 13 19:43:20 2019 +
Commit: Craig Andrews  gentoo  org>
CommitDate: Tue Oct 15 19:15:38 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d5662ab1

dev-libs/libcec: Python 3.7 compatibility

Closes: https://bugs.gentoo.org/697652
Package-Manager: Portage-2.3.76, Repoman-2.3.17
Signed-off-by: Craig Andrews  gentoo.org>
Closes: https://github.com/gentoo/gentoo/pull/13279
Signed-off-by: Craig Andrews  gentoo.org>

 dev-libs/libcec/libcec-4.0.4-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/libcec/libcec-4.0.4-r1.ebuild 
b/dev-libs/libcec/libcec-4.0.4-r1.ebuild
index 949084865bd..3b6b60f5de2 100644
--- a/dev-libs/libcec/libcec-4.0.4-r1.ebuild
+++ b/dev-libs/libcec/libcec-4.0.4-r1.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=7
 
-PYTHON_COMPAT=( python{2_7,3_5,3_6} )
+PYTHON_COMPAT=( python{2_7,3_5,3_6,3_7} )
 MY_PV=${PV/_p/-}
 MY_P=${PN}-${MY_PV}
 



[gentoo-commits] repo/gentoo:master commit in: dev-libs/libcec/

2019-03-09 Thread Ian Whyman
commit: 2256d9ed4bf210038b511bb6431f0b06a801cb8e
Author: Ian Whyman  gentoo  org>
AuthorDate: Sat Mar  9 10:45:32 2019 +
Commit: Ian Whyman  gentoo  org>
CommitDate: Sat Mar  9 10:45:32 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2256d9ed

dev-libs/libcec: EAPI bump, fix unused cmake var

Closes: https://bugs.gentoo.org/678196
Package-Manager: Portage-2.3.59, Repoman-2.3.12
Signed-off-by: Ian Whyman  gentoo.org>

 dev-libs/libcec/{libcec-4.0.4.ebuild => libcec-4.0.4-r1.ebuild} | 5 +
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/dev-libs/libcec/libcec-4.0.4.ebuild 
b/dev-libs/libcec/libcec-4.0.4-r1.ebuild
similarity index 96%
rename from dev-libs/libcec/libcec-4.0.4.ebuild
rename to dev-libs/libcec/libcec-4.0.4-r1.ebuild
index 38c70e8e920..029ac76b88b 100644
--- a/dev-libs/libcec/libcec-4.0.4.ebuild
+++ b/dev-libs/libcec/libcec-4.0.4-r1.ebuild
@@ -1,7 +1,7 @@
 # Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=6
+EAPI=7
 
 PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
 MY_PV=${PV/_p/-}
@@ -60,9 +60,6 @@ src_configure() {
-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



[gentoo-commits] repo/gentoo:master commit in: dev-libs/libcec/

2019-01-01 Thread Ian Whyman
commit: 4ac8983205ccf00034344b0e253cd799d329f27a
Author: Ian Whyman  gentoo  org>
AuthorDate: Tue Jan  1 14:14:14 2019 +
Commit: Ian Whyman  gentoo  org>
CommitDate: Tue Jan  1 14:14:14 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4ac89832

dev-libs/libcec: Tidy old

Package-Manager: Portage-2.3.53, Repoman-2.3.12
Signed-off-by: Ian Whyman  gentoo.org>

 dev-libs/libcec/Manifest   |  1 -
 dev-libs/libcec/libcec-3.1.0-r1.ebuild | 78 
 dev-libs/libcec/libcec-4.0.2-r1.ebuild | 83 --
 dev-libs/libcec/libcec-4.0.2.ebuild| 81 -
 4 files changed, 243 deletions(-)

diff --git a/dev-libs/libcec/Manifest b/dev-libs/libcec/Manifest
index 046b38aebd6..afc82f2aa41 100644
--- a/dev-libs/libcec/Manifest
+++ b/dev-libs/libcec/Manifest
@@ -1,3 +1,2 @@
-DIST libcec-3.1.0.tar.gz 1097121 BLAKE2B 
f216c03c26fd51366282d649d18ca969f362438a2803a7a15dc2aa1ec7caeb4e2a9f02b74e569da4d4c6aa24427ec5bd1870a230dc9c0bc575938c3929a7772b
 SHA512 
e06f65d85ee268ec23380186d11e53f3e477bf25b955c9314cc13555eedeffee902dc8a0f3005248250c584760ab68c461b087b305dc4ef463da628ee1ab433b
 DIST libcec-4.0.2.tar.gz 334995 BLAKE2B 
bdbebeb339ce39f2f740805c4c627cc5190cc0dd57d0d87e3d3aa4ba8feeba103336d035fb8b282358f2e08fa470111be43df4df48870be0e9aa93f35434d0ef
 SHA512 
7bb80965cd1bef713f59bff136dc4a7f1172c4a9bdb8e2f59c6bcc5b74110848c0b2912263280ea68177908a688127e8d7208fc43ce6e65d589343b85395a0bb
 DIST libcec-4.0.4.tar.gz 344976 BLAKE2B 
ce88730ee6e9f57a3f874dd47343e8bb12bd9d3644b58703f0b797bfe656fa25461e6847db4023fec92d9e9740f0e58b59a203258d39d8883b8ae9cde147f455
 SHA512 
8991ba96fe9a87e5e1f63ff87f77fc0fc3b735c537e2ee6cb004fdc264d75cecd043e39b49cf9e64aeadd24bb1fb57911d9c4bd6c494d9ba4035d7320c268116

diff --git a/dev-libs/libcec/libcec-3.1.0-r1.ebuild 
b/dev-libs/libcec/libcec-3.1.0-r1.ebuild
deleted file mode 100644
index 46b752cba09..000
--- a/dev-libs/libcec/libcec-3.1.0-r1.ebuild
+++ /dev/null
@@ -1,78 +0,0 @@
-# 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-r1.ebuild 
b/dev-libs/libcec/libcec-4.0.2-r1.ebuild
deleted file mode 100644
index f52629d1672..000
--- a/dev-libs/libcec/libcec-4.0.2-r1.ebuild
+++ /dev/null
@@ -1,83 +0,0 @@
-# Copyright 1999-2018 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 

[gentoo-commits] repo/gentoo:master commit in: dev-libs/libcec/

2019-01-01 Thread Ian Whyman
commit: 967b252cdab70098709e7c1f8f09983df58e
Author: Ian Whyman  gentoo  org>
AuthorDate: Tue Jan  1 14:10:14 2019 +
Commit: Ian Whyman  gentoo  org>
CommitDate: Tue Jan  1 14:10:33 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=967b252c

dev-libs/libcec: Bump to 4.0.4

Closes: https://bugs.gentoo.org/673584
Package-Manager: Portage-2.3.53, Repoman-2.3.12
Signed-off-by: Ian Whyman  gentoo.org>

 dev-libs/libcec/Manifest|  1 +
 dev-libs/libcec/libcec-4.0.4.ebuild | 81 +
 2 files changed, 82 insertions(+)

diff --git a/dev-libs/libcec/Manifest b/dev-libs/libcec/Manifest
index 8f7754a6131..046b38aebd6 100644
--- a/dev-libs/libcec/Manifest
+++ b/dev-libs/libcec/Manifest
@@ -1,2 +1,3 @@
 DIST libcec-3.1.0.tar.gz 1097121 BLAKE2B 
f216c03c26fd51366282d649d18ca969f362438a2803a7a15dc2aa1ec7caeb4e2a9f02b74e569da4d4c6aa24427ec5bd1870a230dc9c0bc575938c3929a7772b
 SHA512 
e06f65d85ee268ec23380186d11e53f3e477bf25b955c9314cc13555eedeffee902dc8a0f3005248250c584760ab68c461b087b305dc4ef463da628ee1ab433b
 DIST libcec-4.0.2.tar.gz 334995 BLAKE2B 
bdbebeb339ce39f2f740805c4c627cc5190cc0dd57d0d87e3d3aa4ba8feeba103336d035fb8b282358f2e08fa470111be43df4df48870be0e9aa93f35434d0ef
 SHA512 
7bb80965cd1bef713f59bff136dc4a7f1172c4a9bdb8e2f59c6bcc5b74110848c0b2912263280ea68177908a688127e8d7208fc43ce6e65d589343b85395a0bb
+DIST libcec-4.0.4.tar.gz 344976 BLAKE2B 
ce88730ee6e9f57a3f874dd47343e8bb12bd9d3644b58703f0b797bfe656fa25461e6847db4023fec92d9e9740f0e58b59a203258d39d8883b8ae9cde147f455
 SHA512 
8991ba96fe9a87e5e1f63ff87f77fc0fc3b735c537e2ee6cb004fdc264d75cecd043e39b49cf9e64aeadd24bb1fb57911d9c4bd6c494d9ba4035d7320c268116

diff --git a/dev-libs/libcec/libcec-4.0.4.ebuild 
b/dev-libs/libcec/libcec-4.0.4.ebuild
new file mode 100644
index 000..38c70e8e920
--- /dev/null
+++ b/dev-libs/libcec/libcec-4.0.4.ebuild
@@ -0,0 +1,81 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
+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"
+}



[gentoo-commits] repo/gentoo:master commit in: dev-libs/libcec/

2018-06-24 Thread Jason Zaman
commit: 3c32d00503fab272151961198d99d9a22a582279
Author: Jason Zaman  gentoo  org>
AuthorDate: Sun Jun 24 12:24:33 2018 +
Commit: Jason Zaman  gentoo  org>
CommitDate: Sun Jun 24 12:35:03 2018 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3c32d005

dev-libs/libcec: amd64 stable

Gentoo-bug: 658872
Package-Manager: Portage-2.3.40, Repoman-2.3.9

 dev-libs/libcec/libcec-4.0.2-r2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/libcec/libcec-4.0.2-r2.ebuild 
b/dev-libs/libcec/libcec-4.0.2-r2.ebuild
index 876ded98edd..57e059b8025 100644
--- a/dev-libs/libcec/libcec-4.0.2-r2.ebuild
+++ b/dev-libs/libcec/libcec-4.0.2-r2.ebuild
@@ -15,7 +15,7 @@ 
SRC_URI="https://github.com/Pulse-Eight/${PN}/archive/${MY_P}.tar.gz;
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~amd64 ~arm ~x86"
+KEYWORDS="amd64 ~arm ~x86"
 IUSE="cubox exynos python raspberry-pi +xrandr"
 REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
 



[gentoo-commits] repo/gentoo:master commit in: dev-libs/libcec/

2018-05-17 Thread Craig Andrews
commit: 8ba249faa98fa1cf24fb123912a77331291446f8
Author: Craig Andrews  gentoo  org>
AuthorDate: Tue May 15 14:44:05 2018 +
Commit: Craig Andrews  gentoo  org>
CommitDate: Thu May 17 17:31:48 2018 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8ba249fa

dev-libs/libcec: Python 3.6 support

Closes: https://bugs.gentoo.org/655786
Package-Manager: Portage-2.3.36, Repoman-2.3.9

 dev-libs/libcec/libcec-4.0.2-r2.ebuild | 83 ++
 1 file changed, 83 insertions(+)

diff --git a/dev-libs/libcec/libcec-4.0.2-r2.ebuild 
b/dev-libs/libcec/libcec-4.0.2-r2.ebuild
new file mode 100644
index 000..876ded98edd
--- /dev/null
+++ b/dev-libs/libcec/libcec-4.0.2-r2.ebuild
@@ -0,0 +1,83 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
+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}"
+
+PATCHES=( "${FILESDIR}/${P}-no-tinfo.patch" )
+
+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"
+}



[gentoo-commits] repo/gentoo:master commit in: dev-libs/libcec/, dev-libs/libcec/files/

2018-01-14 Thread Ian Whyman
commit: beda18baef91187b4c764e5c946ca3d965c36c6f
Author: Ian Whyman  gentoo  org>
AuthorDate: Sun Jan 14 13:37:00 2018 +
Commit: Ian Whyman  gentoo  org>
CommitDate: Sun Jan 14 13:37:17 2018 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=beda18ba

dev-libs/libcec: Fix build with ncurses[tinfo]

Closes: https://bugs.gentoo.org/615634
Package-Manager: Portage-2.3.19, Repoman-2.3.6

 dev-libs/libcec/files/libcec-4.0.2-no-tinfo.patch | 25 +++
 dev-libs/libcec/libcec-4.0.2-r1.ebuild| 83 +++
 2 files changed, 108 insertions(+)

diff --git a/dev-libs/libcec/files/libcec-4.0.2-no-tinfo.patch 
b/dev-libs/libcec/files/libcec-4.0.2-no-tinfo.patch
new file mode 100644
index 000..673c6f86c97
--- /dev/null
+++ b/dev-libs/libcec/files/libcec-4.0.2-no-tinfo.patch
@@ -0,0 +1,25 @@
+--- libcec-libcec-4.0.2/src/cec-client/CMakeLists.txt
 libcec-libcec-4.0.2/src/cec-client/CMakeLists.txt
+@@ -27,8 +27,12 @@ set(cecclient_SOURCES cec-client.cpp)
+ check_library_exists(curses initscr "" HAVE_CURSES_API)
+ if (HAVE_CURSES_API)
+   list(APPEND cecclient_SOURCES curses/CursesControl.cpp)
++
++  # tinfo
++  find_library(HAVE_CURSES_TINFO tinfo)
+ endif()
+ 
++
+ add_executable(cec-client ${cecclient_SOURCES})
+ set_target_properties(cec-client PROPERTIES VERSION 
${LIBCEC_VERSION_MAJOR}.${LIBCEC_VERSION_MINOR}.${LIBCEC_VERSION_PATCH})
+ target_link_libraries(cec-client ${p8-platform_LIBRARIES})
+@@ -44,6 +48,9 @@ if (NOT WIN32)
+   # curses
+   if (HAVE_CURSES_API)
+ target_link_libraries(cec-client curses)
++if (HAVE_CURSES_TINFO)
++  target_link_libraries(cec-client tinfo)
++endif()
+   endif()
+ 
+   # rt

diff --git a/dev-libs/libcec/libcec-4.0.2-r1.ebuild 
b/dev-libs/libcec/libcec-4.0.2-r1.ebuild
new file mode 100644
index 000..f52629d1672
--- /dev/null
+++ b/dev-libs/libcec/libcec-4.0.2-r1.ebuild
@@ -0,0 +1,83 @@
+# Copyright 1999-2018 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}"
+
+PATCHES=( "${FILESDIR}/${P}-no-tinfo.patch" )
+
+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"
+}



[gentoo-commits] repo/gentoo:master commit in: dev-libs/libcec/

2017-05-26 Thread Agostino Sarubbo
commit: b1285cc755fea8b62e70ab65f3ca66ded58d9773
Author: Agostino Sarubbo  gentoo  org>
AuthorDate: Fri May 26 14:04:35 2017 +
Commit: Agostino Sarubbo  gentoo  org>
CommitDate: Fri May 26 14:04:35 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b1285cc7

dev-libs/libcec: x86 stable wrt bug #619492

Package-Manager: Portage-2.3.5, Repoman-2.3.1
RepoMan-Options: --include-arches="x86"
Signed-off-by: Agostino Sarubbo  gentoo.org>

 dev-libs/libcec/libcec-4.0.2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/libcec/libcec-4.0.2.ebuild 
b/dev-libs/libcec/libcec-4.0.2.ebuild
index 7c9d97a1b7e..6c8fc121c6a 100644
--- a/dev-libs/libcec/libcec-4.0.2.ebuild
+++ b/dev-libs/libcec/libcec-4.0.2.ebuild
@@ -15,7 +15,7 @@ 
SRC_URI="https://github.com/Pulse-Eight/${PN}/archive/${MY_P}.tar.gz;
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="amd64 ~arm ~x86"
+KEYWORDS="amd64 ~arm x86"
 IUSE="cubox exynos python raspberry-pi +xrandr"
 REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
 



[gentoo-commits] repo/gentoo:master commit in: dev-libs/libcec/

2017-05-25 Thread Agostino Sarubbo
commit: 05e9e7c0ae7db5a11b419e1fa6089cb0e08aca52
Author: Agostino Sarubbo  gentoo  org>
AuthorDate: Thu May 25 10:43:39 2017 +
Commit: Agostino Sarubbo  gentoo  org>
CommitDate: Thu May 25 10:43:39 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=05e9e7c0

dev-libs/libcec: amd64 stable wrt bug #619492

Package-Manager: Portage-2.3.5, Repoman-2.3.1
RepoMan-Options: --include-arches="amd64"
Signed-off-by: Agostino Sarubbo  gentoo.org>

 dev-libs/libcec/libcec-4.0.2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/libcec/libcec-4.0.2.ebuild 
b/dev-libs/libcec/libcec-4.0.2.ebuild
index e2f1767e34c..7c9d97a1b7e 100644
--- a/dev-libs/libcec/libcec-4.0.2.ebuild
+++ b/dev-libs/libcec/libcec-4.0.2.ebuild
@@ -15,7 +15,7 @@ 
SRC_URI="https://github.com/Pulse-Eight/${PN}/archive/${MY_P}.tar.gz;
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~amd64 ~arm ~x86"
+KEYWORDS="amd64 ~arm ~x86"
 IUSE="cubox exynos python raspberry-pi +xrandr"
 REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
 



[gentoo-commits] repo/gentoo:master commit in: dev-libs/libcec/

2017-05-12 Thread Ian Whyman
commit: 9a85deaba35f1720ffed1190a32757fb942e6e4c
Author: Ian Whyman  gentoo  org>
AuthorDate: Fri May 12 21:30:45 2017 +
Commit: Ian Whyman  gentoo  org>
CommitDate: Fri May 12 21:50:42 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9a85deab

dev-libs/libcec: Drop old

Package-Manager: Portage-2.3.5, Repoman-2.3.2

 dev-libs/libcec/Manifest|  3 ---
 dev-libs/libcec/libcec-2.1.3.ebuild | 41 -
 dev-libs/libcec/libcec-2.1.4.ebuild | 42 --
 dev-libs/libcec/libcec-2.2.0.ebuild | 45 -
 4 files changed, 131 deletions(-)

diff --git a/dev-libs/libcec/Manifest b/dev-libs/libcec/Manifest
index 4395d8ec92b..5e4256d55d3 100644
--- a/dev-libs/libcec/Manifest
+++ b/dev-libs/libcec/Manifest
@@ -1,6 +1,3 @@
-DIST libcec-2.1.3.tar.gz 1087121 SHA256 
2aa88451b528184b02077ee8c6cd10e2f89121a6a05b1b35b4b792b03108a9d1 SHA512 
79ddab6e1572030d860fa2ba43db7ed4ea6eb7914d3b9936c9de622f1328c1795ae3076d0c6abde193fa610a7916439f8cebdcf3bf22b59f6546ac591b4e5956
 WHIRLPOOL 
e8400d037dee3bdb007b5e731aa794ac5dcf94ad1d4c1d1cbe39c059c77f2b2785288f3fbc987fa64eafb1dc0e2a96a9575a3cb5740edf25088c586a1b628e3d
-DIST libcec-2.1.4.tar.gz 1093796 SHA256 
79bef5232a5c9ab987ca3a2d4bfcaeb80480fd26f502dc1a996fe845d90fe147 SHA512 
e2107b2003e003de8efea4b46a7776516652a2b27a0e0983a763324b3ac1ed2995cb0adb76e2f450bea72a1a0bdecfc5b3408fa702c74189204d694f5e9d2d8a
 WHIRLPOOL 
4b8120755cf08dbc7ae8f2a5314f6c4e0c2ddc059b138ab594a26f7ac931cb34536a5bb2894a65902f1ba093007c1b08abeaf4306edef95059af8c85edad3e99
-DIST libcec-2.2.0.tar.gz 1099150 SHA256 
fd4f47a18d6e0f4b9e6f5831280207ee2b2a5fc2741ae32ae09ad12a8aa52917 SHA512 
7932a45e581e207aa651e9fe72450fda52b0441fb48e40e971a530f9d5d26b87e6446322393750d85bae223519dc2a73613352a3fe42939eff2c5f8863a09cd7
 WHIRLPOOL 
ff8581c21e280fda6333aec840cbc08fd8d23ffa795fe173076d1863c0b8fdc86fb7838c2035940dac61362ec1c74054e6e450fff7ba5426ff57a2016c6eab83
 DIST libcec-3.0.1.tar.gz 1117284 SHA256 
7e3670c8949a1964d6e5481f56dfff838857da10bdc60b506f6e9b7f117e253e SHA512 
b579853d2d20d1007cb9128c8bb457da7c0c0138bba82fd45b05971be9c2232af6a064ab0a4f88bab10f6bda23baefffc43e717ad08b86bba3cf05c211ac5ee4
 WHIRLPOOL 
46583c7c8b45613a152fe37536992186a6929733dccde0399bed0cc86d07bb6e14da58ae42a12ee1ca192a2716b95b48bda9722749abfd40418b5f0f067f7a40
 DIST libcec-3.1.0.tar.gz 1097121 SHA256 
09109d21a1b03f42c9e341d12600f2e4c41038d640269fa75408e2d36126f921 SHA512 
e06f65d85ee268ec23380186d11e53f3e477bf25b955c9314cc13555eedeffee902dc8a0f3005248250c584760ab68c461b087b305dc4ef463da628ee1ab433b
 WHIRLPOOL 
05e60255d00a897a53f042263ae73f61999875fe508a2fc6334cc00b62442d7e991a0f6a742acab440119ccdd34dfc842d97efe4fcb1a697181e76e3a0b414f8
 DIST libcec-4.0.0-3.tar.gz 333759 SHA256 
5c82a3f7075df35319bc223627f2decedb38a3322c621bb925f7807aa1e43d50 SHA512 
1a6e4860b49b84f77c233e60821f62ca1b68476212bb4f7d8354844006bf1f8c120d65b7f3d74e1f573386059b032874f98718e447fea612b7f4834cf3f7e474
 WHIRLPOOL 
10222109145e4df3f7e201f5a333939057e1c10c0be2559ff4339be2a5a4f33093195d287f267680c56f159230b15f7166d3180bebce8d1018873754a039da8b

diff --git a/dev-libs/libcec/libcec-2.1.3.ebuild 
b/dev-libs/libcec/libcec-2.1.3.ebuild
deleted file mode 100644
index f65f563886b..000
--- a/dev-libs/libcec/libcec-2.1.3.ebuild
+++ /dev/null
@@ -1,41 +0,0 @@
-# Copyright 1999-2013 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=5
-
-inherit autotools eutils linux-info vcs-snapshot
-
-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}/tarball/${P} -> ${P}.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="amd64 x86"
-IUSE="debug static-libs"
-
-RDEPEND="virtual/udev"
-DEPEND="${RDEPEND}
-   dev-libs/lockdev
-   virtual/pkgconfig"
-
-CONFIG_CHECK="~USB_ACM"
-
-src_prepare() {
-   sed -i '/^CXXFLAGS/s:-fPIC::' configure.ac || die
-   sed -i '/^CXXFLAGS/s:-Werror::' configure.ac || die
-   eautoreconf
-}
-
-src_configure() {
-   econf $(use_enable static-libs static) \
-   $(use_enable debug) \
-   --enable-optimisation \
-   --disable-rpi \
-   --disable-cubox
-}
-
-src_install() {
-   default
-   use static-libs || find "${ED}" -name '*.la' -delete
-}

diff --git a/dev-libs/libcec/libcec-2.1.4.ebuild 
b/dev-libs/libcec/libcec-2.1.4.ebuild
deleted file mode 100644
index 5019e0995c6..000
--- a/dev-libs/libcec/libcec-2.1.4.ebuild
+++ /dev/null
@@ -1,42 +0,0 @@
-# Copyright 1999-2014 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=5
-
-inherit autotools eutils linux-info
-
-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"

[gentoo-commits] repo/gentoo:master commit in: dev-libs/libcec/files/, dev-libs/libcec/

2017-05-12 Thread Ian Whyman
commit: 8c060e5fb86b2ec49cf8a4d806b5497f1b48346e
Author: Ian Whyman  gentoo  org>
AuthorDate: Fri May 12 21:50:23 2017 +
Commit: Ian Whyman  gentoo  org>
CommitDate: Fri May 12 21:50:43 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8c060e5f

dev-libs/libcec: Version bump, tidy old patch

Package-Manager: Portage-2.3.5, Repoman-2.3.2

 dev-libs/libcec/Manifest |  2 +-
 dev-libs/libcec/files/libcec-3.0.1-envcheck.patch| 16 
 .../libcec/{libcec-4.0.1.ebuild => libcec-4.0.2.ebuild}  |  1 +
 3 files changed, 2 insertions(+), 17 deletions(-)

diff --git a/dev-libs/libcec/Manifest b/dev-libs/libcec/Manifest
index 9396c2d25ea..b6fe9c91a13 100644
--- a/dev-libs/libcec/Manifest
+++ b/dev-libs/libcec/Manifest
@@ -1,2 +1,2 @@
 DIST libcec-3.1.0.tar.gz 1097121 SHA256 
09109d21a1b03f42c9e341d12600f2e4c41038d640269fa75408e2d36126f921 SHA512 
e06f65d85ee268ec23380186d11e53f3e477bf25b955c9314cc13555eedeffee902dc8a0f3005248250c584760ab68c461b087b305dc4ef463da628ee1ab433b
 WHIRLPOOL 
05e60255d00a897a53f042263ae73f61999875fe508a2fc6334cc00b62442d7e991a0f6a742acab440119ccdd34dfc842d97efe4fcb1a697181e76e3a0b414f8
-DIST libcec-4.0.1.tar.gz 333874 SHA256 
92dd5d19675d571856c67785ea2dac0d11c4205a320c500981117152ffcdc15f SHA512 
3faaee97a3cc160c1b6377b9d0cd4e2c8f57c1995843b240a5c73e3302180f89c93e9ea8f01865b6d1f7888270c77040f5cbc24dea33abe94fcfffa42bbd9e27
 WHIRLPOOL 
c4285e9a2891a792ae934548e5b6ee3331a4d5f3cae4c40ce1b4f4669048b7115345c1dca131d8b571ad04791372083b2b39e4f3be83acf103fc7c36da2f
+DIST libcec-4.0.2.tar.gz 334995 SHA256 
b8b8dd31f3ebdd5472f03ab7d401600ea0d959b1288b9ca24bf457ef60e2ba27 SHA512 
7bb80965cd1bef713f59bff136dc4a7f1172c4a9bdb8e2f59c6bcc5b74110848c0b2912263280ea68177908a688127e8d7208fc43ce6e65d589343b85395a0bb
 WHIRLPOOL 
6895cf138bfb3e4d81bfbea9269b16d505a066c980d0e040a11fef2573ff5746a37013fd6a222eceea8a65e7ddffc97a3bf05b3cb032af262cd923ba699d95b8

diff --git a/dev-libs/libcec/files/libcec-3.0.1-envcheck.patch 
b/dev-libs/libcec/files/libcec-3.0.1-envcheck.patch
deleted file mode 100644
index bb8f107312f..000
--- a/dev-libs/libcec/files/libcec-3.0.1-envcheck.patch
+++ /dev/null
@@ -1,16 +0,0 @@
-diff --git a/support/git-rev.sh b/support/git-rev.sh
-index 5dce3d0..4aadae6 100755
 a/support/git-rev.sh
-+++ b/support/git-rev.sh
-@@ -1,5 +1,8 @@
- #!/bin/sh
- 
- ## cmake doesn't read the variable when it doesn't end with a newline, and I 
haven't figured out how to have it add a newline directly...
--echo -n "`git --no-pager log --abbrev=7 -n 1 --pretty=format:"%h"`\n"
--
-+if [ -d .git ]; then
-+  echo "`git --no-pager log --abbrev=7 -n 1 --pretty=format:"%h"`"
-+else
-+  echo ""
-+fi
-

diff --git a/dev-libs/libcec/libcec-4.0.1.ebuild 
b/dev-libs/libcec/libcec-4.0.2.ebuild
similarity index 99%
rename from dev-libs/libcec/libcec-4.0.1.ebuild
rename to dev-libs/libcec/libcec-4.0.2.ebuild
index 4781ae34dec..e2f1767e34c 100644
--- a/dev-libs/libcec/libcec-4.0.1.ebuild
+++ b/dev-libs/libcec/libcec-4.0.2.ebuild
@@ -21,6 +21,7 @@ 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} )"



[gentoo-commits] repo/gentoo:master commit in: dev-libs/libcec/

2017-05-12 Thread Ian Whyman
commit: 51aebf21ceefe8a40c29ef7cc557c25d200f0ddb
Author: Ian Whyman  gentoo  org>
AuthorDate: Fri May 12 21:33:03 2017 +
Commit: Ian Whyman  gentoo  org>
CommitDate: Fri May 12 21:50:42 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=51aebf21

dev-libs/libcec: Tidy old

Package-Manager: Portage-2.3.5, Repoman-2.3.2

 dev-libs/libcec/Manifest   |  2 -
 dev-libs/libcec/libcec-3.0.1.ebuild| 58 
 dev-libs/libcec/libcec-3.1.0.ebuild| 65 ---
 dev-libs/libcec/libcec-4.0.0_p3.ebuild | 80 --
 4 files changed, 205 deletions(-)

diff --git a/dev-libs/libcec/Manifest b/dev-libs/libcec/Manifest
index 5e4256d55d3..9396c2d25ea 100644
--- a/dev-libs/libcec/Manifest
+++ b/dev-libs/libcec/Manifest
@@ -1,4 +1,2 @@
-DIST libcec-3.0.1.tar.gz 1117284 SHA256 
7e3670c8949a1964d6e5481f56dfff838857da10bdc60b506f6e9b7f117e253e SHA512 
b579853d2d20d1007cb9128c8bb457da7c0c0138bba82fd45b05971be9c2232af6a064ab0a4f88bab10f6bda23baefffc43e717ad08b86bba3cf05c211ac5ee4
 WHIRLPOOL 
46583c7c8b45613a152fe37536992186a6929733dccde0399bed0cc86d07bb6e14da58ae42a12ee1ca192a2716b95b48bda9722749abfd40418b5f0f067f7a40
 DIST libcec-3.1.0.tar.gz 1097121 SHA256 
09109d21a1b03f42c9e341d12600f2e4c41038d640269fa75408e2d36126f921 SHA512 
e06f65d85ee268ec23380186d11e53f3e477bf25b955c9314cc13555eedeffee902dc8a0f3005248250c584760ab68c461b087b305dc4ef463da628ee1ab433b
 WHIRLPOOL 
05e60255d00a897a53f042263ae73f61999875fe508a2fc6334cc00b62442d7e991a0f6a742acab440119ccdd34dfc842d97efe4fcb1a697181e76e3a0b414f8
-DIST libcec-4.0.0-3.tar.gz 333759 SHA256 
5c82a3f7075df35319bc223627f2decedb38a3322c621bb925f7807aa1e43d50 SHA512 
1a6e4860b49b84f77c233e60821f62ca1b68476212bb4f7d8354844006bf1f8c120d65b7f3d74e1f573386059b032874f98718e447fea612b7f4834cf3f7e474
 WHIRLPOOL 
10222109145e4df3f7e201f5a333939057e1c10c0be2559ff4339be2a5a4f33093195d287f267680c56f159230b15f7166d3180bebce8d1018873754a039da8b
 DIST libcec-4.0.1.tar.gz 333874 SHA256 
92dd5d19675d571856c67785ea2dac0d11c4205a320c500981117152ffcdc15f SHA512 
3faaee97a3cc160c1b6377b9d0cd4e2c8f57c1995843b240a5c73e3302180f89c93e9ea8f01865b6d1f7888270c77040f5cbc24dea33abe94fcfffa42bbd9e27
 WHIRLPOOL 
c4285e9a2891a792ae934548e5b6ee3331a4d5f3cae4c40ce1b4f4669048b7115345c1dca131d8b571ad04791372083b2b39e4f3be83acf103fc7c36da2f

diff --git a/dev-libs/libcec/libcec-3.0.1.ebuild 
b/dev-libs/libcec/libcec-3.0.1.ebuild
deleted file mode 100644
index be67d11d0c8..000
--- a/dev-libs/libcec/libcec-3.0.1.ebuild
+++ /dev/null
@@ -1,58 +0,0 @@
-# Copyright 1999-2017 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI="5"
-
-PYTHON_COMPAT=( python2_7 python3_4 )
-
-inherit cmake-utils eutils linux-info python-single-r1
-
-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/lockdev
-   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
-   raspberry-pi? ( >=media-libs/raspberrypi-userland-0_pre20160305-r1 )
-   python? ( ${PYTHON_DEPS} )
-   xrandr? ( x11-libs/libXrandr )"
-DEPEND="${RDEPEND}
-   virtual/pkgconfig
-   python? ( dev-lang/swig )"
-
-CONFIG_CHECK="~USB_ACM"
-
-S="${WORKDIR}/${PN}-${P}"
-
-pkg_setup() {
-   use python && python-single-r1_pkg_setup
-}
-
-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
-
-   cmake-utils_src_prepare
-   use python || comment_add_subdirectory "src/pyCecClient"
-}
-
-src_configure() {
-   local mycmakeargs=(
-   $(cmake-utils_useno python SKIP_PYTHON_WRAPPER)
-   $(cmake-utils_use_has exynos EXYNOS_API)
-   $(cmake-utils_use_has cubox TDA955X_API)
-   $(cmake-utils_use_has raspberry-pi RPI_API)
-   )
-   use python && mycmakeargs+=( -DPYTHON_SITEDIR="$(python_get_sitedir)" )
-
-   # raspberrypi-userland itself does not provide .pc file so using
-   # bcm_host.pc instead
-   if use raspberry-pi ; then
-   mycmakeargs+=( \
-   -DRPI_INCLUDE_DIR=$(pkg-config --variable=includedir 
bcm_host) \
-   -DRPI_LIB_DIR=$(pkg-config --variable=libdir bcm_host) )
-   fi
-

[gentoo-commits] repo/gentoo:master commit in: dev-libs/libcec/

2017-01-21 Thread Agostino Sarubbo
commit: c44287eb51e70bbf178e858d19ef700ec227ddc1
Author: Agostino Sarubbo  gentoo  org>
AuthorDate: Sat Jan 21 17:13:00 2017 +
Commit: Agostino Sarubbo  gentoo  org>
CommitDate: Sat Jan 21 17:16:11 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c44287eb

dev-libs/libcec: amd64 stable wrt bug #605986

Package-Manager: portage-2.3.0
RepoMan-Options: --include-arches="amd64"
Signed-off-by: Agostino Sarubbo  gentoo.org>

 dev-libs/libcec/libcec-3.1.0-r1.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dev-libs/libcec/libcec-3.1.0-r1.ebuild 
b/dev-libs/libcec/libcec-3.1.0-r1.ebuild
index dee8065..9ed8344 100644
--- a/dev-libs/libcec/libcec-3.1.0-r1.ebuild
+++ b/dev-libs/libcec/libcec-3.1.0-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -14,7 +14,7 @@ 
SRC_URI="https://github.com/Pulse-Eight/${PN}/archive/${P}.tar.gz;
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~amd64 ~arm ~x86"
+KEYWORDS="amd64 ~arm ~x86"
 IUSE="cubox exynos python raspberry-pi +xrandr"
 REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
 



[gentoo-commits] repo/gentoo:master commit in: dev-libs/libcec/

2017-01-09 Thread Ian Whyman
commit: 13bcc3d0c3431d207ea034c174c271be88b15d95
Author: Chris Mayo  gmail  com>
AuthorDate: Mon Jan  9 20:58:15 2017 +
Commit: Ian Whyman  gentoo  org>
CommitDate: Mon Jan  9 21:25:31 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=13bcc3d0

dev-libs/libcec: version bump 4.0.1

Package-Manager: portage-2.3.3
Closes: https://github.com/gentoo/gentoo/pull/3382

 dev-libs/libcec/Manifest|  1 +
 dev-libs/libcec/libcec-4.0.1.ebuild | 81 +
 2 files changed, 82 insertions(+)

diff --git a/dev-libs/libcec/Manifest b/dev-libs/libcec/Manifest
index ebaf39d..4395d8e 100644
--- a/dev-libs/libcec/Manifest
+++ b/dev-libs/libcec/Manifest
@@ -4,3 +4,4 @@ DIST libcec-2.2.0.tar.gz 1099150 SHA256 
fd4f47a18d6e0f4b9e6f5831280207ee2b2a5fc2
 DIST libcec-3.0.1.tar.gz 1117284 SHA256 
7e3670c8949a1964d6e5481f56dfff838857da10bdc60b506f6e9b7f117e253e SHA512 
b579853d2d20d1007cb9128c8bb457da7c0c0138bba82fd45b05971be9c2232af6a064ab0a4f88bab10f6bda23baefffc43e717ad08b86bba3cf05c211ac5ee4
 WHIRLPOOL 
46583c7c8b45613a152fe37536992186a6929733dccde0399bed0cc86d07bb6e14da58ae42a12ee1ca192a2716b95b48bda9722749abfd40418b5f0f067f7a40
 DIST libcec-3.1.0.tar.gz 1097121 SHA256 
09109d21a1b03f42c9e341d12600f2e4c41038d640269fa75408e2d36126f921 SHA512 
e06f65d85ee268ec23380186d11e53f3e477bf25b955c9314cc13555eedeffee902dc8a0f3005248250c584760ab68c461b087b305dc4ef463da628ee1ab433b
 WHIRLPOOL 
05e60255d00a897a53f042263ae73f61999875fe508a2fc6334cc00b62442d7e991a0f6a742acab440119ccdd34dfc842d97efe4fcb1a697181e76e3a0b414f8
 DIST libcec-4.0.0-3.tar.gz 333759 SHA256 
5c82a3f7075df35319bc223627f2decedb38a3322c621bb925f7807aa1e43d50 SHA512 
1a6e4860b49b84f77c233e60821f62ca1b68476212bb4f7d8354844006bf1f8c120d65b7f3d74e1f573386059b032874f98718e447fea612b7f4834cf3f7e474
 WHIRLPOOL 
10222109145e4df3f7e201f5a333939057e1c10c0be2559ff4339be2a5a4f33093195d287f267680c56f159230b15f7166d3180bebce8d1018873754a039da8b
+DIST libcec-4.0.1.tar.gz 333874 SHA256 
92dd5d19675d571856c67785ea2dac0d11c4205a320c500981117152ffcdc15f SHA512 
3faaee97a3cc160c1b6377b9d0cd4e2c8f57c1995843b240a5c73e3302180f89c93e9ea8f01865b6d1f7888270c77040f5cbc24dea33abe94fcfffa42bbd9e27
 WHIRLPOOL 
c4285e9a2891a792ae934548e5b6ee3331a4d5f3cae4c40ce1b4f4669048b7115345c1dca131d8b571ad04791372083b2b39e4f3be83acf103fc7c36da2f

diff --git a/dev-libs/libcec/libcec-4.0.1.ebuild 
b/dev-libs/libcec/libcec-4.0.1.ebuild
new file mode 100644
index ..bfc9a07
--- /dev/null
+++ b/dev-libs/libcec/libcec-4.0.1.ebuild
@@ -0,0 +1,81 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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
+   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 

[gentoo-commits] repo/gentoo:master commit in: dev-libs/libcec/

2016-12-14 Thread Ian Whyman
commit: 4fb31633628548aaada811a886bd1a39092f4e34
Author: Chris Mayo  gmail  com>
AuthorDate: Wed Dec 14 20:58:53 2016 +
Commit: Ian Whyman  gentoo  org>
CommitDate: Wed Dec 14 21:27:58 2016 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4fb31633

dev-libs/libcec: Version bump 4.0.0_p3

- Fix Python Wrapper being installed in / with USE="-python"
- Fix typo -DHAVE_TDA955X_API

Package-Manager: portage-2.3.3
Signed-off-by: Ian Whyman  gentoo.org>

 dev-libs/libcec/Manifest   |  1 +
 dev-libs/libcec/libcec-4.0.0_p3.ebuild | 81 ++
 2 files changed, 82 insertions(+)

diff --git a/dev-libs/libcec/Manifest b/dev-libs/libcec/Manifest
index 8865a24..ebaf39d 100644
--- a/dev-libs/libcec/Manifest
+++ b/dev-libs/libcec/Manifest
@@ -3,3 +3,4 @@ DIST libcec-2.1.4.tar.gz 1093796 SHA256 
79bef5232a5c9ab987ca3a2d4bfcaeb80480fd26
 DIST libcec-2.2.0.tar.gz 1099150 SHA256 
fd4f47a18d6e0f4b9e6f5831280207ee2b2a5fc2741ae32ae09ad12a8aa52917 SHA512 
7932a45e581e207aa651e9fe72450fda52b0441fb48e40e971a530f9d5d26b87e6446322393750d85bae223519dc2a73613352a3fe42939eff2c5f8863a09cd7
 WHIRLPOOL 
ff8581c21e280fda6333aec840cbc08fd8d23ffa795fe173076d1863c0b8fdc86fb7838c2035940dac61362ec1c74054e6e450fff7ba5426ff57a2016c6eab83
 DIST libcec-3.0.1.tar.gz 1117284 SHA256 
7e3670c8949a1964d6e5481f56dfff838857da10bdc60b506f6e9b7f117e253e SHA512 
b579853d2d20d1007cb9128c8bb457da7c0c0138bba82fd45b05971be9c2232af6a064ab0a4f88bab10f6bda23baefffc43e717ad08b86bba3cf05c211ac5ee4
 WHIRLPOOL 
46583c7c8b45613a152fe37536992186a6929733dccde0399bed0cc86d07bb6e14da58ae42a12ee1ca192a2716b95b48bda9722749abfd40418b5f0f067f7a40
 DIST libcec-3.1.0.tar.gz 1097121 SHA256 
09109d21a1b03f42c9e341d12600f2e4c41038d640269fa75408e2d36126f921 SHA512 
e06f65d85ee268ec23380186d11e53f3e477bf25b955c9314cc13555eedeffee902dc8a0f3005248250c584760ab68c461b087b305dc4ef463da628ee1ab433b
 WHIRLPOOL 
05e60255d00a897a53f042263ae73f61999875fe508a2fc6334cc00b62442d7e991a0f6a742acab440119ccdd34dfc842d97efe4fcb1a697181e76e3a0b414f8
+DIST libcec-4.0.0-3.tar.gz 333759 SHA256 
5c82a3f7075df35319bc223627f2decedb38a3322c621bb925f7807aa1e43d50 SHA512 
1a6e4860b49b84f77c233e60821f62ca1b68476212bb4f7d8354844006bf1f8c120d65b7f3d74e1f573386059b032874f98718e447fea612b7f4834cf3f7e474
 WHIRLPOOL 
10222109145e4df3f7e201f5a333939057e1c10c0be2559ff4339be2a5a4f33093195d287f267680c56f159230b15f7166d3180bebce8d1018873754a039da8b

diff --git a/dev-libs/libcec/libcec-4.0.0_p3.ebuild 
b/dev-libs/libcec/libcec-4.0.0_p3.ebuild
new file mode 100644
index ..fe2d7d8
--- /dev/null
+++ b/dev-libs/libcec/libcec-4.0.0_p3.ebuild
@@ -0,0 +1,81 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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
+   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"

[gentoo-commits] repo/gentoo:master commit in: dev-libs/libcec/

2016-10-26 Thread Patrice Clement
commit: 012e9e12edca0a75c2defefac6e444e2b4ebc665
Author: Anthony Ryan  gmail  com>
AuthorDate: Sat Oct 22 22:26:09 2016 +
Commit: Patrice Clement  gentoo  org>
CommitDate: Wed Oct 26 21:11:12 2016 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=012e9e12

dev-libs/libcec: various fixes.

This commit:
* bumps to EAPI=6.
* fixes improper linux-info check.
* cleans up cmake configure blocks.
* adds post-install note about uutp.
* adds missing version dependency on libplatform >= 2.

Gentoo-Bug: https://bugs.gentoo.org/588926
Gentoo-Bug: https://bugs.gentoo.org/597834

Closes: https://github.com/gentoo/gentoo/pull/2641

Signed-off-by: Patrice Clement  gentoo.org>

 dev-libs/libcec/libcec-3.1.0-r1.ebuild | 79 ++
 1 file changed, 79 insertions(+)

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 ..dee8065
--- /dev/null
+++ b/dev-libs/libcec/libcec-3.1.0-r1.ebuild
@@ -0,0 +1,79 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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"
+}



[gentoo-commits] repo/gentoo:master commit in: dev-libs/libcec/

2016-07-10 Thread Ian Whyman
commit: e5574d735db2d6f5758b18b699f283d362d15642
Author: Ian Whyman  gentoo  org>
AuthorDate: Sun Jul 10 12:24:13 2016 +
Commit: Ian Whyman  gentoo  org>
CommitDate: Sun Jul 10 12:24:45 2016 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e5574d73

dev-libs/libcec: drop unnecessary dependency on dev-libs/lockdev (#584122)

Package-Manager: portage-2.3.0

 dev-libs/libcec/libcec-3.1.0.ebuild | 1 -
 1 file changed, 1 deletion(-)

diff --git a/dev-libs/libcec/libcec-3.1.0.ebuild 
b/dev-libs/libcec/libcec-3.1.0.ebuild
index ca3..4c1028f 100644
--- a/dev-libs/libcec/libcec-3.1.0.ebuild
+++ b/dev-libs/libcec/libcec-3.1.0.ebuild
@@ -19,7 +19,6 @@ IUSE="cubox exynos python raspberry-pi +xrandr"
 REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
 
 RDEPEND="virtual/udev
-   dev-libs/lockdev
dev-libs/libplatform
raspberry-pi? ( >=media-libs/raspberrypi-userland-0_pre20160305-r1 )
xrandr? ( x11-libs/libXrandr )"



[gentoo-commits] repo/gentoo:master commit in: dev-libs/libcec/

2016-05-22 Thread Ian Whyman
commit: efd4aa961700f06ff27b98670e65e1e1384c8ece
Author: Ian Whyman  gentoo  org>
AuthorDate: Sun May 22 09:58:31 2016 +
Commit: Ian Whyman  gentoo  org>
CommitDate: Sun May 22 09:58:31 2016 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=efd4aa96

dev-libs/libcec: Version bump, EAPI=6, Fix Bug 576746

Package-Manager: portage-2.2.28

 dev-libs/libcec/Manifest|  1 +
 dev-libs/libcec/libcec-3.1.0.ebuild | 69 +
 2 files changed, 70 insertions(+)

diff --git a/dev-libs/libcec/Manifest b/dev-libs/libcec/Manifest
index 38ac81d..8865a24 100644
--- a/dev-libs/libcec/Manifest
+++ b/dev-libs/libcec/Manifest
@@ -2,3 +2,4 @@ DIST libcec-2.1.3.tar.gz 1087121 SHA256 
2aa88451b528184b02077ee8c6cd10e2f89121a6
 DIST libcec-2.1.4.tar.gz 1093796 SHA256 
79bef5232a5c9ab987ca3a2d4bfcaeb80480fd26f502dc1a996fe845d90fe147 SHA512 
e2107b2003e003de8efea4b46a7776516652a2b27a0e0983a763324b3ac1ed2995cb0adb76e2f450bea72a1a0bdecfc5b3408fa702c74189204d694f5e9d2d8a
 WHIRLPOOL 
4b8120755cf08dbc7ae8f2a5314f6c4e0c2ddc059b138ab594a26f7ac931cb34536a5bb2894a65902f1ba093007c1b08abeaf4306edef95059af8c85edad3e99
 DIST libcec-2.2.0.tar.gz 1099150 SHA256 
fd4f47a18d6e0f4b9e6f5831280207ee2b2a5fc2741ae32ae09ad12a8aa52917 SHA512 
7932a45e581e207aa651e9fe72450fda52b0441fb48e40e971a530f9d5d26b87e6446322393750d85bae223519dc2a73613352a3fe42939eff2c5f8863a09cd7
 WHIRLPOOL 
ff8581c21e280fda6333aec840cbc08fd8d23ffa795fe173076d1863c0b8fdc86fb7838c2035940dac61362ec1c74054e6e450fff7ba5426ff57a2016c6eab83
 DIST libcec-3.0.1.tar.gz 1117284 SHA256 
7e3670c8949a1964d6e5481f56dfff838857da10bdc60b506f6e9b7f117e253e SHA512 
b579853d2d20d1007cb9128c8bb457da7c0c0138bba82fd45b05971be9c2232af6a064ab0a4f88bab10f6bda23baefffc43e717ad08b86bba3cf05c211ac5ee4
 WHIRLPOOL 
46583c7c8b45613a152fe37536992186a6929733dccde0399bed0cc86d07bb6e14da58ae42a12ee1ca192a2716b95b48bda9722749abfd40418b5f0f067f7a40
+DIST libcec-3.1.0.tar.gz 1097121 SHA256 
09109d21a1b03f42c9e341d12600f2e4c41038d640269fa75408e2d36126f921 SHA512 
e06f65d85ee268ec23380186d11e53f3e477bf25b955c9314cc13555eedeffee902dc8a0f3005248250c584760ab68c461b087b305dc4ef463da628ee1ab433b
 WHIRLPOOL 
05e60255d00a897a53f042263ae73f61999875fe508a2fc6334cc00b62442d7e991a0f6a742acab440119ccdd34dfc842d97efe4fcb1a697181e76e3a0b414f8

diff --git a/dev-libs/libcec/libcec-3.1.0.ebuild 
b/dev-libs/libcec/libcec-3.1.0.ebuild
new file mode 100644
index 000..ca3
--- /dev/null
+++ b/dev-libs/libcec/libcec-3.1.0.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+
+PYTHON_COMPAT=( python2_7 python3_4 )
+
+inherit cmake-utils eutils linux-info python-single-r1
+
+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/lockdev
+   dev-libs/libplatform
+   raspberry-pi? ( >=media-libs/raspberrypi-userland-0_pre20160305-r1 )
+   xrandr? ( x11-libs/libXrandr )"
+DEPEND="${RDEPEND}
+   virtual/pkgconfig
+   python? (
+   dev-lang/swig
+   ${PYTHON_DEPS}
+   )"
+
+CONFIG_CHECK="~USB_ACM"
+
+S="${WORKDIR}/${PN}-${P}"
+
+pkg_setup() {
+   use python && python-single-r1_pkg_setup
+}
+
+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
+
+   cmake-utils_src_prepare
+   use python || comment_add_subdirectory "src/pyCecClient"
+}
+
+src_configure() {
+   local mycmakeargs=(
+   $(cmake-utils_useno python SKIP_PYTHON_WRAPPER)
+   $(cmake-utils_use_has exynos EXYNOS_API)
+   $(cmake-utils_use_has cubox TDA955X_API)
+   $(cmake-utils_use_has raspberry-pi RPI_API)
+   )
+   use python && mycmakeargs+=( -DPYTHON_SITEDIR="$(python_get_sitedir)" )
+
+   # raspberrypi-userland itself does not provide .pc file so using
+   # bcm_host.pc instead
+   if use raspberry-pi ; then
+   mycmakeargs+=( \
+   -DRPI_INCLUDE_DIR=$(pkg-config --variable=includedir 
bcm_host) \
+   -DRPI_LIB_DIR=$(pkg-config --variable=libdir bcm_host) )
+   fi
+
+   cmake-utils_src_configure
+}



[gentoo-commits] repo/gentoo:master commit in: dev-libs/libcec/

2016-04-04 Thread Michael Weber
commit: b8e2ae4448a0d60f58ef27f8cb486010214652b3
Author: Michael Weber  gentoo  org>
AuthorDate: Mon Apr  4 09:16:46 2016 +
Commit: Michael Weber  gentoo  org>
CommitDate: Mon Apr  4 09:16:46 2016 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b8e2ae44

dev-libs/libcec: RDEPEND on 

[gentoo-commits] repo/gentoo:master commit in: dev-libs/libcec/

2016-04-03 Thread Patrice Clement
commit: a882eee608cac86bc425b316eb2339c94e5079d6
Author: Patrice Clement  gentoo  org>
AuthorDate: Sun Apr  3 14:59:34 2016 +
Commit: Patrice Clement  gentoo  org>
CommitDate: Sun Apr  3 15:00:27 2016 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a882eee6

dev-libs/libcec: Revert commit 7d0d59ad0d7581e5a9c9efc6020a2998b6183edc to get 
tree back to a sane state.

Package-Manager: portage-2.2.26

 dev-libs/libcec/Manifest|  1 -
 dev-libs/libcec/libcec-3.1.0.ebuild | 69 -
 2 files changed, 70 deletions(-)

diff --git a/dev-libs/libcec/Manifest b/dev-libs/libcec/Manifest
index 8865a24..38ac81d 100644
--- a/dev-libs/libcec/Manifest
+++ b/dev-libs/libcec/Manifest
@@ -2,4 +2,3 @@ DIST libcec-2.1.3.tar.gz 1087121 SHA256 
2aa88451b528184b02077ee8c6cd10e2f89121a6
 DIST libcec-2.1.4.tar.gz 1093796 SHA256 
79bef5232a5c9ab987ca3a2d4bfcaeb80480fd26f502dc1a996fe845d90fe147 SHA512 
e2107b2003e003de8efea4b46a7776516652a2b27a0e0983a763324b3ac1ed2995cb0adb76e2f450bea72a1a0bdecfc5b3408fa702c74189204d694f5e9d2d8a
 WHIRLPOOL 
4b8120755cf08dbc7ae8f2a5314f6c4e0c2ddc059b138ab594a26f7ac931cb34536a5bb2894a65902f1ba093007c1b08abeaf4306edef95059af8c85edad3e99
 DIST libcec-2.2.0.tar.gz 1099150 SHA256 
fd4f47a18d6e0f4b9e6f5831280207ee2b2a5fc2741ae32ae09ad12a8aa52917 SHA512 
7932a45e581e207aa651e9fe72450fda52b0441fb48e40e971a530f9d5d26b87e6446322393750d85bae223519dc2a73613352a3fe42939eff2c5f8863a09cd7
 WHIRLPOOL 
ff8581c21e280fda6333aec840cbc08fd8d23ffa795fe173076d1863c0b8fdc86fb7838c2035940dac61362ec1c74054e6e450fff7ba5426ff57a2016c6eab83
 DIST libcec-3.0.1.tar.gz 1117284 SHA256 
7e3670c8949a1964d6e5481f56dfff838857da10bdc60b506f6e9b7f117e253e SHA512 
b579853d2d20d1007cb9128c8bb457da7c0c0138bba82fd45b05971be9c2232af6a064ab0a4f88bab10f6bda23baefffc43e717ad08b86bba3cf05c211ac5ee4
 WHIRLPOOL 
46583c7c8b45613a152fe37536992186a6929733dccde0399bed0cc86d07bb6e14da58ae42a12ee1ca192a2716b95b48bda9722749abfd40418b5f0f067f7a40
-DIST libcec-3.1.0.tar.gz 1097121 SHA256 
09109d21a1b03f42c9e341d12600f2e4c41038d640269fa75408e2d36126f921 SHA512 
e06f65d85ee268ec23380186d11e53f3e477bf25b955c9314cc13555eedeffee902dc8a0f3005248250c584760ab68c461b087b305dc4ef463da628ee1ab433b
 WHIRLPOOL 
05e60255d00a897a53f042263ae73f61999875fe508a2fc6334cc00b62442d7e991a0f6a742acab440119ccdd34dfc842d97efe4fcb1a697181e76e3a0b414f8

diff --git a/dev-libs/libcec/libcec-3.1.0.ebuild 
b/dev-libs/libcec/libcec-3.1.0.ebuild
deleted file mode 100644
index ca3..000
--- a/dev-libs/libcec/libcec-3.1.0.ebuild
+++ /dev/null
@@ -1,69 +0,0 @@
-# Copyright 1999-2016 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-EAPI="5"
-
-PYTHON_COMPAT=( python2_7 python3_4 )
-
-inherit cmake-utils eutils linux-info python-single-r1
-
-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/lockdev
-   dev-libs/libplatform
-   raspberry-pi? ( >=media-libs/raspberrypi-userland-0_pre20160305-r1 )
-   xrandr? ( x11-libs/libXrandr )"
-DEPEND="${RDEPEND}
-   virtual/pkgconfig
-   python? (
-   dev-lang/swig
-   ${PYTHON_DEPS}
-   )"
-
-CONFIG_CHECK="~USB_ACM"
-
-S="${WORKDIR}/${PN}-${P}"
-
-pkg_setup() {
-   use python && python-single-r1_pkg_setup
-}
-
-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
-
-   cmake-utils_src_prepare
-   use python || comment_add_subdirectory "src/pyCecClient"
-}
-
-src_configure() {
-   local mycmakeargs=(
-   $(cmake-utils_useno python SKIP_PYTHON_WRAPPER)
-   $(cmake-utils_use_has exynos EXYNOS_API)
-   $(cmake-utils_use_has cubox TDA955X_API)
-   $(cmake-utils_use_has raspberry-pi RPI_API)
-   )
-   use python && mycmakeargs+=( -DPYTHON_SITEDIR="$(python_get_sitedir)" )
-
-   # raspberrypi-userland itself does not provide .pc file so using
-   # bcm_host.pc instead
-   if use raspberry-pi ; then
-   mycmakeargs+=( \
-   -DRPI_INCLUDE_DIR=$(pkg-config --variable=includedir 
bcm_host) \
-   -DRPI_LIB_DIR=$(pkg-config --variable=libdir bcm_host) )
-   fi
-
-   cmake-utils_src_configure
-}



[gentoo-commits] repo/gentoo:master commit in: dev-libs/libcec/

2016-04-02 Thread Ian Whyman
commit: 7d0d59ad0d7581e5a9c9efc6020a2998b6183edc
Author: Ian Whyman  gentoo  org>
AuthorDate: Sat Apr  2 11:57:14 2016 +
Commit: Ian Whyman  gentoo  org>
CommitDate: Sat Apr  2 11:57:14 2016 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7d0d59ad

dev-libs/libcec: Version bump, EAPI=6, Fix 576746

Package-Manager: portage-2.2.27
RepoMan-Options: --force

 dev-libs/libcec/Manifest|  1 +
 dev-libs/libcec/libcec-3.1.0.ebuild | 69 +
 2 files changed, 70 insertions(+)

diff --git a/dev-libs/libcec/Manifest b/dev-libs/libcec/Manifest
index 38ac81d..8865a24 100644
--- a/dev-libs/libcec/Manifest
+++ b/dev-libs/libcec/Manifest
@@ -2,3 +2,4 @@ DIST libcec-2.1.3.tar.gz 1087121 SHA256 
2aa88451b528184b02077ee8c6cd10e2f89121a6
 DIST libcec-2.1.4.tar.gz 1093796 SHA256 
79bef5232a5c9ab987ca3a2d4bfcaeb80480fd26f502dc1a996fe845d90fe147 SHA512 
e2107b2003e003de8efea4b46a7776516652a2b27a0e0983a763324b3ac1ed2995cb0adb76e2f450bea72a1a0bdecfc5b3408fa702c74189204d694f5e9d2d8a
 WHIRLPOOL 
4b8120755cf08dbc7ae8f2a5314f6c4e0c2ddc059b138ab594a26f7ac931cb34536a5bb2894a65902f1ba093007c1b08abeaf4306edef95059af8c85edad3e99
 DIST libcec-2.2.0.tar.gz 1099150 SHA256 
fd4f47a18d6e0f4b9e6f5831280207ee2b2a5fc2741ae32ae09ad12a8aa52917 SHA512 
7932a45e581e207aa651e9fe72450fda52b0441fb48e40e971a530f9d5d26b87e6446322393750d85bae223519dc2a73613352a3fe42939eff2c5f8863a09cd7
 WHIRLPOOL 
ff8581c21e280fda6333aec840cbc08fd8d23ffa795fe173076d1863c0b8fdc86fb7838c2035940dac61362ec1c74054e6e450fff7ba5426ff57a2016c6eab83
 DIST libcec-3.0.1.tar.gz 1117284 SHA256 
7e3670c8949a1964d6e5481f56dfff838857da10bdc60b506f6e9b7f117e253e SHA512 
b579853d2d20d1007cb9128c8bb457da7c0c0138bba82fd45b05971be9c2232af6a064ab0a4f88bab10f6bda23baefffc43e717ad08b86bba3cf05c211ac5ee4
 WHIRLPOOL 
46583c7c8b45613a152fe37536992186a6929733dccde0399bed0cc86d07bb6e14da58ae42a12ee1ca192a2716b95b48bda9722749abfd40418b5f0f067f7a40
+DIST libcec-3.1.0.tar.gz 1097121 SHA256 
09109d21a1b03f42c9e341d12600f2e4c41038d640269fa75408e2d36126f921 SHA512 
e06f65d85ee268ec23380186d11e53f3e477bf25b955c9314cc13555eedeffee902dc8a0f3005248250c584760ab68c461b087b305dc4ef463da628ee1ab433b
 WHIRLPOOL 
05e60255d00a897a53f042263ae73f61999875fe508a2fc6334cc00b62442d7e991a0f6a742acab440119ccdd34dfc842d97efe4fcb1a697181e76e3a0b414f8

diff --git a/dev-libs/libcec/libcec-3.1.0.ebuild 
b/dev-libs/libcec/libcec-3.1.0.ebuild
new file mode 100644
index 000..ca3
--- /dev/null
+++ b/dev-libs/libcec/libcec-3.1.0.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+
+PYTHON_COMPAT=( python2_7 python3_4 )
+
+inherit cmake-utils eutils linux-info python-single-r1
+
+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/lockdev
+   dev-libs/libplatform
+   raspberry-pi? ( >=media-libs/raspberrypi-userland-0_pre20160305-r1 )
+   xrandr? ( x11-libs/libXrandr )"
+DEPEND="${RDEPEND}
+   virtual/pkgconfig
+   python? (
+   dev-lang/swig
+   ${PYTHON_DEPS}
+   )"
+
+CONFIG_CHECK="~USB_ACM"
+
+S="${WORKDIR}/${PN}-${P}"
+
+pkg_setup() {
+   use python && python-single-r1_pkg_setup
+}
+
+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
+
+   cmake-utils_src_prepare
+   use python || comment_add_subdirectory "src/pyCecClient"
+}
+
+src_configure() {
+   local mycmakeargs=(
+   $(cmake-utils_useno python SKIP_PYTHON_WRAPPER)
+   $(cmake-utils_use_has exynos EXYNOS_API)
+   $(cmake-utils_use_has cubox TDA955X_API)
+   $(cmake-utils_use_has raspberry-pi RPI_API)
+   )
+   use python && mycmakeargs+=( -DPYTHON_SITEDIR="$(python_get_sitedir)" )
+
+   # raspberrypi-userland itself does not provide .pc file so using
+   # bcm_host.pc instead
+   if use raspberry-pi ; then
+   mycmakeargs+=( \
+   -DRPI_INCLUDE_DIR=$(pkg-config --variable=includedir 
bcm_host) \
+   -DRPI_LIB_DIR=$(pkg-config --variable=libdir bcm_host) )
+   fi
+
+   cmake-utils_src_configure
+}



[gentoo-commits] repo/gentoo:master commit in: dev-libs/libcec/

2016-03-27 Thread Agostino Sarubbo
commit: ee3d115261eb909b5c83a00622dcfa6022d9b996
Author: Agostino Sarubbo  gentoo  org>
AuthorDate: Sun Mar 27 09:38:10 2016 +
Commit: Agostino Sarubbo  gentoo  org>
CommitDate: Sun Mar 27 09:38:10 2016 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ee3d1152

dev-libs/libcec: x86 stable wrt bug #575502

Package-Manager: portage-2.2.26
RepoMan-Options: --include-arches="x86"
Signed-off-by: Agostino Sarubbo  gentoo.org>

 dev-libs/libcec/libcec-3.0.1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/libcec/libcec-3.0.1.ebuild 
b/dev-libs/libcec/libcec-3.0.1.ebuild
index 7a8ef3e..8c550e6 100644
--- a/dev-libs/libcec/libcec-3.0.1.ebuild
+++ b/dev-libs/libcec/libcec-3.0.1.ebuild
@@ -14,7 +14,7 @@ 
SRC_URI="https://github.com/Pulse-Eight/${PN}/archive/${P}.tar.gz;
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="amd64 ~arm ~x86"
+KEYWORDS="amd64 ~arm x86"
 IUSE="cubox exynos python raspberry-pi +xrandr"
 REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
 



[gentoo-commits] repo/gentoo:master commit in: dev-libs/libcec/

2016-03-27 Thread Agostino Sarubbo
commit: eab038b3886b7c62a13d7757e712a7ac8682ef2c
Author: Agostino Sarubbo  gentoo  org>
AuthorDate: Sun Mar 27 09:37:21 2016 +
Commit: Agostino Sarubbo  gentoo  org>
CommitDate: Sun Mar 27 09:37:21 2016 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eab038b3

dev-libs/libcec: amd64 stable wrt bug #575502

Package-Manager: portage-2.2.26
RepoMan-Options: --include-arches="amd64"
Signed-off-by: Agostino Sarubbo  gentoo.org>

 dev-libs/libcec/libcec-3.0.1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/libcec/libcec-3.0.1.ebuild 
b/dev-libs/libcec/libcec-3.0.1.ebuild
index 8a53575..7a8ef3e 100644
--- a/dev-libs/libcec/libcec-3.0.1.ebuild
+++ b/dev-libs/libcec/libcec-3.0.1.ebuild
@@ -14,7 +14,7 @@ 
SRC_URI="https://github.com/Pulse-Eight/${PN}/archive/${P}.tar.gz;
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~amd64 ~arm ~x86"
+KEYWORDS="amd64 ~arm ~x86"
 IUSE="cubox exynos python raspberry-pi +xrandr"
 REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
 



[gentoo-commits] repo/gentoo:master commit in: dev-libs/libcec/

2016-03-26 Thread Mike Frysinger
commit: 6a7affbd5b76ff483e6c8de31c090dab1509a239
Author: Mike Frysinger  gentoo  org>
AuthorDate: Sun Mar 27 04:49:25 2016 +
Commit: Mike Frysinger  gentoo  org>
CommitDate: Sun Mar 27 04:51:37 2016 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6a7affbd

dev-libs/libcec: fix python libdir install #577612

 dev-libs/libcec/libcec-3.0.1.ebuild | 17 -
 1 file changed, 12 insertions(+), 5 deletions(-)

diff --git a/dev-libs/libcec/libcec-3.0.1.ebuild 
b/dev-libs/libcec/libcec-3.0.1.ebuild
index 0c343ba..8a53575 100644
--- a/dev-libs/libcec/libcec-3.0.1.ebuild
+++ b/dev-libs/libcec/libcec-3.0.1.ebuild
@@ -1,8 +1,9 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
-EAPI=5
+EAPI="5"
+
 PYTHON_COMPAT=( python2_7 python3_4 )
 
 inherit cmake-utils eutils linux-info python-single-r1
@@ -10,10 +11,10 @@ inherit cmake-utils eutils linux-info python-single-r1
 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="~arm ~amd64 ~x86"
-
+KEYWORDS="~amd64 ~arm ~x86"
 IUSE="cubox exynos python raspberry-pi +xrandr"
 REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
 
@@ -39,6 +40,11 @@ pkg_setup() {
 }
 
 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
+
cmake-utils_src_prepare
use python || comment_add_subdirectory "src/pyCecClient"
 }
@@ -46,9 +52,10 @@ src_prepare() {
 src_configure() {
local mycmakeargs=(
$(cmake-utils_useno python SKIP_PYTHON_WRAPPER)
-   $(cmake-utils_use_has exynos EXYNOS_API) \
+   $(cmake-utils_use_has exynos EXYNOS_API)
$(cmake-utils_use_has cubox TDA955X_API)
$(cmake-utils_use_has raspberry-pi RPI_API)
)
+   use python && mycmakeargs+=( -DPYTHON_SITEDIR="$(python_get_sitedir)" )
cmake-utils_src_configure
 }



[gentoo-commits] repo/gentoo:master commit in: dev-libs/libcec/

2015-08-26 Thread Agostino Sarubbo
commit: 465d9a13133649d1b1909e9f6088fad37d7b9b9a
Author: Agostino Sarubbo ago AT gentoo DOT org
AuthorDate: Wed Aug 26 10:59:44 2015 +
Commit: Agostino Sarubbo ago AT gentoo DOT org
CommitDate: Wed Aug 26 10:59:44 2015 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=465d9a13

dev-libs/libcec: amd64 stable wrt bug #557136

Package-Manager: portage-2.2.20.1
RepoMan-Options: --include-arches=amd64

 dev-libs/libcec/libcec-2.2.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/libcec/libcec-2.2.0.ebuild 
b/dev-libs/libcec/libcec-2.2.0.ebuild
index 57bc42c..528104a 100644
--- a/dev-libs/libcec/libcec-2.2.0.ebuild
+++ b/dev-libs/libcec/libcec-2.2.0.ebuild
@@ -11,7 +11,7 @@ HOMEPAGE=http://libcec.pulse-eight.com;
 SRC_URI=https://github.com/Pulse-Eight/${PN}/archive/${P}.tar.gz;
 LICENSE=GPL-2
 SLOT=0
-KEYWORDS=~arm ~amd64 ~x86
+KEYWORDS=amd64 ~arm ~x86
 IUSE=cubox debug exynos raspberry-pi static-libs xrandr
 
 RDEPEND=virtual/udev



[gentoo-commits] repo/gentoo:master commit in: dev-libs/libcec/, dev-libs/libcec/files/

2015-08-22 Thread Ian Whyman
commit: c65bea600f7c2f12a3c3c030d938ebbfdc70724a
Author: Ian Whyman thev00d00 AT gentoo DOT org
AuthorDate: Sat Aug 22 17:22:53 2015 +
Commit: Ian Whyman thev00d00 AT gentoo DOT org
CommitDate: Sat Aug 22 17:23:38 2015 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c65bea60

dev-libs/libcec: Version bump to 3.x

Bug: 554094

 dev-libs/libcec/Manifest  |  1 +
 dev-libs/libcec/files/libcec-3.0.1-envcheck.patch | 16 +++
 dev-libs/libcec/libcec-3.0.1.ebuild   | 54 +++
 3 files changed, 71 insertions(+)

diff --git a/dev-libs/libcec/Manifest b/dev-libs/libcec/Manifest
index de40dfd..38ac81d 100644
--- a/dev-libs/libcec/Manifest
+++ b/dev-libs/libcec/Manifest
@@ -1,3 +1,4 @@
 DIST libcec-2.1.3.tar.gz 1087121 SHA256 
2aa88451b528184b02077ee8c6cd10e2f89121a6a05b1b35b4b792b03108a9d1 SHA512 
79ddab6e1572030d860fa2ba43db7ed4ea6eb7914d3b9936c9de622f1328c1795ae3076d0c6abde193fa610a7916439f8cebdcf3bf22b59f6546ac591b4e5956
 WHIRLPOOL 
e8400d037dee3bdb007b5e731aa794ac5dcf94ad1d4c1d1cbe39c059c77f2b2785288f3fbc987fa64eafb1dc0e2a96a9575a3cb5740edf25088c586a1b628e3d
 DIST libcec-2.1.4.tar.gz 1093796 SHA256 
79bef5232a5c9ab987ca3a2d4bfcaeb80480fd26f502dc1a996fe845d90fe147 SHA512 
e2107b2003e003de8efea4b46a7776516652a2b27a0e0983a763324b3ac1ed2995cb0adb76e2f450bea72a1a0bdecfc5b3408fa702c74189204d694f5e9d2d8a
 WHIRLPOOL 
4b8120755cf08dbc7ae8f2a5314f6c4e0c2ddc059b138ab594a26f7ac931cb34536a5bb2894a65902f1ba093007c1b08abeaf4306edef95059af8c85edad3e99
 DIST libcec-2.2.0.tar.gz 1099150 SHA256 
fd4f47a18d6e0f4b9e6f5831280207ee2b2a5fc2741ae32ae09ad12a8aa52917 SHA512 
7932a45e581e207aa651e9fe72450fda52b0441fb48e40e971a530f9d5d26b87e6446322393750d85bae223519dc2a73613352a3fe42939eff2c5f8863a09cd7
 WHIRLPOOL 
ff8581c21e280fda6333aec840cbc08fd8d23ffa795fe173076d1863c0b8fdc86fb7838c2035940dac61362ec1c74054e6e450fff7ba5426ff57a2016c6eab83
+DIST libcec-3.0.1.tar.gz 1117284 SHA256 
7e3670c8949a1964d6e5481f56dfff838857da10bdc60b506f6e9b7f117e253e SHA512 
b579853d2d20d1007cb9128c8bb457da7c0c0138bba82fd45b05971be9c2232af6a064ab0a4f88bab10f6bda23baefffc43e717ad08b86bba3cf05c211ac5ee4
 WHIRLPOOL 
46583c7c8b45613a152fe37536992186a6929733dccde0399bed0cc86d07bb6e14da58ae42a12ee1ca192a2716b95b48bda9722749abfd40418b5f0f067f7a40

diff --git a/dev-libs/libcec/files/libcec-3.0.1-envcheck.patch 
b/dev-libs/libcec/files/libcec-3.0.1-envcheck.patch
new file mode 100644
index 000..bb8f107
--- /dev/null
+++ b/dev-libs/libcec/files/libcec-3.0.1-envcheck.patch
@@ -0,0 +1,16 @@
+diff --git a/support/git-rev.sh b/support/git-rev.sh
+index 5dce3d0..4aadae6 100755
+--- a/support/git-rev.sh
 b/support/git-rev.sh
+@@ -1,5 +1,8 @@
+ #!/bin/sh
+ 
+ ## cmake doesn't read the variable when it doesn't end with a newline, and I 
haven't figured out how to have it add a newline directly...
+-echo -n `git --no-pager log --abbrev=7 -n 1 --pretty=format:%h`\n
+-
++if [ -d .git ]; then
++  echo `git --no-pager log --abbrev=7 -n 1 --pretty=format:%h`
++else
++  echo unknown
++fi
+

diff --git a/dev-libs/libcec/libcec-3.0.1.ebuild 
b/dev-libs/libcec/libcec-3.0.1.ebuild
new file mode 100644
index 000..e1f411b
--- /dev/null
+++ b/dev-libs/libcec/libcec-3.0.1.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+PYTHON_COMPAT=( python2_7 python3_4 )
+
+inherit cmake-utils eutils linux-info python-single-r1
+
+DESCRIPTION=Library for communicating with the Pulse-Eight USB HDMI-CEC 
Adaptor
+HOMEPAGE=http://libcec.pulse-eight.com;
+SRC_URI=http://github.com/Pulse-Eight/${PN}/archive/${P}.tar.gz;
+LICENSE=GPL-2
+SLOT=0
+KEYWORDS=~arm ~amd64 ~x86
+
+IUSE=cubox exynos python raspberry-pi +xrandr
+REQUIRED_USE=python? ( ${PYTHON_REQUIRED_USE} )
+
+RDEPEND=virtual/udev
+   dev-libs/lockdev
+   dev-libs/libplatform
+   xrandr? ( x11-libs/libXrandr )
+DEPEND=${RDEPEND}
+   virtual/pkgconfig
+   python? (
+   dev-lang/swig
+   ${PYTHON_DEPS}
+   )
+
+CONFIG_CHECK=~USB_ACM
+
+S=${WORKDIR}/${PN}-${P}
+
+PATCHES=( ${FILESDIR}/${P}-envcheck.patch )
+
+pkg_setup() {
+   use python  python-single-r1_pkg_setup
+}
+
+src_prepare() {
+   cmake-utils_src_prepare
+   use python || comment_add_subdirectory src/pyCecClient
+}
+
+src_configure() {
+   local mycmakeargs=(
+   $(cmake-utils_useno python SKIP_PYTHON_WRAPPER)
+   $(cmake-utils_use_has exynos EXYNOS_API) \
+   $(cmake-utils_use_has cubox TDA955X_API)
+   $(cmake-utils_use_has raspberry-pi RPI_API)
+   )
+   cmake-utils_src_configure
+}