| … | |
… | |
| 3 | # Copyright (c) 2004-2005, Thomas Matthijs <axxo@gentoo.org> |
3 | # Copyright (c) 2004-2005, Thomas Matthijs <axxo@gentoo.org> |
| 4 | # Copyright (c) 2004-2005, Gentoo Foundation |
4 | # Copyright (c) 2004-2005, Gentoo Foundation |
| 5 | # |
5 | # |
| 6 | # Licensed under the GNU General Public License, v2 |
6 | # Licensed under the GNU General Public License, v2 |
| 7 | # |
7 | # |
| 8 | # $Header: /var/cvsroot/gentoo-x86/eclass/java-pkg-2.eclass,v 1.24 2007/08/05 08:17:05 betelgeuse Exp $ |
8 | # $Header: /var/cvsroot/gentoo-x86/eclass/java-pkg-2.eclass,v 1.25 2007/11/13 19:36:50 betelgeuse Exp $ |
| 9 | |
9 | |
| 10 | inherit java-utils-2 |
10 | inherit java-utils-2 |
| 11 | |
11 | |
| 12 | # ----------------------------------------------------------------------------- |
12 | # ----------------------------------------------------------------------------- |
| 13 | # @eclass-begin |
13 | # @eclass-begin |
| … | |
… | |
| 18 | # ----------------------------------------------------------------------------- |
18 | # ----------------------------------------------------------------------------- |
| 19 | |
19 | |
| 20 | # ------------------------------------------------------------------------------ |
20 | # ------------------------------------------------------------------------------ |
| 21 | # @IUSE |
21 | # @IUSE |
| 22 | # |
22 | # |
| 23 | # ebuilds using this eclass can set JAVA_PKG_IUSE and then this eclass |
23 | # Use JAVA_PKG_IUSE instead of IUSE for doc, source and examples so that |
| 24 | # will automatically add deps for them. |
24 | # the eclass can automatically add the needed dependencies for the java-pkg_do* |
|
|
25 | # functions. |
| 25 | # |
26 | # |
| 26 | # ------------------------------------------------------------------------------ |
27 | # ------------------------------------------------------------------------------ |
| 27 | IUSE="${JAVA_PKG_IUSE}" |
28 | IUSE="${JAVA_PKG_IUSE}" |
| 28 | |
29 | |
| 29 | # ------------------------------------------------------------------------------ |
30 | # ------------------------------------------------------------------------------ |
| … | |
… | |
| 32 | # Java packages need java-config, and a fairly new release of Portage. |
33 | # Java packages need java-config, and a fairly new release of Portage. |
| 33 | # |
34 | # |
| 34 | # JAVA_PKG_E_DEPEND is defined in java-utils.eclass. |
35 | # JAVA_PKG_E_DEPEND is defined in java-utils.eclass. |
| 35 | # ------------------------------------------------------------------------------ |
36 | # ------------------------------------------------------------------------------ |
| 36 | DEPEND="${JAVA_PKG_E_DEPEND}" |
37 | DEPEND="${JAVA_PKG_E_DEPEND}" |
| 37 | |
|
|
| 38 | hasq source ${JAVA_PKG_IUSE} && DEPEND="${DEPEND} source? ( app-arch/zip )" |
|
|
| 39 | |
38 | |
| 40 | # ------------------------------------------------------------------------------ |
39 | # ------------------------------------------------------------------------------ |
| 41 | # @rdepend |
40 | # @rdepend |
| 42 | # |
41 | # |
| 43 | # Nothing special for RDEPEND... just the same as DEPEND. |
42 | # Nothing special for RDEPEND... just the same as DEPEND. |