Attention
robbat2 or other Gentoo wizards
Once I get my Gentoo install working happily, I suppose I'm going to need to make ebuilds for several packages I use that don't now have any. These include my favorite programming editor, Xcoral, and my multithreaded Perl ICB client, ICBM.
Now, there's a problem with this. It's easy to make one package dependent on another package. However, ICBM will not work unless Perl is built with ithreads support, and, for reasons that utterly and completely baffle and mystify me, to the best of my knowledge no OS or Linux distribution ships Perl by default with ithreads enabled.
So the question this raises is, is there any way to specify in an ebuild, "This package ICBM requires package dev-lang/perl, and requires that dev-lang/perl be built with USE=ithreads"?
no subject
So you could do something like:
inherit eutils;
...
if ! built_with_use dev-lang/perl ithreads; then
eerror "You MUST re-emerge perl with the ithreads USE flag"
die "Current perl installation not threaded"
fi
no subject
no subject
Look at net-misc/asterisk/asterisk-1.0.10.ebuild for the best way of doing the ithreads check, as you need to take libperl into account as well.
After Portage2.2, you'll be able to do
RDEPEND="dev-lang/perl[+ithreads]"
:-)
This feature has been a _very_ long time in coming.
no subject