Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 93084 - Ebuild for Inline::Java
Summary: Ebuild for Inline::Java
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Other
: High enhancement (vote)
Assignee: Michael Cummings (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-18 09:40 UTC by Morgan Christiansson
Modified: 2005-05-18 14:30 UTC (History)
1 user (show)

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


Attachments
dev-perl/Inline-Java-0.49.ebuild (Inline-Java-0.49.ebuild,601 bytes, text/plain)
2005-05-18 09:41 UTC, Morgan Christiansson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Morgan Christiansson 2005-05-18 09:40:46 UTC
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.
Comment 1 Morgan Christiansson 2005-05-18 09:41:49 UTC
Created attachment 59227 [details]
dev-perl/Inline-Java-0.49.ebuild
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2005-05-18 09:44:29 UTC
Could you rather post the errors you encountered while emerging? There are
already way too many perl ebuilds in portage... 
Comment 3 Michael Cummings (RETIRED) gentoo-dev 2005-05-18 11:13:13 UTC
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 
Comment 4 Morgan Christiansson 2005-05-18 11:40:29 UTC
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.
Comment 5 Morgan Christiansson 2005-05-18 11:44:43 UTC
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!).
Comment 6 Michael Cummings (RETIRED) gentoo-dev 2005-05-18 14:22:45 UTC
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. 
Comment 7 Michael Cummings (RETIRED) gentoo-dev 2005-05-18 14:30:31 UTC
done