SLOT="0/${PV}"
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86 ~ppc-aix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
IUSE="bzip2 corefonts cxx djvu fftw fontconfig fpx graphviz hdri heif jbig jpeg jpeg2k lcms lqr lzma opencl openexr openmp pango perl png postscript q32 q8 raw static-libs svg test tiff truetype webp wmf X xml zlib"
-RESTRICT="!test? ( test ) perl? ( userpriv )"
+
+REQUIRED_USE="corefonts? ( truetype )
+ test? ( corefonts )"
+
+RESTRICT="perl? ( userpriv )
+ !test? ( test )"
RDEPEND="
dev-libs/libltdl:0
virtual/pkgconfig
X? ( x11-base/xorg-proto )"
-REQUIRED_USE="corefonts? ( truetype )
- test? ( corefonts )"
-
S="${WORKDIR}/${MY_P}"
src_prepare() {
IUSE="bzip2 corefonts cxx djvu fftw fontconfig fpx graphviz hdri heif jbig jpeg jpeg2k lcms lqr lzma opencl openexr openmp pango perl png postscript q32 q8 raw static-libs svg test tiff truetype webp wmf X xml zlib"
RESTRICT="!test? ( test )"
+REQUIRED_USE="corefonts? ( truetype )
+ test? ( corefonts )"
+
+RESTRICT="!test? ( test )"
+
BDEPEND="virtual/pkgconfig"
RDEPEND="
!media-gfx/graphicsmagick[imagemagick]
X? ( x11-base/xorg-proto )"
-REQUIRED_USE="corefonts? ( truetype )
- test? ( corefonts )"
-
S="${WORKDIR}/${MY_P}"
src_prepare() {
IUSE="bzip2 corefonts cxx djvu fftw fontconfig fpx graphviz hdri heif jbig jpeg jpeg2k lcms lqr lzma opencl openexr openmp pango perl png postscript q32 q8 raw static-libs svg test tiff truetype webp wmf X xml zlib"
RESTRICT="!test? ( test )"
+REQUIRED_USE="corefonts? ( truetype )
+ test? ( corefonts )"
+
+RESTRICT="!test? ( test )"
+
BDEPEND="virtual/pkgconfig"
RDEPEND="
!media-gfx/graphicsmagick[imagemagick]
X? ( x11-base/xorg-proto )"
-REQUIRED_USE="corefonts? ( truetype )
- test? ( corefonts )"
-
S="${WORKDIR}/${MY_P}"
src_prepare() {