public inbox for gentoo-java@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Petteri Räty" <betelgeuse@gentoo.org>
To: gentoo-java@lists.gentoo.org
Subject: [gentoo-java] RFC: Default src_compile for java-pkg-2.eclass
Date: Sat, 09 Dec 2006 14:19:11 +0200	[thread overview]
Message-ID: <457AA9BF.6060705@gentoo.org> (raw)


[-- 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 --]

             reply	other threads:[~2006-12-09 12:20 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-12-09 12:19 Petteri Räty [this message]
2006-12-11  5:05 ` [gentoo-java] RFC: Default src_compile for java-pkg-2.eclass Joshua Nichols
2006-12-11 10:59   ` Vlastimil Babka
2006-12-11 15:04     ` Joshua Nichols
2006-12-17 16:44       ` Petteri Räty

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=457AA9BF.6060705@gentoo.org \
    --to=betelgeuse@gentoo.org \
    --cc=gentoo-java@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox