public inbox for gentoo-java@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-java] RFC: Default src_compile for java-pkg-2.eclass
@ 2006-12-09 12:19 Petteri Räty
  2006-12-11  5:05 ` Joshua Nichols
  0 siblings, 1 reply; 5+ messages in thread
From: Petteri Räty @ 2006-12-09 12:19 UTC (permalink / raw
  To: gentoo-java


[-- Attachment #1.1: Type: text/plain, Size: 149 bytes --]

I was looking at the output of qgrep eant to see how our ebuilds usually
call eant and came up with the attached src_compile.

Regards,
Petteri

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.2: default-src_compile.patch --]
[-- Type: text/x-patch; name="default-src_compile.patch", Size: 1195 bytes --]

Index: java-pkg-2.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/java-pkg-2.eclass,v
retrieving revision 1.5
diff -u -r1.5 java-pkg-2.eclass
--- java-pkg-2.eclass	8 Dec 2006 12:12:04 -0000	1.5
+++ java-pkg-2.eclass	9 Dec 2006 12:16:15 -0000
@@ -33,7 +33,7 @@
 # ------------------------------------------------------------------------------
 RDEPEND="${DEPEND}"
 
-EXPORT_FUNCTIONS pkg_setup
+EXPORT_FUNCTIONS pkg_setup src_compile
 
 # ------------------------------------------------------------------------------
 # @eclass-pkg_setup
@@ -46,6 +46,17 @@
 }
 
 # ------------------------------------------------------------------------------
+# @eclass-src_compile
+#
+# Default src_compile for java packages
+# ------------------------------------------------------------------------------
+java-pkg-2_src_compile() {
+	local antflags="jar"
+	hasq doc ${IUSE} && antflags="${antflags} $(use_doc)"
+	eant ${antflags}
+}
+
+# ------------------------------------------------------------------------------
 # @note
 #
 # We need to initialize the environment in every function because Portage

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 252 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-12-17 16:45 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-09 12:19 [gentoo-java] RFC: Default src_compile for java-pkg-2.eclass Petteri Räty
2006-12-11  5:05 ` Joshua Nichols
2006-12-11 10:59   ` Vlastimil Babka
2006-12-11 15:04     ` Joshua Nichols
2006-12-17 16:44       ` Petteri Räty

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox