commit:     71a28de9bdb167bca63034f9527e3583d0cfddf3
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat May 29 19:02:04 2021 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Sat May 29 19:02:04 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=71a28de9

media-gfx/mscgen: misc. dep fixes

* Add REQUIRED_USE for truetype (needs USE=png to do anything)
* Add truetype? ( media-libs/freetype ) dependency
* Use BDEPEND

Signed-off-by: Sam James <sam <AT> gentoo.org>
Signed-off-by: David Seifert <soap <AT> gentoo.org>

 media-gfx/mscgen/mscgen-0.20.ebuild | 14 +++++++++-----
 1 file changed, 9 insertions(+), 5 deletions(-)

diff --git a/media-gfx/mscgen/mscgen-0.20.ebuild 
b/media-gfx/mscgen/mscgen-0.20.ebuild
index 974df47549b..fa0e6c4a4a2 100644
--- a/media-gfx/mscgen/mscgen-0.20.ebuild
+++ b/media-gfx/mscgen/mscgen-0.20.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -14,12 +14,16 @@ KEYWORDS="amd64 arm ppc ppc64 x86 ~x64-solaris"
 LICENSE="GPL-2"
 SLOT="0"
 IUSE="png truetype"
+REQUIRED_USE="truetype? ( png )"
 
-RDEPEND="png? (        media-libs/gd[png,truetype?] )"
-DEPEND="${RDEPEND}
-       virtual/pkgconfig
+RDEPEND="
+       truetype? ( media-libs/freetype )
+       png? ( media-libs/gd[png,truetype?] )"
+DEPEND="${RDEPEND}"
+BDEPEND="
        sys-devel/bison
-       sys-devel/flex"
+       sys-devel/flex
+       virtual/pkgconfig"
 
 # Workaround for bug #379279
 RESTRICT="test"

Reply via email to