/[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.32 Revision 1.33
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.32 2006/12/07 02:14:46 caster Exp $ 9# $Header: /var/cvsroot/gentoo-x86/eclass/java-utils-2.eclass,v 1.33 2006/12/07 02:27:22 flameeyes 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
23# Java packages, or java-pkg-opt for packages that have optional Java support. 23# Java packages, or java-pkg-opt for packages that have optional Java support.
24# 24#
25# ----------------------------------------------------------------------------- 25# -----------------------------------------------------------------------------
26 26
27inherit eutils versionator multilib 27inherit eutils versionator multilib
28
29IUSE="elibc_FreeBSD"
28 30
29# ----------------------------------------------------------------------------- 31# -----------------------------------------------------------------------------
30# @section-begin variables 32# @section-begin variables
31# @section-title Variables 33# @section-title Variables
32# 34#
1270 1272
1271# TODO document 1273# TODO document
1272java-pkg_get-jni-cflags() { 1274java-pkg_get-jni-cflags() {
1273 local flags="-I${JAVA_HOME}/include" 1275 local flags="-I${JAVA_HOME}/include"
1274 1276
1277 local platform="linux"
1278 use elibc_FreeBSD && platform="freebsd"
1279
1275 # TODO do a check that the directories are valid 1280 # TODO do a check that the directories are valid
1276 # TODO figure out how to cope with other things than linux...
1277 flags="${flags} -I${JAVA_HOME}/include/linux" 1281 flags="${flags} -I${JAVA_HOME}/include/${platform}"
1278 1282
1279 echo ${flags} 1283 echo ${flags}
1280} 1284}
1281 1285
1282java-pkg_ensure-gcj() { 1286java-pkg_ensure-gcj() {

Legend:
Removed from v.1.32  
changed lines
  Added in v.1.33

  ViewVC Help
Powered by ViewVC 1.1.20