commit:     69065e361cae62a086d62c148e93a07d125f3e9b
Author:     Volkmar W. Pogatzki <gentoo <AT> pogatzki <DOT> net>
AuthorDate: Tue Aug  6 13:47:46 2024 +0000
Commit:     Florian Schmaus <flow <AT> gentoo <DOT> org>
CommitDate: Tue Aug  6 16:39:29 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=69065e36

java-vm-2.eclass: remove function set_java_env

Deprecated with commit 436dd062c on 2016-08-02

Signed-off-by: Volkmar W. Pogatzki <gentoo <AT> pogatzki.net>
Closes: https://github.com/gentoo/gentoo/pull/37995
Signed-off-by: Florian Schmaus <flow <AT> gentoo.org>

 eclass/java-vm-2.eclass | 52 -------------------------------------------------
 1 file changed, 52 deletions(-)

diff --git a/eclass/java-vm-2.eclass b/eclass/java-vm-2.eclass
index c7a207ae24f7..c90cd8664f30 100644
--- a/eclass/java-vm-2.eclass
+++ b/eclass/java-vm-2.eclass
@@ -164,58 +164,6 @@ get_system_arch() {
 }
 
 
-# @FUNCTION: set_java_env
-# @DESCRIPTION:
-# Installs a vm env file.
-# DEPRECATED, use java-vm_install-env instead.
-
-set_java_env() {
-       debug-print-function ${FUNCNAME} $*
-
-       local platform="$(get_system_arch)"
-       local env_file="${ED}${JAVA_VM_CONFIG_DIR}/${VMHANDLE}"
-
-       if [[ ${1} ]]; then
-               local source_env_file="${1}"
-       else
-               local source_env_file="${FILESDIR}/${VMHANDLE}.env"
-       fi
-
-       if [[ ! -f ${source_env_file} ]]; then
-               die "Unable to find the env file: ${source_env_file}"
-       fi
-
-       dodir ${JAVA_VM_CONFIG_DIR}
-       sed \
-               -e "s/@P@/${P}/g" \
-               -e "s/@PN@/${PN}/g" \
-               -e "s/@PV@/${PV}/g" \
-               -e "s/@PF@/${PF}/g" \
-               -e "s/@SLOT@/${SLOT}/g" \
-               -e "s/@PLATFORM@/${platform}/g" \
-               -e "s/@LIBDIR@/$(get_libdir)/g" \
-               -e 
"/^LDPATH=.*lib\\/\\\"/s|\"\\(.*\\)\"|\"\\1${platform}/:\\1${platform}/server/\"|"
 \
-               < "${source_env_file}" \
-               > "${env_file}" || die "sed failed"
-
-       (
-               echo "VMHANDLE=\"${VMHANDLE}\""
-               echo "BUILD_ONLY=\"${JAVA_VM_BUILD_ONLY}\""
-       ) >> "${env_file}"
-
-       eprefixify ${env_file}
-
-       [[ -n ${JAVA_PROVIDE} ]] && echo "PROVIDES=\"${JAVA_PROVIDE}\"" >> 
${env_file}
-
-       local java_home=$(source "${env_file}"; echo ${JAVA_HOME})
-       [[ -z ${java_home} ]] && die "No JAVA_HOME defined in ${env_file}"
-
-       # Make the symlink
-       dodir "${JAVA_VM_DIR}"
-       dosym "${java_home}" "${JAVA_VM_DIR}/${VMHANDLE}"
-}
-
-
 # @FUNCTION: java-vm_install-env
 # @DESCRIPTION:
 #

Reply via email to