currently it depends on app-arch/unrar when app-arch/rar can do the job as well Reproducible: Always Steps to Reproduce: 1. install app-arch/rar 2. try to install games-rpg/nwn-cep with the rar USE flag enabled Actual Results: app-arch/unrar gets pulled when it isn't needed Expected Results: app-arch/unrar does not get pulled
Created attachment 170342 [details] updated ebuild to depend on app-arch/rar optionally
Mplayer pulls in unrar-gpl, which I assume should be able to handle the "unrar" dep as well. Trying to emerge nwn-cep results in a block for me between app-arch/unrar (pulled in by nwn-cep) and app-arch/unrar-gpl (pulled in by mplayer). So the ebuild should probably read: DEPENDS="|| (app-arch/rar app-arch/unrar app-arch/unrar-gpl)" PS: I hope to try it tomorrow after I download the 1.5+ GB of files needed to install NWN...
(In reply to comment #2) > Mplayer pulls in unrar-gpl, which I assume should be able to handle the "unrar" > dep as well. Trying to emerge nwn-cep results in a block for me between > app-arch/unrar (pulled in by nwn-cep) and app-arch/unrar-gpl (pulled in by > mplayer). > > So the ebuild should probably read: > > DEPENDS="|| (app-arch/rar app-arch/unrar app-arch/unrar-gpl)" So that people that don't have any of the three installed will get the gpl version, a better order might be: DEPENDS="|| ( app-arch/unrar-gpl app-arch/unrar app-arch/rar )"
This ebuild should use unpacker.eclass
+ 07 Oct 2012; Pacho Ramos <pacho@gentoo.org> nwn-cep-1.68-r1.ebuild, + nwn-cep-2.0.ebuild: + Rely on unpack.eclass to pull unrar deps, if other RAR alternatives are found + to really fully replace unrar, this needs to be discussed centrally with + eclass authors instead of in every ebuild using rar files (#244987 by + drantin). +