summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorJoshua Nichols <nichoj@gentoo.org>2006-08-05 17:44:09 +0000
committerJoshua Nichols <nichoj@gentoo.org>2006-08-05 17:44:09 +0000
commit9d06e2ca2cd6513576070d8c514637e5c867723a (patch)
tree765fc65fab5c599d289716e594d88838b9fb27cf /eclass
parentAdd proper debugging support thanks to Santiago M. Mola Velasco <cooldwind@gm... (diff)
downloadgentoo-2-9d06e2ca2cd6513576070d8c514637e5c867723a.tar.gz
gentoo-2-9d06e2ca2cd6513576070d8c514637e5c867723a.tar.bz2
gentoo-2-9d06e2ca2cd6513576070d8c514637e5c867723a.zip
Added java-pkg_ensure-gcj function, which dies if gcc wasn't built with gcj
Diffstat (limited to 'eclass')
-rw-r--r--eclass/java-utils-2.eclass13
1 files changed, 12 insertions, 1 deletions
diff --git a/eclass/java-utils-2.eclass b/eclass/java-utils-2.eclass
index 4b0646fed412..36e126d53833 100644
--- a/eclass/java-utils-2.eclass
+++ b/eclass/java-utils-2.eclass
@@ -231,7 +231,7 @@ java-pkg_dojar() {
#
# @param $@ - jars to record
# ------------------------------------------------------------------------------
-# TODO fix me!
+# TODO should we be making sure the jar is present on ${D} or wherever?
java-pkg_regjar() {
debug-print-function ${FUNCNAME} $*
@@ -1165,12 +1165,23 @@ java-pkg_javac-args() {
java-pkg_get-jni-cflags() {
local flags="-I${JAVA_HOME}/include"
+ # TODO do a check that the directories are valid
# TODO figure out how to cope with other things than linux...
flags="${flags} -I${JAVA_HOME}/include/linux"
echo ${flags}
}
+java-pkg_ensure-gcj() {
+ if ! built_with_use sys-devel/gcc gcj ; then
+ ewarn
+ ewarn "You must build gcc with the gcj support to build with gcj"
+ ewarn
+ ebeep 5
+ die "No GCJ support found!"
+ fi
+}
+
# ------------------------------------------------------------------------------
# @section-end helper
# ------------------------------------------------------------------------------