public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in dev-java/java-config/files: python-abi-support.patch
@ 2010-12-13 10:22 Alistair Bush (ali_bush)
  0 siblings, 0 replies; only message in thread
From: Alistair Bush (ali_bush) @ 2010-12-13 10:22 UTC (permalink / raw
  To: gentoo-commits

ali_bush    10/12/13 10:22:33

  Added:                python-abi-support.patch
  Log:
  Add special handling of Python-specific variables for support for Jython. #348306
  
  (Portage version: 2.1.9.25/cvs/Linux x86_64)

Revision  Changes    Path
1.1                  dev-java/java-config/files/python-abi-support.patch

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/java-config/files/python-abi-support.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/java-config/files/python-abi-support.patch?rev=1.1&content-type=text/plain

Index: python-abi-support.patch
===================================================================
--- src/launcher.bash
+++ src/launcher.bash
@@ -6,6 +6,19 @@
 	exit 1
 }
 
+# Save Python-specific variables for support for Jython
+# ---------------------
+_EPYTHON="${EPYTHON}"
+_GENTOO_PYTHON_PROCESS_NAME="${GENTOO_PYTHON_PROCESS_NAME}"
+_GENTOO_PYTHON_WRAPPER_SCRIPT_PATH="${GENTOO_PYTHON_WRAPPER_SCRIPT_PATH}"
+_GENTOO_PYTHON_TARGET_SCRIPT_PATH="${GENTOO_PYTHON_TARGET_SCRIPT_PATH}"
+_GENTOO_PYTHON_TARGET_SCRIPT_PATH_VERIFICATION="${GENTOO_PYTHON_TARGET_SCRIPT_PATH_VERIFICATION}"
+unset EPYTHON
+unset GENTOO_PYTHON_PROCESS_NAME
+unset GENTOO_PYTHON_WRAPPER_SCRIPT_PATH
+unset GENTOO_PYTHON_TARGET_SCRIPT_PATH
+unset GENTOO_PYTHON_TARGET_SCRIPT_PATH_VERIFICATION
+
 # Source package env
 # ---------------------
 gjl_user_env="${HOME}/.gentoo/java-config-2/launcher.d/${gjl_package}"
@@ -54,6 +67,14 @@
 	abort "Dont know what to run :(("
 fi
 
+# Restore Python-specific variables for support for Jython
+# ---------------------
+[[ -n ${_EPYTHON} ]] && export EPYTHON="${_EPYTHON}"
+[[ -n ${_GENTOO_PYTHON_PROCESS_NAME} ]] && export GENTOO_PYTHON_PROCESS_NAME="${_GENTOO_PYTHON_PROCESS_NAME}"
+[[ -n ${_GENTOO_PYTHON_WRAPPER_SCRIPT_PATH} ]] && export GENTOO_PYTHON_WRAPPER_SCRIPT_PATH="${_GENTOO_PYTHON_WRAPPER_SCRIPT_PATH}"
+[[ -n ${_GENTOO_PYTHON_TARGET_SCRIPT_PATH} ]] && export GENTOO_PYTHON_TARGET_SCRIPT_PATH="${_GENTOO_PYTHON_TARGET_SCRIPT_PATH}"
+[[ -n ${_GENTOO_PYTHON_TARGET_SCRIPT_PATH_VERIFICATION} ]] && export GENTOO_PYTHON_TARGET_SCRIPT_PATH_VERIFICATION="${_GENTOO_PYTHON_TARGET_SCRIPT_PATH_VERIFICATION}"
+
 # Run it
 # --------
 






^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-12-13 10:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-13 10:22 [gentoo-commits] gentoo-x86 commit in dev-java/java-config/files: python-abi-support.patch Alistair Bush (ali_bush)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox