/[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.30 Revision 1.31
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.30 2006/12/03 17:42:53 betelgeuse Exp $ 9# $Header: /var/cvsroot/gentoo-x86/eclass/java-utils-2.eclass,v 1.31 2006/12/03 18:41:25 betelgeuse Exp $
10 10
11 11
12# ----------------------------------------------------------------------------- 12# -----------------------------------------------------------------------------
13# @eclass-begin 13# @eclass-begin
14# @eclass-shortdesc Java Utility eclass 14# @eclass-shortdesc Java Utility eclass
287 rm -f "${new_jar_dest}" || die "Failed to remove ${new_jar_dest}" 287 rm -f "${new_jar_dest}" || die "Failed to remove ${new_jar_dest}"
288 cp "${original_jar}" "${new_jar_dest}" \ 288 cp "${original_jar}" "${new_jar_dest}" \
289 || die "Failed to copy ${original_jar} to ${new_jar_dest}" 289 || die "Failed to copy ${original_jar} to ${new_jar_dest}"
290 java-pkg_dojar "${new_jar_dest}" 290 java-pkg_dojar "${new_jar_dest}"
291} 291}
292
293 292
294# ------------------------------------------------------------------------------ 293# ------------------------------------------------------------------------------
295# @ebuild-function java-pkg_addcp 294# @ebuild-function java-pkg_addcp
296# 295#
297# Add something to the package's classpath. For jars, you should use dojar, 296# Add something to the package's classpath. For jars, you should use dojar,
429java-pkg_dohtml() { 428java-pkg_dohtml() {
430 debug-print-function ${FUNCNAME} $* 429 debug-print-function ${FUNCNAME} $*
431 430
432 [[ ${#} -lt 1 ]] && die "At least one argument required for ${FUNCNAME}" 431 [[ ${#} -lt 1 ]] && die "At least one argument required for ${FUNCNAME}"
433 432
434 # TODO-nichoj find out what exactly -f package-list does 433 # from /usr/lib/portage/bin/dohtml -h
434 # -f Set list of allowed extensionless file names.
435 dohtml -f package-list "$@" 435 dohtml -f package-list "$@"
436
436 # this probably shouldn't be here but it provides 437 # this probably shouldn't be here but it provides
437 # a reasonable way to catch # docs for all of the 438 # a reasonable way to catch # docs for all of the
438 # old ebuilds. 439 # old ebuilds.
439 java-pkg_recordjavadoc 440 java-pkg_recordjavadoc
440} 441}
807 fi 808 fi
808 809
809 # Only record jars that aren't build-only 810 # Only record jars that aren't build-only
810 if [[ -z "${build_only}" ]]; then 811 if [[ -z "${build_only}" ]]; then
811 oldifs="${IFS}" 812 oldifs="${IFS}"
812 IFS=":" 813 IFS=","
813 for pkg in ${pkgs}; do 814 for pkg in ${pkgs}; do
814 java-pkg_record-jar_ "${pkg}" 815 java-pkg_record-jar_ "${pkg}"
815 done 816 done
816 IFS="${oldifs}" 817 IFS="${oldifs}"
817 fi 818 fi

Legend:
Removed from v.1.30  
changed lines
  Added in v.1.31

  ViewVC Help
Powered by ViewVC 1.1.20