/[gentoo-x86]/eclass/java-pkg-2.eclass
Gentoo

Contents of /eclass/java-pkg-2.eclass

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Sun Dec 3 13:05:06 2006 UTC (7 years, 7 months ago) by betelgeuse
Branch: MAIN
Changes since 1.3: +1 -0 lines
Added CVS Headers after a request from grobian.

1 # Eclass for Java packages
2 #
3 # Copyright (c) 2004-2005, Thomas Matthijs <axxo@gentoo.org>
4 # Copyright (c) 2004-2005, Gentoo Foundation
5 #
6 # Licensed under the GNU General Public License, v2
7 #
8 # $Header: $
9
10 inherit java-utils-2
11
12 # -----------------------------------------------------------------------------
13 # @eclass-begin
14 # @eclass-summary Eclass for Java Packages
15 #
16 # This eclass should be inherited for pure Java packages, or by packages which
17 # need to use Java.
18 # -----------------------------------------------------------------------------
19
20 # ------------------------------------------------------------------------------
21 # @depend
22 #
23 # Java packages need java-config, and a fairly new release of Portage.
24 #
25 # JAVA_PKG_E_DEPEND is defined in java-utils.eclass.
26 # ------------------------------------------------------------------------------
27 DEPEND="${JAVA_PKG_E_DEPEND}"
28
29 # ------------------------------------------------------------------------------
30 # @rdepend
31 #
32 # Nothing special for RDEPEND... just the same as DEPEND.
33 # ------------------------------------------------------------------------------
34 RDEPEND="${DEPEND}"
35
36 EXPORT_FUNCTIONS pkg_setup
37
38 # ------------------------------------------------------------------------------
39 # @eclass-pkg_setup
40 #
41 # pkg_setup initializes the Java environment
42 # ------------------------------------------------------------------------------
43 java-pkg-2_pkg_setup() {
44 java-pkg_init
45 }
46
47 # ------------------------------------------------------------------------------
48 # @note
49 #
50 # We need to initialize the environment in every function because Portage
51 # will source /etc/profile between phases and trample all over the env.
52 # This is accomplished by phase hooks, which is available with newer versions of
53 # portage.
54 # ------------------------------------------------------------------------------
55
56 pre_pkg_setup() {
57 java-pkg-2_pkg_setup
58 }
59
60 pre_src_unpack() {
61 java-pkg-2_pkg_setup
62 }
63
64 pre_src_compile() {
65 java-pkg-2_pkg_setup
66 }
67
68 pre_src_install() {
69 java-pkg-2_pkg_setup
70 }
71
72 pre_src_test() {
73 java-pkg-2_pkg_setup
74 }
75
76 pre_pkg_preinst() {
77 java-pkg-2_pkg_setup
78 }
79
80 pre_pkg_postinst() {
81 java-pkg-2_pkg_setup
82 }
83
84 # ------------------------------------------------------------------------------
85 # @eclass-end
86 # ------------------------------------------------------------------------------

  ViewVC Help
Powered by ViewVC 1.1.20