/[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.63 Revision 1.80
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.63 2007/03/03 20:37:35 betelgeuse Exp $ 9# $Header: /var/cvsroot/gentoo-x86/eclass/java-utils-2.eclass,v 1.80 2007/04/26 23:32:12 caster 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
55# 55#
56# @seealso JAVA_PKG_FORCE_ANT_TASKS 56# @seealso JAVA_PKG_FORCE_ANT_TASKS
57# ----------------------------------------------------------------------------- 57# -----------------------------------------------------------------------------
58#WANT_ANT_TASKS 58#WANT_ANT_TASKS
59 59
60# -----------------------------------------------------------------------------
60# @variable-internal JAVA_PKG_PORTAGE_DEP 61# @variable-internal JAVA_PKG_PORTAGE_DEP
61# 62#
62# The version of portage we need to function properly. At this moment it's 63# The version of portage we need to function properly. At this moment it's
63# portage with phase hooks support. 64# portage with phase hooks support.
64# ----------------------------------------------------------------------------- 65# -----------------------------------------------------------------------------
205 206
206 java-pkg_check-phase install 207 java-pkg_check-phase install
207 208
208 local dest=/usr/share/doc/${PF}/examples 209 local dest=/usr/share/doc/${PF}/examples
209 if [[ ${#} = 1 && -d ${1} ]]; then 210 if [[ ${#} = 1 && -d ${1} ]]; then
210 INSDESTTREE="${dest}" doins -r ${1}/* || die "Installing examples failed" 211 ( # dont want to pollute calling env
212 insinto "${dest}"
213 doins -r ${1}/*
214 ) || die "Installing examples failed"
211 else 215 else
212 INSDESTTREE="${dest}" doins -r "${@}" || die "Installing examples failed" 216 ( # dont want to pollute calling env
217 insinto "${dest}"
218 doins -r "$@"
219 ) || die "Installing examples failed"
213 fi 220 fi
214} 221}
215 222
216# ----------------------------------------------------------------------------- 223# -----------------------------------------------------------------------------
217# @ebuild-function java-pkg_dojar 224# @ebuild-function java-pkg_dojar
346 # java-pkg_regjar ${D}/opt/java/*.jar 353 # java-pkg_regjar ${D}/opt/java/*.jar
347 # such call will fall into this case (-e ${jar}) and will 354 # such call will fall into this case (-e ${jar}) and will
348 # record paths with ${D} in package.env 355 # record paths with ${D} in package.env
349 java-pkg_append_ JAVA_PKG_CLASSPATH "${jar#${D}}" 356 java-pkg_append_ JAVA_PKG_CLASSPATH "${jar#${D}}"
350 else 357 else
358 if [[ ${jar} = *\** ]]; then
359 eerror "The argument ${jar} to ${FUNCNAME}"
360 eerror "has * in it. If you want it to glob in"
361 eerror '${D} add ${D} to the argument.'
362 fi
351 die "${jar} does not exist" 363 die "${jar} does not exist"
352 fi 364 fi
353 done 365 done
354 366
355 java-pkg_do_write_ 367 java-pkg_do_write_
544# @example: 556# @example:
545# java-pkg_dojavadoc docs/api 557# java-pkg_dojavadoc docs/api
546# 558#
547# ------------------------------------------------------------------------------ 559# ------------------------------------------------------------------------------
548java-pkg_dojavadoc() { 560java-pkg_dojavadoc() {
561 debug-print-function ${FUNCNAME} $*
549 local dir="$1" 562 local dir="$1"
563
564 # QA checks
550 565
551 java-pkg_check-phase install 566 java-pkg_check-phase install
552 567
553 [[ -z "${dir}" ]] && die "Must specify a directory!" 568 [[ -z "${dir}" ]] && die "Must specify a directory!"
554 [[ ! -d "${dir}" ]] && die "${dir} does not exist, or isn't a directory!" 569 [[ ! -d "${dir}" ]] && die "${dir} does not exist, or isn't a directory!"
570 if [[ ! -e "${dir}/index.html" ]]; then
571 local msg="No index.html in javadoc directory"
572 ewarn "${msg}"
573 is-java-strict && die "${msg}"
574 fi
575
576 # Renaming to match our directory layout
555 577
556 local dir_to_install="${dir}" 578 local dir_to_install="${dir}"
557 if [[ "$(basename "${dir}")" != "api" ]]; then 579 if [[ "$(basename "${dir}")" != "api" ]]; then
558 dir_to_install="${T}/api" 580 dir_to_install="${T}/api"
559 # TODO use doins 581 # TODO use doins
560 cp -r "${dir}" "${dir_to_install}" || die "cp failed" 582 cp -r "${dir}" "${dir_to_install}" || die "cp failed"
561 fi 583 fi
584
585 # Actual installation
562 586
563 java-pkg_dohtml -r ${dir_to_install} 587 java-pkg_dohtml -r ${dir_to_install}
564} 588}
565 589
566# ------------------------------------------------------------------------------ 590# ------------------------------------------------------------------------------
584# FIXME apparently this fails if you give it an empty directories 608# FIXME apparently this fails if you give it an empty directories
585java-pkg_dosrc() { 609java-pkg_dosrc() {
586 debug-print-function ${FUNCNAME} $* 610 debug-print-function ${FUNCNAME} $*
587 611
588 [ ${#} -lt 1 ] && die "At least one argument needed" 612 [ ${#} -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 613
593 java-pkg_check-phase install 614 java-pkg_check-phase install
594 615
595 [[ ${#} -lt 1 ]] && die "At least one argument needed" 616 [[ ${#} -lt 1 ]] && die "At least one argument needed"
617
618 if ! [[ ${DEPEND} = *app-arch/zip* ]]; then
619 local msg="${FUNCNAME} called without app-arch/zip in DEPEND"
620 if is-java-strict; then
621 eerror "${msg}"
622 die "${msg}"
623 else
624 echo "${msg}"
625 echo "Please report this to http://bugs.gentoo.org."
626 fi
627 fi
596 628
597 java-pkg_init_paths_ 629 java-pkg_init_paths_
598 630
599 local zip_name="${PN}-src.zip" 631 local zip_name="${PN}-src.zip"
600 local zip_path="${T}/${zip_name}" 632 local zip_path="${T}/${zip_name}"
800# --build-only - makes the jar(s) not added into package.env DEPEND line. 832# --build-only - makes the jar(s) not added into package.env DEPEND line.
801# (assumed automatically when called inside src_test) 833# (assumed automatically when called inside src_test)
802# --with-dependencies - get jars also from requested package's dependencies 834# --with-dependencies - get jars also from requested package's dependencies
803# transitively. 835# transitively.
804# --into $dir - symlink jar(s) into $dir (must exist) instead of . 836# --into $dir - symlink jar(s) into $dir (must exist) instead of .
805# @param $1 - Package to get jars from. 837# @param $1 - Package to get jars from, or comma-separated list of packages in
838# case other parameters are not used.
806# @param $2 - jar from package. If not specified, all jars will be used. 839# @param $2 - jar from package. If not specified, all jars will be used.
807# @param $3 - When a single jar is specified, destination filename of the 840# @param $3 - When a single jar is specified, destination filename of the
808# symlink. Defaults to the name of the jar. 841# symlink. Defaults to the name of the jar.
809# ------------------------------------------------------------------------------ 842# ------------------------------------------------------------------------------
810# TODO could probably be cleaned up a little 843# TODO could probably be cleaned up a little
813 846
814 local build_only="" 847 local build_only=""
815 local destdir="." 848 local destdir="."
816 local deep="" 849 local deep=""
817 850
818 [[ "${EBUILD_PHASE}" == "test" ]] && build_only="true" 851 [[ "${EBUILD_PHASE}" == "test" ]] && build_only="build"
819 852
820 while [[ "${1}" == --* ]]; do 853 while [[ "${1}" == --* ]]; do
821 if [[ "${1}" = "--build-only" ]]; then 854 if [[ "${1}" = "--build-only" ]]; then
822 build_only="true" 855 build_only="build"
823 elif [[ "${1}" = "--with-dependencies" ]]; then 856 elif [[ "${1}" = "--with-dependencies" ]]; then
824 deep="--with-dependencies" 857 deep="--with-dependencies"
825 elif [[ "${1}" = "--into" ]]; then 858 elif [[ "${1}" = "--into" ]]; then
826 destdir="${2}" 859 destdir="${2}"
827 shift 860 shift
841 local error_msg="There was a problem getting the classpath for ${target_pkg}." 874 local error_msg="There was a problem getting the classpath for ${target_pkg}."
842 local classpath 875 local classpath
843 classpath="$(java-config ${deep} --classpath=${target_pkg})" 876 classpath="$(java-config ${deep} --classpath=${target_pkg})"
844 [[ $? != 0 ]] && die ${error_msg} 877 [[ $? != 0 ]] && die ${error_msg}
845 878
879 # When we have commas this functions is called to bring jars from multiple
880 # packages. This affects recording of dependencencies performed later
881 # which expects one package only, so we do it here.
882 if [[ ${target_pkg} = *,* ]]; then
883 for pkg in ${target_pkg//,/ }; do
884 java-pkg_ensure-dep "${build_only}" "${pkg}"
885 [[ -z "${build_only}" ]] && java-pkg_record-jar_ "${pkg}"
886 done
887 # setting this disables further record-jar_ calls later
888 build_only="build"
889 else
890 java-pkg_ensure-dep "${build_only}" "${target_pkg}"
891 fi
892
846 pushd ${destdir} > /dev/null \ 893 pushd ${destdir} > /dev/null \
847 || die "failed to change directory to ${destdir}" 894 || die "failed to change directory to ${destdir}"
848
849 # When we have commas this functions is called to bring jars from multiple
850 # packages. This affects recording of dependencencies because that syntax uses :
851 # if we don't change them to : gjl and java-config -d -p break
852 if [[ ${target_pkg} = *,* ]]; then
853 build_only="true"
854 java-pkg_record-jar_ ${target_pkg//,/:}
855 fi
856 895
857 local jar 896 local jar
858 for jar in ${classpath//:/ }; do 897 for jar in ${classpath//:/ }; do
859 local jar_name=$(basename "${jar}") 898 local jar_name=$(basename "${jar}")
860 if [[ ! -f "${jar}" ]] ; then 899 if [[ ! -f "${jar}" ]] ; then
923 debug-print-function ${FUNCNAME} $* 962 debug-print-function ${FUNCNAME} $*
924 963
925 local build_only="" 964 local build_only=""
926 local deep="" 965 local deep=""
927 966
928 [[ "${EBUILD_PHASE}" == "test" ]] && build_only="true" 967 [[ "${EBUILD_PHASE}" == "test" ]] && build_only="build"
929 968
930 while [[ "${1}" == --* ]]; do 969 while [[ "${1}" == --* ]]; do
931 if [[ "${1}" = "--build-only" ]]; then 970 if [[ "${1}" = "--build-only" ]]; then
932 build_only="true" 971 build_only="build"
933 elif [[ "${1}" = "--with-dependencies" ]]; then 972 elif [[ "${1}" = "--with-dependencies" ]]; then
934 deep="--with-dependencies" 973 deep="--with-dependencies"
935 else 974 else
936 die "java-pkg_jar-from called with unknown parameter: ${1}" 975 die "java-pkg_jar-from called with unknown parameter: ${1}"
937 fi 976 fi
938 shift 977 shift
939 done 978 done
940 979
941 [[ ${#} -ne 1 ]] && die "${FUNCNAME} takes only one argument besides --*" 980 [[ ${#} -ne 1 ]] && die "${FUNCNAME} takes only one argument besides --*"
942 981
982
943 local classpath pkgs="${1}" 983 local classpath pkgs="${1}"
944 jars="$(java-config ${deep} --classpath=${pkgs})" 984 jars="$(java-config ${deep} --classpath=${pkgs})"
945 [[ -z "${jars}" ]] && die "java-config --classpath=${pkgs} failed" 985 [[ $? != 0 || -z "${jars}" ]] && die "java-config --classpath=${pkgs} failed"
946 debug-print "${pkgs}:${jars}" 986 debug-print "${pkgs}:${jars}"
987
988 for pkg in ${pkgs//,/ }; do
989 java-pkg_ensure-dep "${build_only}" "${pkg}"
990 done
947 991
948 if [[ -z "${classpath}" ]]; then 992 if [[ -z "${classpath}" ]]; then
949 classpath="${jars}" 993 classpath="${jars}"
950 else 994 else
951 classpath="${classpath}:${jars}" 995 classpath="${classpath}:${jars}"
952 fi 996 fi
953 997
954 # Only record jars that aren't build-only 998 # Only record jars that aren't build-only
955 if [[ -z "${build_only}" ]]; then 999 if [[ -z "${build_only}" ]]; then
956 oldifs="${IFS}"
957 IFS=","
958 for pkg in ${pkgs}; do 1000 for pkg in ${pkgs//:/ }; do
959 java-pkg_record-jar_ "${pkg}" 1001 java-pkg_record-jar_ "${pkg}"
960 done 1002 done
961 IFS="${oldifs}"
962 fi 1003 fi
963 1004
964 echo "${classpath}" 1005 echo "${classpath}"
965} 1006}
966 1007
986java-pkg_getjar() { 1027java-pkg_getjar() {
987 debug-print-function ${FUNCNAME} $* 1028 debug-print-function ${FUNCNAME} $*
988 1029
989 local build_only="" 1030 local build_only=""
990 1031
991 [[ "${EBUILD_PHASE}" == "test" ]] && build_only="true" 1032 [[ "${EBUILD_PHASE}" == "test" ]] && build_only="build"
992 1033
993 while [[ "${1}" == --* ]]; do 1034 while [[ "${1}" == --* ]]; do
994 if [[ "${1}" = "--build-only" ]]; then 1035 if [[ "${1}" = "--build-only" ]]; then
995 build_only="true" 1036 build_only="build"
996 else 1037 else
997 die "java-pkg_jar-from called with unknown parameter: ${1}" 1038 die "java-pkg_jar-from called with unknown parameter: ${1}"
998 fi 1039 fi
999 shift 1040 shift
1000 done 1041 done
1007 1048
1008 local error_msg="Could not find classpath for ${pkg}. Are you sure its installed?" 1049 local error_msg="Could not find classpath for ${pkg}. Are you sure its installed?"
1009 local classpath 1050 local classpath
1010 classpath=$(java-config --classpath=${pkg}) 1051 classpath=$(java-config --classpath=${pkg})
1011 [[ $? != 0 ]] && die ${error_msg} 1052 [[ $? != 0 ]] && die ${error_msg}
1053
1054 java-pkg_ensure-dep "${build_only}" "${pkg}"
1012 1055
1013 for jar in ${classpath//:/ }; do 1056 for jar in ${classpath//:/ }; do
1014 if [[ ! -f "${jar}" ]] ; then 1057 if [[ ! -f "${jar}" ]] ; then
1015 die "Installation problem with jar ${jar} in ${pkg} - is it installed?" 1058 die "Installation problem with jar ${jar} in ${pkg} - is it installed?"
1016 fi 1059 fi
1023 fi 1066 fi
1024 done 1067 done
1025 1068
1026 die "Could not find ${target_jar} in ${pkg}" 1069 die "Could not find ${target_jar} in ${pkg}"
1027 return 1 1070 return 1
1071}
1072
1073# ------------------------------------------------------------------------------
1074# @ebuild-function java-pkg_register-dependency
1075#
1076# Registers runtime dependency on a package, list of packages, or a single jar
1077# from a package, into package.env DEPEND line. Can only be called in
1078# src_install phase.
1079# Intended for binary packages where you don't need to symlink the jars or get
1080# their classpath during build. As such, the dependencies only need to be
1081# specified in ebuild's RDEPEND, and should be omitted in DEPEND.
1082# Get the classpath provided by any number of packages.
1083#
1084# @param $1 - comma-separated list of packages, or a single package
1085# @param $2 - if param $1 is a single package, optionally specify the jar
1086# to depend on
1087#
1088# Example: Record the dependency on whole xerces-2 and xalan,
1089# java-pkg_register-dependency xerces-2,xalan
1090# Example: Record the dependency on ant.jar from ant-core
1091# java-pkg_register-dependency ant-core ant.jar
1092#
1093# Note: Passing both list of packages as the first parameter AND specifying the
1094# jar as the second is not allowed and will cause the function to die. We assume
1095# that there's more chance one passes such combination as a mistake, than that
1096# there are more packages providing identically named jar without class
1097# collisions.
1098# ------------------------------------------------------------------------------
1099java-pkg_register-dependency() {
1100 debug-print-function ${FUNCNAME} $*
1101
1102 java-pkg_check-phase install
1103
1104 [[ ${#} -gt 2 ]] && die "${FUNCNAME} takes at most two arguments"
1105
1106 local pkgs="${1}"
1107 local jar="${2}"
1108
1109 [[ -z "${pkgs}" ]] && die "${FUNCNAME} called with no package(s) specified"
1110
1111 if [[ -z "${jar}" ]]; then
1112 for pkg in ${pkgs//,/ }; do
1113 java-pkg_ensure-dep runtime "${pkg}"
1114 java-pkg_record-jar_ "${pkg}"
1115 done
1116 else
1117 [[ ${pkgs} == *,* ]] && \
1118 die "${FUNCNAME} called with both package list and jar name"
1119 java-pkg_ensure-dep runtime "${pkgs}"
1120 java-pkg_record-jar_ "${pkgs}" "${jar}"
1121 fi
1122
1123 java-pkg_do_write_
1028} 1124}
1029 1125
1030# This function reads stdin, and based on that input, figures out how to 1126# This function reads stdin, and based on that input, figures out how to
1031# populate jars from the filesystem. 1127# populate jars from the filesystem.
1032# Need to figure out a good way of making use of this, ie be able to use a 1128# Need to figure out a good way of making use of this, ie be able to use a
1670 1766
1671 [[ -n ${JAVA_PKG_DEBUG} ]] && antflags="${antflags} --execdebug -debug" 1767 [[ -n ${JAVA_PKG_DEBUG} ]] && antflags="${antflags} --execdebug -debug"
1672 [[ -n ${PORTAGE_QUIET} ]] && antflags="${antflags} -q" 1768 [[ -n ${PORTAGE_QUIET} ]] && antflags="${antflags} -q"
1673 1769
1674 local gcp="${EANT_GENTOO_CLASSPATH}" 1770 local gcp="${EANT_GENTOO_CLASSPATH}"
1771 local getjarsarg=""
1675 1772
1676 if [[ ${EBUILD_PHASE} = "test" ]]; then 1773 if [[ ${EBUILD_PHASE} = "test" ]]; then
1677 antflags="${antflags} -DJunit.present=true" 1774 antflags="${antflags} -DJunit.present=true"
1678 [[ ${gcp} && ${ANT_TASKS} = *ant-junit* ]] && gcp="${gcp} junit" 1775 [[ ${gcp} && ${ANT_TASKS} = *ant-junit* ]] && gcp="${gcp} junit"
1776 getjarsarg="--with-dependencies"
1679 fi 1777 fi
1680 1778
1681 local cp 1779 local cp
1682 1780
1683 for atom in ${gcp}; do 1781 for atom in ${gcp}; do
1684 cp="${cp}:$(java-pkg_getjars ${atom})" 1782 cp="${cp}:$(java-pkg_getjars ${getjarsarg} ${atom})"
1685 done 1783 done
1686 1784
1687 if [[ ${cp} ]]; then 1785 if [[ ${cp} ]]; then
1688 # It seems ant does not like single quotes around ${cp} 1786 # It seems ant does not like single quotes around ${cp}
1689 antflags="${antflags} -Dgentoo.classpath=\"${cp#:}\"" 1787 antflags="${antflags} -Dgentoo.classpath=\"${cp#:}\""
1690 fi 1788 fi
1691 1789
1692 [[ -n ${JAVA_PKG_DEBUG} ]] && echo ant ${antflags} "${@}" 1790 [[ -n ${JAVA_PKG_DEBUG} ]] && echo ant ${antflags} "${@}"
1693 debug-print "Calling ant: ${antflags} ${@}" 1791 debug-print "Calling ant (GENTOO_VM: ${GENTOO_VM}): ${antflags} ${@}"
1694 ant ${antflags} "${@}" || die "eant failed" 1792 ant ${antflags} "${@}" || die "eant failed"
1695
1696} 1793}
1697 1794
1698# ------------------------------------------------------------------------------ 1795# ------------------------------------------------------------------------------
1699# @ebuild-function ejavac 1796# @ebuild-function ejavac
1700# 1797#
1797# 1894#
1798# ----------------------------------------------------------------------------- 1895# -----------------------------------------------------------------------------
1799java-pkg_init() { 1896java-pkg_init() {
1800 unset JAVAC 1897 unset JAVAC
1801 unset JAVA_HOME 1898 unset JAVA_HOME
1899
1900 # People do all kinds of weird things.
1901 # http://forums.gentoo.org/viewtopic-p-3943166.html
1902 local silence="${SILENCE_JAVA_OPTIONS_WARNING}"
1903 local accept="${I_WANT_GLOBAL_JAVA_OPTIONS}"
1904 if [[ -n ${_JAVA_OPTIONS} && -z ${accept} && -z ${silence} ]]; then
1905 ewarn "_JAVA_OPTIONS changes what java -version outputs at least for"
1906 ewarn "sun-jdk vms and and as such break configure scripts that"
1907 ewarn "use it (for example app-office/openoffice) so we filter it out."
1908 ewarn "Use SILENCE_JAVA_OPTIONS_WARNING=true in the environment (use"
1909 ewarn "make.conf for example) to silence this warning or"
1910 ewarn "I_WANT_GLOBAL_JAVA_OPTIONS to not filter it."
1911 fi
1912
1913 if [[ -z ${accept} ]]; then
1914 unset _JAVA_OPTIONS
1915 # phase hooks make this run many times without this
1916 I_WANT_GLOBAL_JAVA_OPTIONS="true"
1917 fi
1918
1802 java-pkg_init_paths_ 1919 java-pkg_init_paths_
1803 java-pkg_switch-vm 1920 java-pkg_switch-vm
1804 PATH=${JAVA_HOME}/bin:${PATH} 1921 PATH=${JAVA_HOME}/bin:${PATH}
1805 1922
1806 # TODO we will probably want to set JAVAC and JAVACFLAGS 1923 # TODO we will probably want to set JAVAC and JAVACFLAGS
2292 eerror "See ${log} for more details." 2409 eerror "See ${log} for more details."
2293 die "Incorrect bytecode found" 2410 die "Incorrect bytecode found"
2294 fi 2411 fi
2295} 2412}
2296 2413
2414# ----------------------------------------------------------------------------
2415# @internal-function java-pkg_ensure-dep
2416# Check that a package being used in jarfrom, getjars and getjar is contained
2417# within DEPEND or RDEPEND.
2418# @param $1 - empty - check both vars; "runtime" or "build" - check only
2419# RDEPEND, resp. DEPEND
2420# @param $2 - Package name and slot.
2421java-pkg_ensure-dep() {
2422 debug-print-function ${FUNCNAME} $*
2423
2424 local limit_to="${1}"
2425 local target_pkg="${2}"
2426 local dev_error=""
2427
2428 local stripped_pkg=$(echo "${target_pkg}" | sed \
2429 's/-[0-9]*\(\.[0-9]\)*$//')
2430
2431 if [[ ${limit_to} != runtime && ! ( "${DEPEND}" =~ "$stripped_pkg" ) ]]; then
2432 dev_error="The ebuild is attempting to use ${target_pkg} that is not"
2433 dev_error="${dev_error} declared in DEPEND."
2434 if is-java-strict; then
2435 die "${dev_error}"
2436 elif [[ ${BASH_SUBSHELL} = 0 ]]; then
2437 eerror "${dev_error}"
2438 elog "Because you have this package installed the package will"
2439 elog "build without problems, but please report this to"
2440 elog "http://bugs.gentoo.org"
2441 fi
2442 fi
2443
2444 if [[ ${limit_to} != build && ! ( ${RDEPEND} =~ "${stripped_pkg}" ) ]]; then
2445 dev_error="The ebuild is attempting to use ${target_pkg},"
2446 dev_error="${dev_error} without specifying --build-only, that is not declared in RDEPEND."
2447 if is-java-strict; then
2448 die "${dev_error}"
2449 elif [[ ${BASH_SUBSHELL} = 0 ]]; then
2450 eerror "${dev_error}"
2451 elog "The package will build without problems, but may fail to run"
2452 elog "if you don't have ${target_pkg} installed, so please report"
2453 elog "this to http://bugs.gentoo.org"
2454 fi
2455 fi
2456}
2457
2297# ------------------------------------------------------------------------------ 2458# ------------------------------------------------------------------------------
2298# @section-end internal 2459# @section-end internal
2299# ------------------------------------------------------------------------------ 2460# ------------------------------------------------------------------------------
2300 2461
2301java-pkg_check-phase() { 2462java-pkg_check-phase() {

Legend:
Removed from v.1.63  
changed lines
  Added in v.1.80

  ViewVC Help
Powered by ViewVC 1.1.20