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

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

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

Revision 1.126 Revision 1.127
4# Copyright (c) 2004, Karl Trygve Kalleberg <karltk@gentoo.org> 4# Copyright (c) 2004, Karl Trygve Kalleberg <karltk@gentoo.org>
5# Copyright (c) 2004-2005, Gentoo Foundation 5# Copyright (c) 2004-2005, Gentoo Foundation
6# 6#
7# Licensed under the GNU General Public License, v2 7# Licensed under the GNU General Public License, v2
8# 8#
9# $Header: /var/cvsroot/gentoo-x86/eclass/java-utils-2.eclass,v 1.126 2009/03/31 19:19:20 betelgeuse Exp $ 9# $Header: /var/cvsroot/gentoo-x86/eclass/java-utils-2.eclass,v 1.127 2009/05/19 21:23:32 caster Exp $
10 10
11# ----------------------------------------------------------------------------- 11# -----------------------------------------------------------------------------
12# @eclass-begin 12# @eclass-begin
13# @eclass-shortdesc Java Utility eclass 13# @eclass-shortdesc Java Utility eclass
14# @eclass-maintainer java@gentoo.org 14# @eclass-maintainer java@gentoo.org
430# @param $@ - JNI libraries to install 430# @param $@ - JNI libraries to install
431# ------------------------------------------------------------------------------ 431# ------------------------------------------------------------------------------
432java-pkg_doso() { 432java-pkg_doso() {
433 debug-print-function ${FUNCNAME} $* 433 debug-print-function ${FUNCNAME} $*
434 434
435 [[ ${#} -lt 1 ]] && "At least one argument required for ${FUNCNAME}"
436 java-pkg_check-phase install 435 java-pkg_check-phase install
437 436
438 [[ ${#} -lt 1 ]] && die "At least one argument required for ${FUNCNAME}" 437 [[ ${#} -lt 1 ]] && die "${FUNCNAME} requires at least one argument"
439 438
440 java-pkg_init_paths_ 439 java-pkg_init_paths_
441 440
442 local lib 441 local lib
443 # for each lib 442 # for each lib
451 doins "${lib}" || die "failed to install ${lib}" 450 doins "${lib}" || die "failed to install ${lib}"
452 java-pkg_append_ JAVA_PKG_LIBRARY "${JAVA_PKG_LIBDEST}" 451 java-pkg_append_ JAVA_PKG_LIBRARY "${JAVA_PKG_LIBDEST}"
453 debug-print "Installing ${lib} to ${JAVA_PKG_LIBDEST}" 452 debug-print "Installing ${lib} to ${JAVA_PKG_LIBDEST}"
454 # otherwise make a symlink to the symlink's origin 453 # otherwise make a symlink to the symlink's origin
455 else 454 else
456 # TODO use dosym 455 dosym "$(readlink "${lib}")" "${JAVA_PKG_LIBDEST}/${lib##*/}"
457 ln -s "$(readlink "${lib}")" \
458 "${D}${JAVA_PKG_LIBDEST}/$(basename "${lib}")"
459 debug-print "${lib} is a symlink, linking accordanly" 456 debug-print "${lib} is a symlink, linking accordantly"
460 fi 457 fi
461 # otherwise die 458 # otherwise die
462 else 459 else
463 die "${lib} does not exist" 460 die "${lib} does not exist"
464 fi 461 fi
480java-pkg_regso() { 477java-pkg_regso() {
481 debug-print-function ${FUNCNAME} $* 478 debug-print-function ${FUNCNAME} $*
482 479
483 java-pkg_check-phase install 480 java-pkg_check-phase install
484 481
485 [[ ${#} -lt 1 ]] && "at least one argument needed" 482 [[ ${#} -lt 1 ]] && die "${FUNCNAME} requires at least one argument"
486 483
487 java-pkg_init_paths_ 484 java-pkg_init_paths_
488 485
489 local lib target_dir 486 local lib target_dir
490 for lib in "$@" ; do 487 for lib in "$@" ; do

Legend:
Removed from v.1.126  
changed lines
  Added in v.1.127

  ViewVC Help
Powered by ViewVC 1.1.20