From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.62) (envelope-from ) id 1Gt1BW-0007gY-DR for garchives@archives.gentoo.org; Sat, 09 Dec 2006 12:20:06 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.8/8.13.8) with SMTP id kB9CJH5K030075; Sat, 9 Dec 2006 12:19:17 GMT Received: from gw03.mail.saunalahti.fi (gw03.mail.saunalahti.fi [195.197.172.111]) by robin.gentoo.org (8.13.8/8.13.8) with ESMTP id kB9CJH7F024378 for ; Sat, 9 Dec 2006 12:19:17 GMT Received: from mrp2.mail.saunalahti.fi (mrp2.mail.saunalahti.fi [62.142.5.31]) by gw03.mail.saunalahti.fi (Postfix) with ESMTP id 5E45A21611F for ; Sat, 9 Dec 2006 14:19:17 +0200 (EET) Received: from [192.168.150.87] (a88-112-194-247.elisa-laajakaista.fi [88.112.194.247]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mrp2.mail.saunalahti.fi (Postfix) with ESMTP id 292D4598001 for ; Sat, 9 Dec 2006 14:19:15 +0200 (EET) Message-ID: <457AA9BF.6060705@gentoo.org> Date: Sat, 09 Dec 2006 14:19:11 +0200 From: =?UTF-8?B?UGV0dGVyaSBSw6R0eQ==?= User-Agent: Thunderbird 1.5.0.8 (X11/20061109) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-java@gentoo.org MIME-Version: 1.0 To: gentoo-java@lists.gentoo.org Subject: [gentoo-java] RFC: Default src_compile for java-pkg-2.eclass X-Enigmail-Version: 0.94.0.0 OpenPGP: url=http://users.tkk.fi/~praty/public.asc Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigFBBA4A1702D647A7FE85D82E" X-Archives-Salt: 0331ec39-fd87-4c4d-a2b5-06138e8f34a9 X-Archives-Hash: 8a2e1b81f61bed15f3249f71a63240b5 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigFBBA4A1702D647A7FE85D82E Content-Type: multipart/mixed; boundary="------------070204030904060106070000" This is a multi-part message in MIME format. --------------070204030904060106070000 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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 --------------070204030904060106070000 Content-Type: text/x-patch; name="default-src_compile.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline; filename="default-src_compile.patch" Index: java-pkg-2.eclass =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D 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=3D"${DEPEND}" =20 -EXPORT_FUNCTIONS pkg_setup +EXPORT_FUNCTIONS pkg_setup src_compile =20 # ----------------------------------------------------------------------= -------- # @eclass-pkg_setup @@ -46,6 +46,17 @@ } =20 # ----------------------------------------------------------------------= -------- +# @eclass-src_compile +# +# Default src_compile for java packages +# ----------------------------------------------------------------------= -------- +java-pkg-2_src_compile() { + local antflags=3D"jar" + hasq doc ${IUSE} && antflags=3D"${antflags} $(use_doc)" + eant ${antflags} +} + +# ----------------------------------------------------------------------= -------- # @note # # We need to initialize the environment in every function because Portag= e --------------070204030904060106070000-- --------------enigFBBA4A1702D647A7FE85D82E Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFeqnDcxLzpIGCsLQRAtaXAKCC5zVi0WFjwb1labLb+pV9i/2H6wCfQXkS lJBSU5T2ugbfcoksbYYYUMM= =5tuv -----END PGP SIGNATURE----- --------------enigFBBA4A1702D647A7FE85D82E-- -- gentoo-java@gentoo.org mailing list