commit:     c97a84bfbedcd46c12c4f0e12caa17545d21f069
Author:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Sat Jan  2 12:46:56 2021 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Sat Jan  2 12:46:56 2021 +0000
URL:        https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=c97a84bf

scripts/startprefix: comes from app-portage/prefix-toolkit nowadays

Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>

 dev-lang/python/python-3.8.7.ebuild |  3 ---
 scripts/startprefix.in              | 52 -------------------------------------
 2 files changed, 55 deletions(-)

diff --git a/dev-lang/python/python-3.8.7.ebuild 
b/dev-lang/python/python-3.8.7.ebuild
index 9f21f8ecb3..bd0e52b48c 100644
--- a/dev-lang/python/python-3.8.7.ebuild
+++ b/dev-lang/python/python-3.8.7.ebuild
@@ -114,9 +114,6 @@ src_prepare() {
        sed -i -e '/sys.platform/s/darwin/disabled-darwin/' \
                Lib/urllib/request.py || die
 
-       # disable SDK usage on Darwin/macOS
-       sed -i -e '/^MACOS = /s/darwin/no-darwin/' setup.py || die
-
        eautoreconf
 }
 

diff --git a/scripts/startprefix.in b/scripts/startprefix.in
deleted file mode 100644
index 861f02dd04..0000000000
--- a/scripts/startprefix.in
+++ /dev/null
@@ -1,52 +0,0 @@
-#!@GENTOO_PORTAGE_EPREFIX@/bin/bash
-# Copyright 2006-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Id: startprefix.in 61219 2012-09-04 19:05:55Z grobian $
-
-# Fabian Groffen <[email protected]> -- 2007-03-10
-# Enters the prefix environment by starting a login shell from the
-# prefix.  The SHELL environment variable is elevated in order to make
-# applications that start login shells to work, such as `screen`.
-
-# if you come from a substantially polluted environment (another
-# Prefix), a cleanup as follows resolves most oddities I've ever seen:
-# env -i HOME=$HOME TERM=$TERM USER=$USER $SHELL -l
-# hence this script starts the Prefix shell like this
-
-
-# What is our prefix?
-EPREFIX="@GENTOO_PORTAGE_EPREFIX@"
-
-if [[ ${SHELL#${EPREFIX}} != ${SHELL} ]] ; then
-       echo "You appear to be in prefix already (SHELL=$SHELL)" > /dev/stderr
-       exit -1
-fi
-
-# not all systems have the same location for shells, however what it
-# boils down to, is that we need to know what the shell is, and then we
-# can find it in the bin dir of our prefix
-SHELL=${SHELL##*/}
-# set the prefix shell in the environment
-export SHELL=${EPREFIX}/bin/${SHELL}
-# check if the shell exists
-if [[ ! -x $SHELL ]] ; then
-       echo "Failed to find the Prefix shell, this is probably" > /dev/stderr
-       echo "because you didn't emerge the shell ${SHELL##*/}" > /dev/stderr
-       exit -1
-fi
-
-# give a small notice
-echo "Entering Gentoo Prefix ${EPREFIX}"
-# start the login shell, clean the entire environment but what's needed
-RETAIN="HOME=$HOME TERM=$TERM USER=$USER SHELL=$SHELL"
-# PROFILEREAD is necessary on SUSE not to wipe the env on shell start
-[[ -n ${PROFILEREAD} ]] && RETAIN+=" PROFILEREAD=$PROFILEREAD"
-# ssh-agent is handy to keep, of if set, inherit it
-[[ -n ${SSH_AUTH_SOCK} ]] && RETAIN+=" SSH_AUTH_SOCK=$SSH_AUTH_SOCK"
-# if we're on some X terminal, makes sense to inherit that too
-[[ -n ${DISPLAY} ]] && RETAIN+=" DISPLAY=$DISPLAY"
-# do it!
-env -i $RETAIN $SHELL -l
-# and leave a message when we exit... the shell might return non-zero
-# without having real problems, so don't send alarming messages about
-# that
-echo "Leaving Gentoo Prefix with exit status $?"

Reply via email to