aboutsummaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorJohannes Huber <johu@gentoo.org>2015-07-22 20:29:22 +0200
committerJames Le Cuirot <chewi@gentoo.org>2015-07-22 19:36:28 +0100
commitb24ae1b69140badc0260c75e60fc1c431b7f8806 (patch)
tree6d72e1af5589421cacdfbbcc879c1ac8b9959c17 /eclass
parentRemove super ancient IntelliJ IDEA that is binary-only on x86 and (diff)
downloadjava-b24ae1b69140badc0260c75e60fc1c431b7f8806.tar.gz
java-b24ae1b69140badc0260c75e60fc1c431b7f8806.tar.bz2
java-b24ae1b69140badc0260c75e60fc1c431b7f8806.zip
[eclass] Replace deprecated hasq with has
Diffstat (limited to 'eclass')
-rw-r--r--eclass/java-maven-2.eclass6
-rw-r--r--eclass/openoffice-ext.eclass2
2 files changed, 4 insertions, 4 deletions
diff --git a/eclass/java-maven-2.eclass b/eclass/java-maven-2.eclass
index f86ce171..e9fadf33 100644
--- a/eclass/java-maven-2.eclass
+++ b/eclass/java-maven-2.eclass
@@ -317,7 +317,7 @@ java-maven-2_src_unpack() {
fi
done
- if hasq doc ${IUSE} && use doc; then
+ if has doc ${IUSE} && use doc; then
JAVA_ANT_JAVADOC_INPUT_DIRS="${JAVA_ANT_JAVADOC_INPUT_DIRS} ${JAVA_MAVEN_SRC_DIRS}"
fi
# now rewriting all the poms
@@ -548,10 +548,10 @@ java-maven-2_install_one() {
# basic src_install which can install in most cases (multi and single project
# mode)
java-maven-2_src_install() {
- hasq doc ${IUSE} && use doc \
+ has doc ${IUSE} && use doc \
&& [[ -n "${JAVA_ANT_JAVADOC_INPUT_DIRS}" ]] \
&& java-pkg_dojavadoc ${JAVA_ANT_JAVADOC_OUTPUT_DIR}
- if hasq source ${IUSE} && use source; then
+ if has source ${IUSE} && use source; then
# JAVA_MAVEN_SRC_DIRS must be maven parent sources dirs like "src/main"
# install java/* into zip/* and the rest inside zip/subdir/*
local java_maven_src_dir="${WORKDIR}/mavenjavasrcpack"
diff --git a/eclass/openoffice-ext.eclass b/eclass/openoffice-ext.eclass
index ec44b683..8ee4419d 100644
--- a/eclass/openoffice-ext.eclass
+++ b/eclass/openoffice-ext.eclass
@@ -68,7 +68,7 @@ _openoffice-utils_pkg_prerm() {
}
_openoffice-ext_check_use() {
- return $(hasq ${OPENOFFICE_EXT_OPT_USE} "${IUSE}")
+ return $(has ${OPENOFFICE_EXT_OPT_USE} "${IUSE}")
}
if _openoffice-ext_check_use; then