From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 0349E139084 for ; Wed, 14 Dec 2016 21:28:47 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1D8BA21C06A; Wed, 14 Dec 2016 21:28:46 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D860A21C06A for ; Wed, 14 Dec 2016 21:28:45 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 2DD3B34102B for ; Wed, 14 Dec 2016 21:28:44 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 7CD241F2F for ; Wed, 14 Dec 2016 21:28:42 +0000 (UTC) From: "Ian Whyman" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Ian Whyman" Message-ID: <1481750878.4fb31633628548aaada811a886bd1a39092f4e34.thev00d00@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/libcec/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-libs/libcec/Manifest dev-libs/libcec/libcec-4.0.0_p3.ebuild X-VCS-Directories: dev-libs/libcec/ X-VCS-Committer: thev00d00 X-VCS-Committer-Name: Ian Whyman X-VCS-Revision: 4fb31633628548aaada811a886bd1a39092f4e34 X-VCS-Branch: master Date: Wed, 14 Dec 2016 21:28:42 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: e2347e91-431f-4673-981f-5f0697b69f59 X-Archives-Hash: 12804bfb711604711c610f2dcfc13213 commit: 4fb31633628548aaada811a886bd1a39092f4e34 Author: Chris Mayo gmail com> AuthorDate: Wed Dec 14 20:58:53 2016 +0000 Commit: Ian Whyman gentoo org> CommitDate: Wed Dec 14 21:27:58 2016 +0000 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 00000000..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" + elog "read/write access to the device. You can ensure this by adding" + elog "them to the uucp group" +}