public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Mike Frysinger" <vapier@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/libcec/
Date: Sun, 27 Mar 2016 04:52:04 +0000 (UTC)	[thread overview]
Message-ID: <1459054297.6a7affbd5b76ff483e6c8de31c090dab1509a239.vapier@gentoo> (raw)

commit:     6a7affbd5b76ff483e6c8de31c090dab1509a239
Author:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
AuthorDate: Sun Mar 27 04:49:25 2016 +0000
Commit:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
CommitDate: Sun Mar 27 04:51:37 2016 +0000
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
 }


             reply	other threads:[~2016-03-27  4:52 UTC|newest]

Thread overview: 47+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-27  4:52 Mike Frysinger [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-05-28 18:19 [gentoo-commits] repo/gentoo:master commit in: dev-libs/libcec/ Arthur Zamarin
2024-05-28 12:35 Sam James
2024-05-28 12:29 Michał Górny
2024-04-22 16:52 Viorel Munteanu
2024-02-10 21:24 James Le Cuirot
2023-05-28 18:38 Andreas Sturmlechner
2023-05-05  9:03 Arthur Zamarin
2023-05-02 20:15 Sam James
2023-05-02 20:11 Sam James
2023-05-02  8:24 Viorel Munteanu
2022-08-27 11:45 Yixun Lan
2022-04-28  3:34 Sam James
2021-11-02  8:38 Arthur Zamarin
2021-05-19 23:38 Craig Andrews
2021-03-29 14:50 Sam James
2021-01-03  1:18 Sam James
2020-11-06  8:33 Sam James
2020-11-06  8:33 Sam James
2020-11-06  8:33 Sam James
2020-11-06  8:24 Sam James
2020-05-13 10:08 Agostino Sarubbo
2020-05-12 13:05 Agostino Sarubbo
2020-04-18 17:55 Craig Andrews
2020-02-10 11:54 Michał Górny
2019-10-15 19:15 Craig Andrews
2019-03-09 10:45 Ian Whyman
2019-01-01 14:14 Ian Whyman
2019-01-01 14:10 Ian Whyman
2018-06-24 12:37 Jason Zaman
2018-05-17 17:31 Craig Andrews
2017-05-26 14:05 Agostino Sarubbo
2017-05-25 10:44 Agostino Sarubbo
2017-05-12 21:50 Ian Whyman
2017-05-12 21:50 Ian Whyman
2017-01-21 17:16 Agostino Sarubbo
2017-01-09 21:25 Ian Whyman
2016-12-14 21:28 Ian Whyman
2016-10-26 21:11 Patrice Clement
2016-07-10 12:25 Ian Whyman
2016-05-22  9:59 Ian Whyman
2016-04-04  9:19 Michael Weber
2016-04-03 15:14 Patrice Clement
2016-04-02 11:57 Ian Whyman
2016-03-27  9:38 Agostino Sarubbo
2016-03-27  9:37 Agostino Sarubbo
2015-08-26 11:00 Agostino Sarubbo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1459054297.6a7affbd5b76ff483e6c8de31c090dab1509a239.vapier@gentoo \
    --to=vapier@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox