As generated by g-cpan.pl with some minor fixes cause it didn't compile by default Reproducible: Always Steps to Reproduce: 1. 2. 3.
Created attachment 59227 [details] dev-perl/Inline-Java-0.49.ebuild
Could you rather post the errors you encountered while emerging? There are already way too many perl ebuilds in portage...
Like Jacub said - can you post the errors you got? I'll try it out on the unreleased g-cpan as well. Per policy, we prefer not to add new modules unless they either fulfill a dependency or provide something in their own right (more than just a .pm and some xs code that is). Thanks, Mike
It needs J2SDK variable passed when calling perl-module_src_prep(), as well as "make java". The ebuild adds only 3 variables over the generated ebuild, which is pretty reasonable. My compliments on perl-module.eclass, very nice & easy. DEPEND=">=virtual/jdk-1.4" myconf="J2SDK=$JAVA_HOME" mymake="java all" >>> emerge (1 of 1) dev-perl/Inline-Java-0.49 to / >>> md5 files ;-) Inline-Java-0.49.ebuild >>> md5 files ;-) files/digest-Inline-Java-0.49 >>> md5 src_uri ;-) Inline-Java-0.49.tar.gz >>> Unpacking source... >>> Unpacking Inline-Java-0.49.tar.gz to /var/tmp/portage/Inline-Java-0.49/work >>> Source unpacked. Welcome to the Inline::Java installation procedure. A Java 2 SDK is required to install and use Inline::Java. Please specify your Java 2 SDK installation directory using the J2SDK option to Makefile.PL as such: perl Makefile.PL J2SDK=/path/to/your/j2sdk/installation make: *** No targets specified and no makefile found. Stop. !!! ERROR: dev-perl/Inline-Java-0.49 failed. !!! Function perl-module_src_compile, Line 107, Exitcode 2 !!! compilation failed !!! If you need support, post the topmost build error, NOT this status message.
Regarding dependency, it was required for autodia: http://droogs.org/autodia/ which unfortunantley i'm not going to submit an ebuild for, since it ran fine from my home dir, and i problably won't use it much in the future. Also i'm currently investigating php<->perl, php->java, perl->java language bindings so this ebuild fit nicely into that investigation. Otherwise i would have just looked for some other application to generate the diagrams. Hopefully some co-workers will make good use of this ebuild (Hello Anders!).
OK, that I can see as justification (unless someone else on perl disagrees). This is one of those rare exceptions where the deps couldn't possibly be handled by g-cpan, no matter what invocation, and lends itself to a set of language bindings for further use.
done