/[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.65 Revision 1.66
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.65 2007/03/06 12:14:49 betelgeuse Exp $ 9# $Header: /var/cvsroot/gentoo-x86/eclass/java-utils-2.eclass,v 1.66 2007/03/17 13:26:12 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
584# FIXME apparently this fails if you give it an empty directories 584# FIXME apparently this fails if you give it an empty directories
585java-pkg_dosrc() { 585java-pkg_dosrc() {
586 debug-print-function ${FUNCNAME} $* 586 debug-print-function ${FUNCNAME} $*
587 587
588 [ ${#} -lt 1 ] && die "At least one argument needed" 588 [ ${#} -lt 1 ] && die "At least one argument needed"
589 if ! hasq source ${IUSE}; then
590 echo "Java QA Notice: ${FUNCNAME} called without source in IUSE"
591 fi
592 589
593 java-pkg_check-phase install 590 java-pkg_check-phase install
594 591
595 [[ ${#} -lt 1 ]] && die "At least one argument needed" 592 [[ ${#} -lt 1 ]] && die "At least one argument needed"
593
594 if ! [[ ${DEPEND} = *app-arch/zip* ]]; then
595 local msg="${FUNCNAME} called without app-arch/zip in DEPEND"
596 if is-java-strict; then
597 eerror "${msg}"
598 die "${msg}"
599 else
600 echo "${msg}"
601 echo "Please report this to http://bugs.gentoo.org."
602 fi
603 fi
596 604
597 java-pkg_init_paths_ 605 java-pkg_init_paths_
598 606
599 local zip_name="${PN}-src.zip" 607 local zip_name="${PN}-src.zip"
600 local zip_path="${T}/${zip_name}" 608 local zip_path="${T}/${zip_name}"

Legend:
Removed from v.1.65  
changed lines
  Added in v.1.66

  ViewVC Help
Powered by ViewVC 1.1.20