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
Cc: Ernst de Haan <wfe.dehaan@gmail.com>
Subject: Re: [gentoo-java] Re: Installing Javadoc documentation with java-pkg_dohtml
Date: Wed, 21 Dec 2005 13:10:25 +0200	[thread overview]
Message-ID: <43A93821.1060208@gentoo.org> (raw)
In-Reply-To: <fa47cf900512210011g1d34ea13q@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1427 bytes --]

Ernst de Haan wrote:
>>While I'm at it, attached is the current version of my xmlenc ebuild.
>>As this is my very first Ebuild, feedback is highly appreciated.
> 
> 
> This time as a plain text .ebuild file. Comments are highly appreciated!
> 

Here we go.

> KEYWORDS="~x86 ~ppc ~sparc ~amd64"

Do you have all these arches to test with?
http://dev.gentoo.org/~plasmaroo/devmanual/keywording/

> src_compile() {
> 	local antflags="jar"
> 	use debug && antflags="-Djavac.debug=true ${antflags}"
> 	use jikes && antflags="-Dbuild.compiler=jikes ${antflags}"
> 	einfo "Ant flags: ${antflags}"

We don't einfo the antflags like this because there is nothing of
interest to the user. Feel free to use them for debugging but don't
leave them to the final ebuild.

> 	ant ${antflags} || die "Compilation failed."
> 	use doc && ( ant javadoc || die "Javadoc generation failed." )

Using parenthesis like this makes a subshell ( see man bash ). dieing
inside a subshell will not quit like you expect it to. Why not just add
javadoc to antflags?

> }
> 
> src_install() {
> 	java-pkg_dojar build/xmlenc.jar

java-pkd_dojar build/*.jar is probably more future proof so when version
bumping new jars are not missed.

Please note that these comments are only based on looking at the code. I
might find more if I ever get to actually testing it.

Thanks for the work so far.
http://www.gentoo.org/doc/en/ebuild-submit.xml

Regards,
Petteri

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

  reply	other threads:[~2005-12-21 11:11 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-20 21:59 [gentoo-java] Installing Javadoc documentation with java-pkg_dohtml Ernst de Haan
2005-12-20 22:08 ` [gentoo-java] " Ernst de Haan
2005-12-20 22:32   ` Petteri Räty
2005-12-21  8:01     ` Ernst de Haan
2005-12-21  8:11   ` Ernst de Haan
2005-12-21 11:10     ` Petteri Räty [this message]
2005-12-23 12:33       ` Ernst de Haan
2005-12-23 14:30         ` Ernst de Haan
2005-12-21  3:21 ` [gentoo-java] " Joshua Nichols
2005-12-27 19:26 ` [gentoo-java] " Wiktor Wandachowicz
2005-12-27 19:59   ` Ernst de Haan

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=43A93821.1060208@gentoo.org \
    --to=betelgeuse@gentoo.org \
    --cc=gentoo-java@lists.gentoo.org \
    --cc=wfe.dehaan@gmail.com \
    /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