summaryrefslogtreecommitdiff
path: root/eclass/java-virtuals-2.eclass
diff options
context:
space:
mode:
Diffstat (limited to 'eclass/java-virtuals-2.eclass')
-rw-r--r--eclass/java-virtuals-2.eclass66
1 files changed, 0 insertions, 66 deletions
diff --git a/eclass/java-virtuals-2.eclass b/eclass/java-virtuals-2.eclass
deleted file mode 100644
index 2923fe35a0e5..000000000000
--- a/eclass/java-virtuals-2.eclass
+++ /dev/null
@@ -1,66 +0,0 @@
-# Copyright 1999-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-# @DEAD
-# @ECLASS: java-virtuals-2.eclass
-# @MAINTAINER:
-# java@gentoo.org
-# @AUTHOR:
-# Original Author: Alistair John Bush <ali_bush@gentoo.org>
-# @SUPPORTED_EAPIS: 8
-# @BLURB: Java virtuals eclass
-# @DESCRIPTION:
-# To provide a default (and only) src_install function for ebuilds in the
-# java-virtuals category.
-
-case ${EAPI} in
- 8) ;;
- *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
-esac
-
-if [[ -z ${_JAVA_VIRTUALS_2_ECLASS} ]] ; then
-_JAVA_VIRTUALS_2_ECLASS=1
-
-inherit java-utils-2
-
-DEPEND="dev-java/java-config"
-RDEPEND="${DEPEND}"
-
-S="${WORKDIR}"
-
-# @FUNCTION: java-virtuals-2_src_install
-# @DESCRIPTION:
-# default src_install
-
-java-virtuals-2_src_install() {
- java-virtuals-2_do_write
-}
-
-# @FUNCTION: java-pkg_do_virtuals_write
-# @INTERNAL
-# @DESCRIPTION:
-# Writes the virtual env file out to disk.
-
-java-virtuals-2_do_write() {
- java-pkg_init_paths_
-
- dodir "${JAVA_PKG_VIRTUALS_PATH}"
- {
- if [[ -n "${JAVA_VIRTUAL_PROVIDES}" ]]; then
- echo "PROVIDERS=\"${JAVA_VIRTUAL_PROVIDES}\""
- fi
-
- if [[ -n "${JAVA_VIRTUAL_VM}" ]]; then
- echo "VM=\"${JAVA_VIRTUAL_VM}\""
- fi
-
- if [[ -n "${JAVA_VIRTUAL_VM_CLASSPATH}" ]]; then
- echo "VM_CLASSPATH=\"${JAVA_VIRTUAL_VM_CLASSPATH}\""
- fi
- echo "MULTI_PROVIDER=\"${JAVA_VIRTUAL_MULTI=FALSE}\""
- } > "${JAVA_PKG_VIRTUAL_PROVIDER}"
-}
-
-fi
-
-EXPORT_FUNCTIONS src_install