From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-python+bounces-290-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	by finch.gentoo.org (Postfix) with ESMTP id AC1251381F3
	for <garchives@archives.gentoo.org>; Fri, 14 Dec 2012 22:08:41 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 5F95721C0C3;
	Fri, 14 Dec 2012 22:08:37 +0000 (UTC)
Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183])
	(using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id D7C2921C0C3
	for <gentoo-python@lists.gentoo.org>; Fri, 14 Dec 2012 22:08:36 +0000 (UTC)
Received: from pomiocik.lan (159-205-67-229.adsl.inetia.pl [159.205.67.229])
	(using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	(Authenticated sender: mgorny)
	by smtp.gentoo.org (Postfix) with ESMTPSA id 8CF3C33DCE0;
	Fri, 14 Dec 2012 22:08:34 +0000 (UTC)
From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org>
To: gentoo-python@lists.gentoo.org
Cc: python@gentoo.org,
	cpp@gentoo.org,
	=?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <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
Message-Id: <1355522916-23815-3-git-send-email-mgorny@gentoo.org>
X-Mailer: git-send-email 1.8.0.2
In-Reply-To: <1355522916-23815-1-git-send-email-mgorny@gentoo.org>
References: <1355522916-23815-1-git-send-email-mgorny@gentoo.org>
Precedence: bulk
List-Post: <mailto:gentoo-python@lists.gentoo.org>
List-Help: <mailto:gentoo-python+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-python+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-python+subscribe@lists.gentoo.org>
List-Id: Discussions centering around the Python ecosystem in Gentoo Linux <gentoo-python.gentoo.org>
X-BeenThere: gentoo-python@gentoo.org
X-BeenThere: gentoo-python@lists.gentoo.org
X-Archives-Salt: 5131b0a9-3d86-44e5-8bcc-b23d0ac902ea
X-Archives-Hash: 4c2722d25b7b0f7374c636de5596fd9c

---
 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