justin schrieb:
> Hi,
> 
> I want to add following change to fortran-2.eclass to achieve more 
> simpler usage.
> 
> The patch will make the eclass depend on virtual/fortran so that
> no manual addition is needed. Two exception are present, a) the
> ebuild has the USE flag fortran, then we check for that, or b) the
> FORTRAN_OPTIONAL variable is set, which leaves the control to the
> ebuild (e.g. for cases like "lapack? ( virtual/fortran )").

I suggest that you do something similar to the XORG_DRI variable in
xorg-2.eclass.

For example:
FORTRAN_WANT_COMPILER=no would not add a virtual/fortran dependency
FORTRAN_WANT_COMPILER=always would unconditionally depend on
virtual/fortran
FORTRAN_WANT_COMPILER=useflag would depend on useflag? ( virtual/fortran )

To avoid breaking existing packages, you could default to
FORTRAN_WANT_COMPILER=fortran


Best regards,
Chí-Thanh Christopher Nguyễn


Reply via email to