--- imagemagick-6.2.8.0.ebuild.orig 2006-07-19 16:47:42.000000000 +0200 +++ imagemagick-6.2.8.0.ebuild 2006-07-19 17:19:18.000000000 +0200 @@ -56,13 +56,14 @@ cd "${S}" chmod +x config.sub epatch "${FILESDIR}"/${PN}-6.2.5.4-docs.patch + epatch "${FILESDIR}"/imagemagick-perl.patch } src_compile() { econf \ --with-threads \ --with-modules \ - --without-perl \ + $(use_with perl) \ --with-gs-font-dir=/usr/share/fonts/default/ghostscript \ --with-windows-font-dir=/usr/share/fonts/corefonts \ $(use_with !nocxx magick-plus-plus) \