summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiroslav Šulc <fordfrog@gentoo.org>2008-12-04 12:15:51 +0000
committerMiroslav Šulc <fordfrog@gentoo.org>2008-12-04 12:15:51 +0000
commit9826f333361bccde6cc51c401295587e0d5c89e3 (patch)
tree46fc3db7e86fd5389d46ed64f05ab1a15b068f5a /dev-util
parentRewritten checking of needed and not specified modules so it should be easier... (diff)
downloadgentoo-2-9826f333361bccde6cc51c401295587e0d5c89e3.tar.gz
gentoo-2-9826f333361bccde6cc51c401295587e0d5c89e3.tar.bz2
gentoo-2-9826f333361bccde6cc51c401295587e0d5c89e3.zip
Fixed bug in checking of what netbeans modules need to be added
(Portage version: 2.1.6_rc2/cvs/Linux 2.6.27-gentoo x86_64)
Diffstat (limited to 'dev-util')
-rw-r--r--dev-util/netbeans/ChangeLog5
-rw-r--r--dev-util/netbeans/netbeans-6.5-r2.ebuild60
2 files changed, 26 insertions, 39 deletions
diff --git a/dev-util/netbeans/ChangeLog b/dev-util/netbeans/ChangeLog
index a9fd1a8eebe6..27262a678014 100644
--- a/dev-util/netbeans/ChangeLog
+++ b/dev-util/netbeans/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for dev-util/netbeans
# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-util/netbeans/ChangeLog,v 1.96 2008/12/04 11:57:27 fordfrog Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-util/netbeans/ChangeLog,v 1.97 2008/12/04 12:15:51 fordfrog Exp $
+
+ 04 Dec 2008; Miroslav Šulc <fordfrog@gentoo.org> netbeans-6.5-r2.ebuild:
+ Fixed bug in checking of what netbeans modules need to be added
04 Dec 2008; Miroslav Šulc <fordfrog@gentoo.org> netbeans-6.5-r2.ebuild:
Rewritten checking of needed and not specified modules so it should be
diff --git a/dev-util/netbeans/netbeans-6.5-r2.ebuild b/dev-util/netbeans/netbeans-6.5-r2.ebuild
index 77ef6494e218..e8029b8fe29c 100644
--- a/dev-util/netbeans/netbeans-6.5-r2.ebuild
+++ b/dev-util/netbeans/netbeans-6.5-r2.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-util/netbeans/netbeans-6.5-r2.ebuild,v 1.3 2008/12/04 11:57:27 fordfrog Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-util/netbeans/netbeans-6.5-r2.ebuild,v 1.4 2008/12/04 12:15:51 fordfrog Exp $
EAPI="2"
WANT_SPLIT_ANT="true"
@@ -249,15 +249,15 @@ pkg_setup() {
die
fi
- local need_apisupport="0"
- local need_groovy="0"
- local need_gsf="0"
- local need_harness="0"
- local need_ide="0"
- local need_j2ee="0"
- local need_java="0"
- local need_websvccommon="0"
- local need_xml="0"
+ local need_apisupport=""
+ local need_groovy=""
+ local need_gsf=""
+ local need_harness=""
+ local need_ide=""
+ local need_j2ee=""
+ local need_java=""
+ local need_websvccommon=""
+ local need_xml=""
# direct deps: ide
if use netbeans_modules_cnd ; then
@@ -384,19 +384,20 @@ pkg_setup() {
need_ide="1"
fi
- check_use_flag "apisupport" ${need_apisupport}
- check_use_flag "groovy" ${need_groovy}
- check_use_flag "gsf" ${need_gsf}
- check_use_flag "harness" ${need_harness}
- check_use_flag "ide" ${need_ide}
- check_use_flag "j2ee" ${need_j2ee}
- check_use_flag "java" ${need_java}
- check_use_flag "websvccommon" ${need_websvccommon}
- check_use_flag "xml" ${need_xml}
+ local missing=""
+ [ -n "$}need_apisupport}" ] && ! use netbeans_modules_apisupport && missing="${missing} apisupport"
+ [ -n "$}need_groovy}" ] && ! use netbeans_modules_groovy && missing="${missing} groovy"
+ [ -n "$}need_gsf}" ] && ! use netbeans_modules_gsf && missing="${missing} gsf"
+ [ -n "$}need_harness}" ] && ! use netbeans_modules_harness && missing="${missing} harness"
+ [ -n "$}need_ide}" ] && ! use netbeans_modules_ide && missing="${missing} ide"
+ [ -n "$}need_j2ee}" ] && ! use netbeans_modules_j2ee && missing="${missing} j2ee"
+ [ -n "$}need_java}" ] && ! use netbeans_modules_java && missing="${missing} java"
+ [ -n "$}need_websvccommon}" ] && ! use netbeans_modules_websvccommon && missing="${missing} websvccommon"
+ [ -n "$}need_xml}" ] && ! use netbeans_modules_xml && missing="${missing} xml"
- if [ -n "${JAVA_PKG_NB_MISSING_USE_FLAGS}" ] ; then
+ if [ -n "${missing}" ] ; then
eerror "You need to add these modules to NETBEANS_MODULES because they are needed by modules you have selected"
- eerror " Missing NETBEANS_MODULES: ${JAVA_PKG_NB_MISSING_USE_FLAGS}"
+ eerror " Missing NETBEANS_MODULES: ${missing}"
die "Missing NETBEANS_MODULES"
fi
@@ -1115,20 +1116,3 @@ compile_locale_support() {
eant ${1} -Dlocales=${2} -Ddist.dir=../nbbuild/netbeans -Dnbms.dir="" -Dnbms.dist.dir="" \
-f l10n/build.xml build
}
-
-# Checks whether USE flag should be set and outputs error if it is not set
-# Arguments
-# 1 - netbeans module
-# 2 - required status (1 = required)
-check_use_flag() {
- local module=${1}
- local required=${2}
-
- if [ "${required}" == "1" ] ; then
- if [ -z "${JAVA_PKG_NB_MISSING_USE_FLAGS}" ] ; then
- JAVA_PKG_NB_MISSING_USE_FLAGS="${module}"
- else
- JAVA_PKG_NB_MISSING_USE_FLAGS="${JAVA_PKG_NB_MISSING_USE_FLAGS} ${module}"
- fi
- fi
-}