public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Zac Medico (zmedico)" <zmedico@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] gentoo-x86 commit in sys-apps/portage: portage-9999.ebuild ChangeLog
Date: Thu,  8 Dec 2011 22:44:01 +0000 (UTC)	[thread overview]
Message-ID: <20111208224401.43D882004B@flycatcher.gentoo.org> (raw)

zmedico     11/12/08 22:44:01

  Modified:             portage-9999.ebuild ChangeLog
  Log:
  Add support for prefix installs.
  
  (Portage version: 2.2.0_alpha79_p39/cvs/Linux i686)

Revision  Changes    Path
1.35                 sys-apps/portage/portage-9999.ebuild

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/portage/portage-9999.ebuild?rev=1.35&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/portage/portage-9999.ebuild?rev=1.35&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/portage/portage-9999.ebuild?r1=1.34&r2=1.35

Index: portage-9999.ebuild
===================================================================
RCS file: /var/cvsroot/gentoo-x86/sys-apps/portage/portage-9999.ebuild,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -r1.34 -r1.35
--- portage-9999.ebuild	12 Nov 2011 16:16:11 -0000	1.34
+++ portage-9999.ebuild	8 Dec 2011 22:44:01 -0000	1.35
@@ -1,6 +1,6 @@
 # Copyright 1999-2011 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/portage/portage-9999.ebuild,v 1.34 2011/11/12 16:16:11 zmedico Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/portage/portage-9999.ebuild,v 1.35 2011/12/08 22:44:01 zmedico Exp $
 
 EAPI=3
 inherit git-2 eutils multilib python
@@ -125,6 +125,22 @@
 		einfo "Converting shebangs for python2..."
 		python_convert_shebangs -r 2 .
 	fi
+
+	if [[ -n ${EPREFIX} ]] ; then
+		einfo "Setting portage.const.EPREFIX ..."
+		sed -e "s|^EPREFIX=.*|EPREFIX=\"${EPREFIX}\"|" -i pym/portage/const.py || \
+			die "Failed to patch portage.const.EPREFIX"
+
+		einfo "Prefixing shebangs ..."
+		find . -type f -print0 | \
+		while read -r -d $'\0' ; do
+			local shebang=$(head -n1 "$REPLY")
+			if [[ ${shebang} == "#!"* && ! ${shebang} == "#!${EPREFIX}/"* ]] ; then
+				sed -i -e "1s:.*:#!${EPREFIX}${shebang:2}:" "$REPLY" || \
+					die "sed failed"
+			fi
+		done
+	fi
 }
 
 src_compile() {



1.921                sys-apps/portage/ChangeLog

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/portage/ChangeLog?rev=1.921&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/portage/ChangeLog?rev=1.921&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/portage/ChangeLog?r1=1.920&r2=1.921

Index: ChangeLog
===================================================================
RCS file: /var/cvsroot/gentoo-x86/sys-apps/portage/ChangeLog,v
retrieving revision 1.920
retrieving revision 1.921
diff -u -r1.920 -r1.921
--- ChangeLog	29 Nov 2011 06:53:36 -0000	1.920
+++ ChangeLog	8 Dec 2011 22:44:01 -0000	1.921
@@ -1,6 +1,9 @@
 # ChangeLog for sys-apps/portage
 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/portage/ChangeLog,v 1.920 2011/11/29 06:53:36 zmedico Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/portage/ChangeLog,v 1.921 2011/12/08 22:44:01 zmedico Exp $
+
+  08 Dec 2011; Zac Medico <zmedico@gentoo.org> portage-9999.ebuild:
+  Add support for prefix installs.
 
   29 Nov 2011; Zac Medico <zmedico@gentoo.org> -portage-2.1.10.38.ebuild,
   -portage-2.2.0_alpha78.ebuild:






             reply	other threads:[~2011-12-08 22:44 UTC|newest]

Thread overview: 48+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-08 22:44 Zac Medico (zmedico) [this message]
  -- strict thread matches above, loose matches on Subject: below --
2015-04-25 15:46 [gentoo-commits] gentoo-x86 commit in sys-apps/portage: portage-9999.ebuild ChangeLog Brian Dolbec (dolsen)
2015-04-25 15:32 Brian Dolbec (dolsen)
2015-02-13 17:47 Brian Dolbec (dolsen)
2014-12-06 17:34 Brian Dolbec (dolsen)
2014-09-26 17:04 Brian Dolbec (dolsen)
2014-09-26  2:28 Brian Dolbec (dolsen)
2014-09-12  7:04 Michal Gorny (mgorny)
2014-09-11 22:46 Michal Gorny (mgorny)
2014-07-26  9:48 Michal Gorny (mgorny)
2014-04-06 15:32 Michal Gorny (mgorny)
2014-01-13 23:25 Mike Gilbert (floppym)
2014-01-13 19:56 Brian Dolbec (dolsen)
2013-07-26 20:07 Zac Medico (zmedico)
2013-07-25 22:09 Zac Medico (zmedico)
2013-07-25 18:11 Zac Medico (zmedico)
2013-07-23  3:18 Zac Medico (zmedico)
2013-07-22  3:13 Zac Medico (zmedico)
2013-07-21 16:42 Zac Medico (zmedico)
2013-05-16 13:59 Zac Medico (zmedico)
2013-03-21 23:39 Zac Medico (zmedico)
2013-01-14 23:15 Zac Medico (zmedico)
2013-01-14 17:47 Zac Medico (zmedico)
2012-07-24 19:17 Zac Medico (zmedico)
2012-07-24  9:11 Michal Gorny (mgorny)
2012-06-23  7:32 Zac Medico (zmedico)
2012-06-04 23:04 Zac Medico (zmedico)
2012-03-23 19:02 Zac Medico (zmedico)
2012-03-17  1:57 Zac Medico (zmedico)
2012-02-14 19:06 Zac Medico (zmedico)
2011-12-22  4:46 Zac Medico (zmedico)
2011-12-10  0:50 Zac Medico (zmedico)
2011-12-09 20:29 Zac Medico (zmedico)
2011-12-09 17:59 Zac Medico (zmedico)
2011-11-11 18:21 Zac Medico (zmedico)
2011-11-02  5:26 Zac Medico (zmedico)
2011-07-12 17:59 Zac Medico (zmedico)
2011-07-10 14:03 Zac Medico (zmedico)
2011-05-06  4:21 Zac Medico (zmedico)
2011-02-25 20:46 Zac Medico (zmedico)
2010-09-20  4:32 Zac Medico (zmedico)
2010-08-30 22:16 Zac Medico (zmedico)
2010-08-30 21:55 Zac Medico (zmedico)
2010-08-14 18:55 Zac Medico (zmedico)
2010-07-27  7:52 Zac Medico (zmedico)
2010-04-28  7:26 Zac Medico (zmedico)
2010-03-28  5:49 Zac Medico (zmedico)
2010-03-25  2:38 Sebastian Pipping (sping)

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=20111208224401.43D882004B@flycatcher.gentoo.org \
    --to=zmedico@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