media-gfx/imagemagick: add check ENV safeguard for USE=perl
authorThomas Deutschmann <whissi@gentoo.org>
Sun, 9 Sep 2018 00:10:04 +0000 (02:10 +0200)
committerThomas Deutschmann <whissi@gentoo.org>
Sun, 9 Sep 2018 00:16:13 +0000 (02:16 +0200)
Bug: https://bugs.gentoo.org/649342
Package-Manager: Portage-2.3.49, Repoman-2.3.10

media-gfx/imagemagick/imagemagick-9999.ebuild

index 830fae680664acb466341bc3318b4e50195fc9ef..4478e11285d9c8e7a1cb9061633954d94c6e92c4 100644 (file)
@@ -3,7 +3,7 @@
 
 EAPI="6"
 
-inherit eapi7-ver eutils flag-o-matic libtool multilib toolchain-funcs
+inherit eapi7-ver eutils flag-o-matic libtool perl-functions toolchain-funcs multilib
 
 if [[ ${PV} == "9999" ]] ; then
        EGIT_REPO_URI="https://github.com/ImageMagick/ImageMagick.git"
@@ -126,6 +126,8 @@ src_configure() {
        local openmp=disable
        use openmp && { tc-has-openmp && openmp=enable; }
 
+       use perl && perl_check_env
+
        [[ ${CHOST} == *-solaris* ]] && append-ldflags -lnsl -lsocket
 
        local myeconfargs=(