Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 145186 - Version bump dev-utils/groovy and clean up the ebuild
Summary: Version bump dev-utils/groovy and clean up the ebuild
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on: 144859 145254
Blocks:
  Show dependency tree
 
Reported: 2006-08-26 07:55 UTC by Petteri Räty (RETIRED)
Modified: 2006-09-23 03:04 UTC (History)
1 user (show)

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


Attachments
Some work done (groovy-1.0.6.ebuild,3.55 KB, text/plain)
2006-08-27 05:54 UTC, Jakob Truelsen
Details
The autogenerated build.xml (build.xml-1.0.6,11.36 KB, text/plain)
2006-08-27 05:57 UTC, Jakob Truelsen
Details
Almost there (groovy-1.0.6.ebuild,2.20 KB, text/plain)
2006-08-27 06:46 UTC, Jakob Truelsen
Details
groovy-1.0.6.ebuild (groovy-1.0.6-r1.ebuild,2.71 KB, text/plain)
2006-08-29 13:07 UTC, Jakob Truelsen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Petteri Räty (RETIRED) gentoo-dev 2006-08-26 07:55:33 UTC
dev-utils/groovy could use a version bump

Improvements that could be done to the ebuild:
* check the deps. project.xml seems that all is not needed and some are optional
* improve the wrapper script. Could probably be done by dolauncher for example
Comment 1 Jakob Truelsen 2006-08-27 05:54:56 UTC
Created attachment 95196 [details]
Some work done

This ebuild is NOT compleat.. but it will compile the jar for the latest version.. im still fitteling to get the cli to work.. but others are welcome to join..
Comment 2 Jakob Truelsen 2006-08-27 05:57:11 UTC
Created attachment 95198 [details]
The autogenerated build.xml

This build.xml is needed in files..
Comment 3 Jakob Truelsen 2006-08-27 06:15:42 UTC
How do we handle all these optional features??

Do we
1) Include none
2) Include the ones "we" like
3) Include each and every one
4) Use ALOT of useflags.. 

This is not only a question for this package but for java packages in gereral..
A lot a java packages has support for alot of optional stuff.. it seems to me that  the current approach is "3". => emerge <some java package> => install alot of crap that no sane perseon uses.

Unlike with c packages the java packages can be linked (with supplid jars) to no remerging of a package is needed to make optional feetures work...
Comment 4 Jakob Truelsen 2006-08-27 06:46:49 UTC
Created attachment 95200 [details]
Almost there

Ok.. most of the cli tools seems to work out of the box with standard launchers..
the onlything missing is the groovyConsole.. it needs groovyc to compile.. but groovc is first avail in the install fase...

is there some way to create a temp launcher??
Comment 5 Josh Nichols (RETIRED) gentoo-dev 2006-08-27 12:15:03 UTC
While a lot of things are 'optional', they are almost always optional at runtime, ie you simply don't provide the appropriate classpath that the optional parts need.

But... you still need them at build time, because source would import classes from said dependency. This is because most packages don't sanely support building optional support, and so we usually end up deleting source code for the optional features.
Comment 6 Jakob Truelsen 2006-08-27 12:37:23 UTC
(In reply to comment #5)
> While a lot of things are 'optional', they are almost always optional at
> runtime, ie you simply don't provide the appropriate classpath that the
> optional parts need.
> 
> But... you still need them at build time, because source would import classes
> from said dependency. This is because most packages don't sanely support
> building optional support, and so we usually end up deleting source code for
> the optional features.
> 
I get that.. but how do we deside what 'optional' things to include... eg. in this project what optional feetures do we include?
Comment 7 Jakob Truelsen 2006-08-29 13:07:27 UTC
Created attachment 95416 [details]
groovy-1.0.6.ebuild

I have found all optional feetures that can be toggeled by simply removing files.. and made them enableble via useflags... please give me some feetback..
Comment 8 Josh Nichols (RETIRED) gentoo-dev 2006-09-21 21:19:31 UTC
The ebuild looks pretty good overall.

* USE flag  dependencies should always be in parentheses. ie test? ( >=dev-java/junit-3.8.1 )  note: there should be space after start ( and before end )
* I'm not sure about calling it 1.0.6. It's versioned as 1.0-jsr-6, whatever that is. I think it might be better to call it _rc6, so we don't have to worry about doing a downgrade if a real 1.0.x release comes out.
* Typo in use flag in dep, sommandlinetools :)
* IUSE=source, but you don't do anything with it.
* 	>=dev-java/asm-2.2 isn't a valid dependency (not in main tree)
* >=dev-java/xstream-1.1.1 isn't a valid dependency (not in main tree)

I think it may be better to, at least initially, include most of the kitchen sink by default without USE flags. If there are things with really big dep trees or something, we can consider USE flag. The idea here, is that we end up with groovy having most/all of the libraries that someone using groovy would expect.
Comment 9 Josh Nichols (RETIRED) gentoo-dev 2006-09-21 21:21:06 UTC
Right, there's bugs open for those two depends :)
Comment 10 Josh Nichols (RETIRED) gentoo-dev 2006-09-21 22:05:49 UTC
After some tweaking, I've added it to our overlay:

https://overlays.gentoo.org/svn/proj/java/migrated-java-experimental-overlay/dev-java/groovy

Still needs a little work though. In particular, groovyConsole gets an exception, probably because I'm using asm-2.0.x.
Comment 11 Josh Nichols (RETIRED) gentoo-dev 2006-09-22 22:07:47 UTC
Added as groovy-1.0.06. Thanks for the contribution :)