/[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.18 Revision 1.19
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.18 2007/10/09 10:18:14 ali_bush Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/java-vm-2.eclass,v 1.19 2007/12/16 17:11:01 caster 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
193 # Make the symlink 193 # Make the symlink
194 dosym ${java_home} ${JAVA_VM_DIR}/${VMHANDLE} \ 194 dosym ${java_home} ${JAVA_VM_DIR}/${VMHANDLE} \
195 || die "Failed to make VM symlink at ${JAVA_VM_DIR}/${VMHANDLE}" 195 || die "Failed to make VM symlink at ${JAVA_VM_DIR}/${VMHANDLE}"
196} 196}
197 197
198# -----------------------------------------------------------------------------
199# @ebuild-function java-vm_revdep-mask
200#
201# Installs a revdep-rebuild control file which SEARCH_DIR_MASK set to the path
202# where the VM is installed. Prevents pointless rebuilds - see bug #177925.
203# Also gives a notice to the user.
204#
205# @example
206# java-vm_revdep-mask
207# java-vm_revdep-mask /path/to/jdk/
208#
209# @param $1 - Path of the VM (defaults to /opt/${P} if not set)
210# ------------------------------------------------------------------------------
211java-vm_revdep-mask() {
212 local VMROOT="${1-/opt/${P}}"
213
214 dodir /etc/revdep-rebuild/
215 echo "SEARCH_DIRS_MASK=\"${VMROOT}\""> "${D}/etc/revdep-rebuild/61-${VMHANDLE}"
216
217 elog "A revdep-rebuild control file was installed to prevent reinstalls due to"
218 elog "missing dependencies (see bug #177925 for more info). Note that some parts"
219 elog "of the JVM may require dependencies that are pulled only through respective"
220 elog "USE flags (typically X, alsa, odbc) and some Java code may fail without them."
221}
198 222
199java_get_plugin_dir_() { 223java_get_plugin_dir_() {
200 echo /usr/$(get_libdir)/nsbrowser/plugins 224 echo /usr/$(get_libdir)/nsbrowser/plugins
201} 225}
202 226

Legend:
Removed from v.1.18  
changed lines
  Added in v.1.19

  ViewVC Help
Powered by ViewVC 1.1.20