diff options
author | Hans de Graaff <graaff@gentoo.org> | 2022-05-20 09:11:35 +0200 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2022-05-22 07:41:51 +0200 |
commit | bb04e778c624c414ac249878369df4efcdd2f0fb (patch) | |
tree | e33a2ecd96421a9ddc00e0c351fffe421df662fc /eclass | |
parent | dev-db/mysql-workbench: add 8.0.29 (diff) | |
download | gentoo-bb04e778c624c414ac249878369df4efcdd2f0fb.tar.gz gentoo-bb04e778c624c414ac249878369df4efcdd2f0fb.tar.bz2 gentoo-bb04e778c624c414ac249878369df4efcdd2f0fb.zip |
eclass/ruby-fakegem.eclass: depend on virtual/pkgconfig
Many C extensions depend on pkgconfig during their configure phase and
this is easy to miss in the ebuild. Handle this in the eclass instead
even though the dependency will not be needed for all extensions.
Closes: https://bugs.gentoo.org/845393
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/ruby-fakegem.eclass | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/eclass/ruby-fakegem.eclass b/eclass/ruby-fakegem.eclass index 358fff1be753..6f561f4f6a2f 100644 --- a/eclass/ruby-fakegem.eclass +++ b/eclass/ruby-fakegem.eclass @@ -210,6 +210,11 @@ case ${EAPI} in ;; esac +# Many (but not all) extensions use pkgconfig in src_configure. +if [[ ${#RUBY_FAKEGEM_EXTENSIONS[@]} -gt 0 ]]; then + BDEPEND+=" virtual/pkgconfig " +fi + # @FUNCTION: ruby_fakegem_gemsdir # @RETURN: Returns the gem data directory # @DESCRIPTION: |