public inbox for gentoo-python@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-python@lists.gentoo.org
Cc: python@gentoo.org, cpp@gentoo.org, "Michał Górny" <mgorny@gentoo.org>
Subject: [gentoo-python] [PATCH 2/3] Commonize out $(python_get_sitedir)/boost into a variable.
Date: Fri, 14 Dec 2012 23:08:35 +0100	[thread overview]
Message-ID: <1355522916-23815-3-git-send-email-mgorny@gentoo.org> (raw)
In-Reply-To: <1355522916-23815-1-git-send-email-mgorny@gentoo.org>

---
 gx86/dev-libs/boost/boost-1.52.0-r5.ebuild | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/gx86/dev-libs/boost/boost-1.52.0-r5.ebuild b/gx86/dev-libs/boost/boost-1.52.0-r5.ebuild
index 4f20fdf..87c7561 100644
--- a/gx86/dev-libs/boost/boost-1.52.0-r5.ebuild
+++ b/gx86/dev-libs/boost/boost-1.52.0-r5.ebuild
@@ -205,9 +205,10 @@ src_install () {
 			# Move mpi.so Python module to Python site-packages directory.
 			# https://svn.boost.org/trac/boost/ticket/2838
 			if use mpi; then
-				dodir $(python_get_sitedir)/boost
-				mv "${D}usr/$(get_libdir)/mpi.so" "${D}$(python_get_sitedir)/boost" || die
-				cat << EOF > "${D}$(python_get_sitedir)/boost/__init__.py" || die
+				local moddir=$(python_get_sitedir)/boost
+				dodir "${moddir}"
+				mv "${D}usr/$(get_libdir)/mpi.so" "${D}${moddir}" || die
+				cat << EOF > "${D}${moddir}/__init__.py" || die
 import sys
 if sys.platform.startswith('linux'):
 	import DLFCN
-- 
1.8.0.2



  parent reply	other threads:[~2012-12-14 22:08 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-14 22:08 [gentoo-python] [PATCHes] boost migration to python-r1 Michał Górny
2012-12-14 22:08 ` [gentoo-python] [PATCH 1/3] Let boost figure out the Python includedir itself Michał Górny
2012-12-15 11:34   ` [gentoo-python] " Tiziano Müller
2012-12-15 14:27     ` [gentoo-python] [PATCH] Pass absolute Python interpreter path to boost Michał Górny
2012-12-14 22:08 ` Michał Górny [this message]
2012-12-15 11:35   ` [gentoo-python] Re: [PATCH 2/3] Commonize out $(python_get_sitedir)/boost into a variable Tiziano Müller
2012-12-15 12:02     ` Michał Górny
2012-12-14 22:08 ` [gentoo-python] [PATCH 3/3] Convert to python-r1 Michał Górny
2012-12-15 11:42   ` [gentoo-python] " Tiziano Müller
2012-12-15 12:17     ` Michał Górny

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=1355522916-23815-3-git-send-email-mgorny@gentoo.org \
    --to=mgorny@gentoo.org \
    --cc=cpp@gentoo.org \
    --cc=gentoo-python@lists.gentoo.org \
    --cc=python@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