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@gentoo.org>
Signed-off-by: David Seifert <soap@gentoo.org>
This commit is contained in:
Sam James
2021-05-29 21:02:04 +02:00
committed by David Seifert
parent b64e4c4a5f
commit 71a28de9bd

View File

@@ -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"