Bug 180243 - games-puzzle/pauker-1.7.5 version bump
Bug#: 180243 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: enhancement Priority: P2
Resolution: FIXED Assigned To: games@gentoo.org Reported By: nyhm@gentoo.org
Component: Games
URL: 
Summary: games-puzzle/pauker-1.7.5 version bump
Keywords:  
Status Whiteboard: 
Opened: 2007-05-29 16:40 0000
Description:   Opened: 2007-05-29 16:40 0000
I'm having trouble getting this to build properly.

Attaching my attempt...

------- Comment #1 From Tristan Heaven 2007-05-29 16:41:40 0000 -------
Created an attachment (id=120625) [details]
pauker-1.7.5.ebuild

------- Comment #2 From Petteri Räty 2007-05-29 17:14:10 0000 -------
(In reply to comment #0)
> I'm having trouble getting this to build properly.
> 
> Attaching my attempt...
> 

So do you need input from us or is this just a reminder bug?

------- Comment #3 From Tristan Heaven 2007-05-29 17:15:37 0000 -------
I'd appreciate some help

------- Comment #4 From Petteri Räty 2007-05-29 17:29:30 0000 -------
(In reply to comment #3)
> I'd appreciate some help
> 

Then the actual failure would be useful instead of requiring as to download &
compile ourselves just to point out something that we could point out from the
logs.

------- Comment #5 From Tristan Heaven 2007-05-29 17:38:47 0000 -------
(In reply to comment #4)
> (In reply to comment #3)
> > I'd appreciate some help
> > 
> 
> Then the actual failure would be useful instead of requiring as to download &
> compile ourselves just to point out something that we could point out from the
> logs.
> 

oh yeah, sorry...

$ pauker
Exception in thread "main" java.lang.NoClassDefFoundError:
edu/stanford/ejalbert/exception/UnsupportedOperatingSystemException

------- Comment #6 From Vlastimil Babka (Caster) 2007-05-29 18:41:22 0000 -------
(In reply to comment #5)
> $ pauker
> Exception in thread "main" java.lang.NoClassDefFoundError:
> edu/stanford/ejalbert/exception/UnsupportedOperatingSystemException

If you have dependencies, using --jar with dolauncher (as you do implicitly)
won't make them load (unless you hardcode their paths to manifest's CLASSPATH
which we don't do because it's ugly :). Upstream jar just bundles them inside,
nasty and usual... Pass `--main $main_class` to dolauncher (the class name you
pass to `jar -e` which you don't need to anymore).
Also, using jar -C classes is bit more elegant than cd classes; jar ... :)
# jar cf ${PN}.jar -C classes . || die "jar failed"

------- Comment #7 From Vlastimil Babka (Caster) 2007-05-29 18:52:07 0000 -------
You'll also have to either point the --pre in dolauncher to GAMES_DATADIR or
install the resources in GAMES_DATADIR/pauker/pauker because it expects them to
be in ./pauker relative to the PWD... (as upstream has them in ./pauker dir
relative to jar's "root").

Also, you can change the jdk/jre dep to >=1.4, it works fine.

------- Comment #8 From Tristan Heaven 2007-05-29 21:46:22 0000 -------
works now, thanks :)