Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 74978 - Six standardized use flags: junit, gcj, jikes, doc, examples, source
Summary: Six standardized use flags: junit, gcj, jikes, doc, examples, source
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High enhancement (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-19 15:27 UTC by Karl Trygve Kalleberg (RETIRED)
Modified: 2005-03-28 16:29 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Karl Trygve Kalleberg (RETIRED) gentoo-dev 2004-12-19 15:27:16 UTC
Currently, we use the flags junit, jikes and doc quite pervasively.

I propose we also add the following USE flags whenever possible:

1) gcj - compile the package with gcj also; will install a .so in addition to the jar. This means compiling a package twice, once with a regular javac/jikes and a second with gcj.

2) examples - include source code examples into /usr/share/doc/${PF}. This is not the javadoc api documentation, but rather auxiliary examples that sometimes come with bigger libraries.

3) source - include the complete source code in a .zip file into /usr/share/doc/${PF}/source, for ease of debugging using Eclipse, NetBeans or other IDE.

We should of course also strive to support compile-time unit testing with junit,
support compilation with jikes instead of javac whenever possible and *always* generate and install the javadoc API docs for all library packages.
Comment 1 Jan Brinkmann (RETIRED) gentoo-dev 2005-03-28 16:29:32 UTC
we're already integrating these useflags into ebuilds and the policy is updated. marking as fixed.