public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Guilherme Amadio" <amadio@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/tensorflow/
Date: Thu,  2 Aug 2018 11:35:57 +0000 (UTC)	[thread overview]
Message-ID: <1533209636.0cdff42fddd297f60d7b47d95fcdefc0ccf66793.amadio@gentoo> (raw)

commit:     0cdff42fddd297f60d7b47d95fcdefc0ccf66793
Author:     Guilherme Amadio <amadio <AT> gentoo <DOT> org>
AuthorDate: Thu Aug  2 06:50:07 2018 +0000
Commit:     Guilherme Amadio <amadio <AT> gentoo <DOT> org>
CommitDate: Thu Aug  2 11:33:56 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0cdff42f

sci-libs/tensorflow: add prefix support

Package-Manager: Portage-2.3.44, Repoman-2.3.10

 sci-libs/tensorflow/tensorflow-1.9.0.ebuild | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/sci-libs/tensorflow/tensorflow-1.9.0.ebuild b/sci-libs/tensorflow/tensorflow-1.9.0.ebuild
index 696d6345d09..f1842e6e36f 100644
--- a/sci-libs/tensorflow/tensorflow-1.9.0.ebuild
+++ b/sci-libs/tensorflow/tensorflow-1.9.0.ebuild
@@ -301,8 +301,8 @@ src_configure() {
 		export TF_CUDA_CLANG=0
 		export TF_NEED_TENSORRT=0
 		if use cuda; then
-			export CUDA_TOOLKIT_PATH="${EROOT%/}/opt/cuda"
-			export CUDNN_INSTALL_PATH="${EROOT%/}/opt/cuda"
+			export CUDA_TOOLKIT_PATH="${EPREFIX%/}/opt/cuda"
+			export CUDNN_INSTALL_PATH="${EPREFIX%/}/opt/cuda"
 			export GCC_HOST_COMPILER_PATH="$(cuda_gccdir)/$(tc-getCC)"
 			export TF_NCCL_VERSION="1"
 
@@ -371,7 +371,7 @@ src_install() {
 		# Symlink to the main .so file
 		python_export PYTHON_SITEDIR
 		rm -rf "${D}/${PYTHON_SITEDIR}/${PN}/lib${PN}_framework.so" || die
-		dosym "../../../lib${PN}_framework.so" "${PYTHON_SITEDIR}/${PN}/lib${PN}_framework.so" || die
+		dosym "../../../lib${PN}_framework.so" "${PYTHON_SITEDIR#${EPREFIX%/}}/${PN}/lib${PN}_framework.so" || die
 
 		python_optimize
 	}
@@ -379,12 +379,12 @@ src_install() {
 	if use python; then
 		python_foreach_impl run_in_build_dir do_install
 
-		rm -f "${D}"/usr/lib/python-exec/*/tensorboard || die "failed to remove tensorboard"
+		rm -f "${ED}"/usr/lib/python-exec/*/tensorboard || die "failed to remove tensorboard"
 
 		# Symlink to python-exec scripts
-		for i in "${D}"/usr/lib/python-exec/*/*; do
+		for i in "${ED}"/usr/lib/python-exec/*/*; do
 			n="${i##*/}"
-			[[ -e "${D}/usr/bin/${n}" ]] || dosym ../lib/python-exec/python-exec2 "/usr/bin/$n"
+			[[ -e "${ED}/usr/bin/${n}" ]] || dosym ../lib/python-exec/python-exec2 "/usr/bin/$n"
 		done
 
 		python_setup
@@ -413,7 +413,7 @@ src_install() {
 
 	einfo "Installing libs"
 	# Generate pkg-config file
-	${PN}/c/generate-pc.sh --prefix=/usr --libdir=$(get_libdir) --version=${MY_PV} || die
+	${PN}/c/generate-pc.sh --prefix="${EPREFIX}"/usr --libdir=$(get_libdir) --version=${MY_PV} || die
 	insinto /usr/$(get_libdir)/pkgconfig
 	doins ${PN}.pc
 


             reply	other threads:[~2018-08-02 11:36 UTC|newest]

Thread overview: 89+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-02 11:35 Guilherme Amadio [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-02-03 19:35 [gentoo-commits] repo/gentoo:master commit in: sci-libs/tensorflow/ Jason Zaman
2023-06-27 13:11 David Seifert
2023-06-05 16:37 Jason Zaman
2023-01-10 14:15 Michał Górny
2022-11-25 18:27 Jason Zaman
2022-11-19  7:44 Sam James
2022-09-23  3:06 Jason Zaman
2022-06-26  2:45 Jason Zaman
2022-06-26  2:45 Jason Zaman
2022-06-17 18:00 Sam James
2022-02-07  1:58 Jason Zaman
2022-02-01 19:02 Michał Górny
2021-12-24 23:18 Jason Zaman
2021-12-20 10:57 David Seifert
2021-12-13  1:30 Jason Zaman
2021-12-11 20:30 Jason Zaman
2021-11-15 19:41 Jason Zaman
2021-11-15 17:52 Jason Zaman
2021-11-12 10:16 David Seifert
2021-11-05  9:56 David Seifert
2021-10-29 22:44 Sam James
2021-10-17  7:40 Sam James
2021-10-16 12:22 Jason Zaman
2021-09-24  9:59 David Seifert
2021-09-24  9:59 David Seifert
2021-08-01 13:19 Jason Zaman
2021-06-20 22:05 Jason Zaman
2021-06-20 21:56 Jason Zaman
2021-06-18 21:07 David Seifert
2021-05-04 19:23 Sam James
2021-04-13  0:26 Sam James
2020-12-27 21:10 David Seifert
2020-12-25 23:42 Jason Zaman
2020-12-25 23:42 Jason Zaman
2020-12-07  3:59 Jason Zaman
2020-12-06 20:40 Jason Zaman
2020-11-28 22:42 Jason Zaman
2020-11-12  0:46 Jason Zaman
2020-11-12  0:33 Jason Zaman
2020-10-20  0:33 Jason Zaman
2020-10-09  3:58 Jason Zaman
2020-10-09  3:41 Jason Zaman
2020-09-25 18:32 Benda XU
2020-08-30  0:26 Jason Zaman
2020-05-16  1:00 Jason Zaman
2020-04-07  3:17 Jason Zaman
2020-03-29  2:26 Jason Zaman
2020-02-08 16:25 David Seifert
2019-12-24  9:40 Jason Zaman
2019-12-11  8:56 Jason Zaman
2019-12-11  8:56 Jason Zaman
2019-12-11  3:51 Aaron Bauman
2019-12-11  2:06 Aaron Bauman
2019-12-09  3:03 Jason Zaman
2019-12-08 17:26 Jason Zaman
2019-12-02 14:50 Jason Zaman
2019-10-01 14:52 Jason Zaman
2019-08-28  8:11 Jason Zaman
2019-08-07  7:58 Jason Zaman
2019-05-11 22:30 Jason Zaman
2019-05-05 19:05 Mike Gilbert
2019-04-29 14:24 Jason Zaman
2019-04-05 15:41 Jason Zaman
2019-02-18 13:54 Jason Zaman
2019-02-01 12:17 Jason Zaman
2018-12-24 10:32 Jason Zaman
2018-10-05  9:44 Jason Zaman
2018-09-28 10:24 Jason Zaman
2018-09-22 10:51 Jason Zaman
2018-09-21 18:27 Jason Zaman
2018-09-21 17:51 Jason Zaman
2018-09-18 18:08 Jason Zaman
2018-09-15 16:02 Jason Zaman
2018-08-09 16:11 Jason Zaman
2018-08-08 17:32 Jason Zaman
2018-08-06 16:32 Jason Zaman
2018-07-17  9:56 Jason Zaman
2018-07-17  9:56 Jason Zaman
2018-07-12  5:23 Jason Zaman
2018-07-08 15:48 Jason Zaman
2018-07-08 15:29 Jason Zaman
2018-06-27  6:45 Jason Zaman
2018-06-24  5:28 Jason Zaman
2018-06-19  5:10 Jason Zaman
2018-06-12  4:07 Jason Zaman
2018-06-11 18:24 Jason Zaman
2018-05-04  3:12 Jason Zaman
2018-05-02 11:16 Jason Zaman

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=1533209636.0cdff42fddd297f60d7b47d95fcdefc0ccf66793.amadio@gentoo \
    --to=amadio@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