new version available, homepage and code generation changed. I attach a new working ebuild. Reproducible: Always Steps to Reproduce:
Created attachment 54277 [details] projectx-0.82.0.00.ebuild
fixed in cvs, i've rewritten the ebuild and i've also added a build.xml file for ant. i've send it upstream. i've also introduced support for the source and doc useflag, and added jikes support. thanks for your report. if you'Re interested in creating java ebuilds, this is our policy: http://gentoo-wiki.com/Gentoo_Java_Policy :)
I'll check it. And I hope you did it right. ;-)
No, your ebuild is BROKEN!
'htmls' have to be packed into the JAR as a resource. Just check my ebuild! cp resources/* build/ && cp -a htmls build/ javac -O -classpath lib/commons-net-1.2.2.jar -d build @sources.lst || die "compile failed" jar cfvm "${PN}.jar" MANIFEST.MF -C build . || die "linking failed" Don't install 'htmls' into DOCDIR!!! It don't work. projectx don't find it, when you select 'help'.
explanation: if you check the source (.../gui/Html.java), you see that the programm looks into "workdir + htmls [+ <language>]" *or* in "htmls [+ <language>]" inside the JAR as a ressource. So either you patch the source or you just put 'htmls' into the JAR inside the root. Putting it into the JAR is the most clean option.
slightly modified build.xml file, fixed in cvs. thanks.
now it looks good. But one last question: [/usr/bin/projectx] #!/bin/sh $(java-config -J) -cp $(java-config -p projectx,oro) net.sourceforge.dvb.projectx.common.X shoudn't it be "exec $(java-config -J) ...", so that the shell-script wrapper is terminated?
hmm, that doesn't work. try it :)
I tried and it worked! ;-) and there's no reason, why this shouldn't work. 'exec' replaces the running shell with the executed command, so the wrapper terminates and the java-process is running. w/o the 'exec' the wrapper runs till the java-process ends. That's odd.
in my case it closed my xterm's :)
then you did something wrong. trust me. 'exec' is fine and it just works. perhaps your xterm is broken. ;) of course, you have to put 'exec' into the wrapper-script. Never execute 'exec' within the shell. THEN, and ONLY then, you kick your terminal.
oh well, just have a look at 'aoss': [/usr/bin/aoss] prefix=/usr exec_prefix=${prefix} LD_PRELOAD=${exec_prefix}/lib/libaoss.so exec "$@" try it! does it close your xterm also?
Sorry, I have to reopen that Bug again. :-/ There's another Bug in your modified ebuild! [/usr/bin/projectx] #!/bin/sh $(java-config -J) -cp $(java-config -p projectx,oro) net.sourceforge.dvb.projectx.common.X You can't pass command-line args to ProjectX there's the "$@" missing. Also I want the 'exec' since it works everywhere and the last version of ProjectX had this also! You should check your installation, if xterm exists. Here it works! So this is how the *correct* wrapper-script should look: ----8<----------8<----------8<----------8<----------8<------ #!/bin/sh exec $(java-config -J) -cp $(java-config -p projectx,oro) net.sourceforge.dvb.projectx.common.X "$@" ----8<----------8<----------8<----------8<----------8<------
ehh, well... wait. You made it completely different to my version. I had something like: java -jar /usr/share/projectx/lib/projectx.jar "$@" I don't know if "$@" works with your version. But nonetheless, your wrapper-script is broken, since you can not pass options to the application. And you have to! look: use last config or standard ... ProjectX 0.82.0/15.01.2005 REINES TESTPROJEKT , Benutzer: stefan kurze CL (Kommandozeilen) Hilfe: (Hinweis: CL l
ehh, well... wait. You made it completely different to my version. I had something like: java -jar /usr/share/projectx/lib/projectx.jar "$@" I don't know if "$@" works with your version. But nonetheless, your wrapper-script is broken, since you can not pass options to the application. And you have to! look: use last config or standard ... ProjectX 0.82.0/15.01.2005 REINES TESTPROJEKT , Benutzer: stefan kurze CL (Kommandozeilen) Hilfe: (Hinweis: CL lädt auch die graphische Oberfläche ohne sie anzuzeigen) ohne Optionen ...startet die graphische Oberfläche [Optionen] <Eingabedatei 1>...[<Eingabedatei x>] Optionen: -dvx1..4, -c <x>, -o <x>, -n <x>, -l, -p <x>, -i <x>, -g -c [Pfad]INI-Datei ...verwende eine andere Konfigurationsdatei als die Standard X.ini -dvx1 ...erstelle eine .d2v Projektdatei beim demuxen -dvx2 ...erstelle eine .d2v Projektdatei + .ac3.wav (RIFF WAVE Header) -dvx3 ...erstelle eine .d2v Projektdatei + .mpa.wav (RIFF WAVE Header) -dvx4 ...erstelle eine .d2v Projektdatei + .ac3.wav + mpa.wav (RIFF WAVE Header) -o <Pfad> ...benutze den Pfad als Ausgabepfad -n <Dateiname> ...benutze den Dateiname als Ausgabedatei -p <Datei> ...nutze diese Datei als Schnittliste -i <tokens> ...benutze nur diese (P)IDs, getrennt durch Komma "," -g ...zeige die graphische Oberfläche mit den angegebenen CLI Optionen -l ...schreibe eine normale Logdatei benutze -dvx ODER -c & -o/-n/-l/-p/-i/-g oder keine Optionen (für Standard)
ok, I checked it. you can do this: #!/bin/sh exec $(java-config -J) -jar /usr/share/projectx/lib/projectx.jar "$@" and it works perfectly!
fixed in cvs
thanks.