/[gentoo-x86]/eclass/java-vm-2.eclass
Gentoo

Diff of /eclass/java-vm-2.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.27 Revision 1.28
1# Copyright 1999-2004 Gentoo Foundation 1# Copyright 1999-2004 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/java-vm-2.eclass,v 1.27 2009/04/17 22:50:41 caster Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/java-vm-2.eclass,v 1.28 2009/08/27 21:49:04 ali_bush Exp $
4 4
5# ----------------------------------------------------------------------------- 5# -----------------------------------------------------------------------------
6# @eclass-begin 6# @eclass-begin
7# @eclass-shortdesc Java Virtual Machine eclass 7# @eclass-shortdesc Java Virtual Machine eclass
8# @eclass-maintainer java@gentoo.org 8# @eclass-maintainer java@gentoo.org
22 22
23export WANT_JAVA_CONFIG=2 23export WANT_JAVA_CONFIG=2
24 24
25JAVA_VM_CONFIG_DIR="/usr/share/java-config-2/vm" 25JAVA_VM_CONFIG_DIR="/usr/share/java-config-2/vm"
26JAVA_VM_DIR="/usr/lib/jvm" 26JAVA_VM_DIR="/usr/lib/jvm"
27JAVA_VM_BUILD_ONLY="${JAVA_VM_BUILD_ONLY:-FALSE}"
27 28
28EXPORT_FUNCTIONS pkg_setup pkg_postinst pkg_prerm pkg_postrm 29EXPORT_FUNCTIONS pkg_setup pkg_postinst pkg_prerm pkg_postrm
29 30
30java-vm-2_pkg_setup() { 31java-vm-2_pkg_setup() {
31 if [[ "${SLOT}" != "0" ]]; then 32 if [[ "${SLOT}" != "0" ]]; then
132 -e "s/@PLATFORM@/${platform}/g" \ 133 -e "s/@PLATFORM@/${platform}/g" \
133 -e "/^LDPATH=.*lib\\/\\\"/s|\"\\(.*\\)\"|\"\\1${platform}/:\\1${platform}/server/\"|" \ 134 -e "/^LDPATH=.*lib\\/\\\"/s|\"\\(.*\\)\"|\"\\1${platform}/:\\1${platform}/server/\"|" \
134 < ${source_env_file} \ 135 < ${source_env_file} \
135 > ${env_file} || die "sed failed" 136 > ${env_file} || die "sed failed"
136 137
138 (
137 echo "VMHANDLE=\"${VMHANDLE}\"" >> ${env_file} 139 echo "VMHANDLE=\"${VMHANDLE}\""
140 echo "BUILD_ONLY=\"${JAVA_VM_BUILD_ONLY}\""
141 ) >> ${env_file}
138 142
139 [[ -n ${JAVA_PROVIDE} ]] && echo "PROVIDES=\"${JAVA_PROVIDE}\"" >> ${env_file} 143 [[ -n ${JAVA_PROVIDE} ]] && echo "PROVIDES=\"${JAVA_PROVIDE}\"" >> ${env_file}
140 144
141 local java_home=$(source ${env_file}; echo ${JAVA_HOME}) 145 local java_home=$(source ${env_file}; echo ${JAVA_HOME})
142 [[ -z ${java_home} ]] && die "No JAVA_HOME defined in ${env_file}" 146 [[ -z ${java_home} ]] && die "No JAVA_HOME defined in ${env_file}"

Legend:
Removed from v.1.27  
changed lines
  Added in v.1.28

  ViewVC Help
Powered by ViewVC 1.1.20