On 01/20/2015 07:46 AM, Andreas K. Huettel wrote:
> Am Dienstag 20 Januar 2015, 08:57:43 schrieb Michał Górny:
>> So a package supporting both providers has:
>>
>>   IUSE="ffmpeg libav"
>>   RDEPEND="
>>       ffmpeg? ( media-video/ffmpeg:= )
>>       libav? ( media-video/libav:= [media-libs/libpostproc:=] )"
>>   REQUIRED_USE="^^ ( ffmpeg libav )"
>>
>> And a package with optional support for both ends up like:
>>
>>   IUSE="avcodec postproc ffmpeg libav"
>>   RDEPEND="
>>       avcodec? (
>>           ffmpeg? ( media-video/ffmpeg:= )
>>           libav? ( media-video/libav:= )
>>       )
>>       postproc? (
>>           ffmpeg? ( media-video/ffmpeg:= )
>>           libav? ( media-libs/libpostproc:= )
>>       )"
>>   REQUIRED_USE="
>>       avcodec? ( ^^ ( ffmpeg libav ) )
>>       postproc? ( ^^ ( ffmpeg libav ) )
>>       ffmpeg? ( || ( avcodec postproc ) )
>>       libav? ( || ( avcodec postproc ) )"
>>
> No.
>

As a user, I completely agree with Andreas. What's wrong with a
dependency on virtual/ffmpeg? Let's say I want to install mpv; if I
completely ignore the upstream's recommendation of ffmpeg and instead
use libav to satisfy a virtual/ffmpeg dependency, that's my problem, not
the Gentoo developers (in my opinion).

I've written a few ebuilds, and by no means am even close to competent.
If they get more and more complex like this, why should I even bother
ever learning? I feel like ebuilds should be as simple as possible, to
keep devs sane and to interest more people. Another downside is that a
much more verbose solution like this will make dependency resolution
take longer imnho.

Alec

Reply via email to