/[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.155 Revision 1.156
4# Copyright (c) 2004, Karl Trygve Kalleberg <karltk@gentoo.org> 4# Copyright (c) 2004, Karl Trygve Kalleberg <karltk@gentoo.org>
5# Copyright (c) 2004-2011, Gentoo Foundation 5# Copyright (c) 2004-2011, 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.155 2013/10/06 14:37:31 caster Exp $ 9# $Header: /var/cvsroot/gentoo-x86/eclass/java-utils-2.eclass,v 1.156 2014/04/09 21:55:12 radhermit Exp $
10 10
11# @ECLASS: java-utils-2.eclass 11# @ECLASS: java-utils-2.eclass
12# @MAINTAINER: 12# @MAINTAINER:
13# java@gentoo.org 13# java@gentoo.org
14# @AUTHOR: 14# @AUTHOR:
190 debug-print-function ${FUNCNAME} $* 190 debug-print-function ${FUNCNAME} $*
191 191
192 [[ ${#} -lt 1 ]] && die "At least one argument needed" 192 [[ ${#} -lt 1 ]] && die "At least one argument needed"
193 193
194 java-pkg_check-phase install 194 java-pkg_check-phase install
195 java-pkg_init_paths_
195 196
196 local dest=/usr/share/doc/${PF}/examples 197 local dest=/usr/share/doc/${PF}/examples
197 if [[ ${1} == --subdir ]]; then 198 if [[ ${1} == --subdir ]]; then
198 local dest=${dest}/${2} 199 local dest=${dest}/${2}
199 dodir ${dest} 200 dodir ${dest}
541 local dest=/usr/share/doc/${PF}/html 542 local dest=/usr/share/doc/${PF}/html
542 543
543 # QA checks 544 # QA checks
544 545
545 java-pkg_check-phase install 546 java-pkg_check-phase install
547 java-pkg_init_paths_
546 548
547 [[ -z "${dir}" ]] && die "Must specify a directory!" 549 [[ -z "${dir}" ]] && die "Must specify a directory!"
548 [[ ! -d "${dir}" ]] && die "${dir} does not exist, or isn't a directory!" 550 [[ ! -d "${dir}" ]] && die "${dir} does not exist, or isn't a directory!"
549 if [[ ! -e "${dir}/index.html" ]]; then 551 if [[ ! -e "${dir}/index.html" ]]; then
550 local msg="No index.html in javadoc directory" 552 local msg="No index.html in javadoc directory"
2058 2060
2059 if java-pkg_func-exists ant_src_unpack; then 2061 if java-pkg_func-exists ant_src_unpack; then
2060 java-pkg_announce-qa-violation "Using old ant_src_unpack. Should be src_unpack" 2062 java-pkg_announce-qa-violation "Using old ant_src_unpack. Should be src_unpack"
2061 fi 2063 fi
2062 2064
2063 java-pkg_init_paths_
2064 java-pkg_switch-vm 2065 java-pkg_switch-vm
2065 PATH=${JAVA_HOME}/bin:${PATH} 2066 PATH=${JAVA_HOME}/bin:${PATH}
2066 2067
2067 # TODO we will probably want to set JAVAC and JAVACFLAGS 2068 # TODO we will probably want to set JAVAC and JAVACFLAGS
2068 2069
2219 JAVA_PKG_VIRTUAL_PROVIDER="${D}/${JAVA_PKG_VIRTUALS_PATH}/${JAVA_PKG_NAME}" 2220 JAVA_PKG_VIRTUAL_PROVIDER="${D}/${JAVA_PKG_VIRTUALS_PATH}/${JAVA_PKG_NAME}"
2220 2221
2221 [[ -z "${JAVA_PKG_JARDEST}" ]] && JAVA_PKG_JARDEST="${JAVA_PKG_SHAREPATH}/lib" 2222 [[ -z "${JAVA_PKG_JARDEST}" ]] && JAVA_PKG_JARDEST="${JAVA_PKG_SHAREPATH}/lib"
2222 [[ -z "${JAVA_PKG_LIBDEST}" ]] && JAVA_PKG_LIBDEST="${DESTTREE}/$(get_libdir)/${JAVA_PKG_NAME}" 2223 [[ -z "${JAVA_PKG_LIBDEST}" ]] && JAVA_PKG_LIBDEST="${DESTTREE}/$(get_libdir)/${JAVA_PKG_NAME}"
2223 [[ -z "${JAVA_PKG_WARDEST}" ]] && JAVA_PKG_WARDEST="${JAVA_PKG_SHAREPATH}/webapps" 2224 [[ -z "${JAVA_PKG_WARDEST}" ]] && JAVA_PKG_WARDEST="${JAVA_PKG_SHAREPATH}/webapps"
2224
2225 2225
2226 # TODO maybe only print once? 2226 # TODO maybe only print once?
2227 debug-print "JAVA_PKG_SHAREPATH: ${JAVA_PKG_SHAREPATH}" 2227 debug-print "JAVA_PKG_SHAREPATH: ${JAVA_PKG_SHAREPATH}"
2228 debug-print "JAVA_PKG_ENV: ${JAVA_PKG_ENV}" 2228 debug-print "JAVA_PKG_ENV: ${JAVA_PKG_ENV}"
2229 debug-print "JAVA_PKG_JARDEST: ${JAVA_PKG_JARDEST}" 2229 debug-print "JAVA_PKG_JARDEST: ${JAVA_PKG_JARDEST}"

Legend:
Removed from v.1.155  
changed lines
  Added in v.1.156

  ViewVC Help
Powered by ViewVC 1.1.20