… | |
… | |
229 | # |
229 | # |
230 | # java-pkg_regjar ${D}/opt/my-java/lib/*.jar |
230 | # java-pkg_regjar ${D}/opt/my-java/lib/*.jar |
231 | # |
231 | # |
232 | # @param $@ - jars to record |
232 | # @param $@ - jars to record |
233 | # ------------------------------------------------------------------------------ |
233 | # ------------------------------------------------------------------------------ |
234 | # TODO fix me! |
234 | # TODO should we be making sure the jar is present on ${D} or wherever? |
235 | java-pkg_regjar() { |
235 | java-pkg_regjar() { |
236 | debug-print-function ${FUNCNAME} $* |
236 | debug-print-function ${FUNCNAME} $* |
237 | |
237 | |
238 | java-pkg_check-phase install |
238 | java-pkg_check-phase install |
239 | |
239 | |
… | |
… | |
1163 | |
1163 | |
1164 | # TODO document |
1164 | # TODO document |
1165 | java-pkg_get-jni-cflags() { |
1165 | java-pkg_get-jni-cflags() { |
1166 | local flags="-I${JAVA_HOME}/include" |
1166 | local flags="-I${JAVA_HOME}/include" |
1167 | |
1167 | |
|
|
1168 | # TODO do a check that the directories are valid |
1168 | # TODO figure out how to cope with other things than linux... |
1169 | # TODO figure out how to cope with other things than linux... |
1169 | flags="${flags} -I${JAVA_HOME}/include/linux" |
1170 | flags="${flags} -I${JAVA_HOME}/include/linux" |
1170 | |
1171 | |
1171 | echo ${flags} |
1172 | echo ${flags} |
|
|
1173 | } |
|
|
1174 | |
|
|
1175 | java-pkg_ensure-gcj() { |
|
|
1176 | if ! built_with_use sys-devel/gcc gcj ; then |
|
|
1177 | ewarn |
|
|
1178 | ewarn "You must build gcc with the gcj support to build with gcj" |
|
|
1179 | ewarn |
|
|
1180 | ebeep 5 |
|
|
1181 | die "No GCJ support found!" |
|
|
1182 | fi |
1172 | } |
1183 | } |
1173 | |
1184 | |
1174 | # ------------------------------------------------------------------------------ |
1185 | # ------------------------------------------------------------------------------ |
1175 | # @section-end helper |
1186 | # @section-end helper |
1176 | # ------------------------------------------------------------------------------ |
1187 | # ------------------------------------------------------------------------------ |