gentoo / dlang

[MIRROR] D programming language ebuild repository
https://gitweb.gentoo.org/repo/user/dlang.git
GNU General Public License v2.0
30 stars 23 forks source link

dlang.eclass: improve environment variables #127

Closed the-horo closed 10 months ago

the-horo commented 11 months ago

This PR adds 2 functionalities to the eclass.

  1. It allows ebuilds to query D libraries for pkg-config files (x11-terms/tilix requiring dev-libs/gtkd)
  2. It allows packages to disable D compiler backends (tilix doesn't work with dmd or gdc, onedrive doesn't work with gdc etc.)
the-horo commented 10 months ago

It is worth considering not overwriting $LIBDIR_ABI for all the phase functions, only in src_install. This way we wouldn't need to add special cases for PKG_CONFIG_LIBDIR. Either way, only dev-libs/gtkd uses $LIBDIR_ABI and only x11-terms/tilix (will) need a special pkg-config path.