--- imagemagick-6.2.8.0.ebuild.orig 2006-08-15 23:06:03.000000000 +0200 +++ imagemagick-6.2.8.0.ebuild 2006-09-05 18:05:14.000000000 +0200 @@ -51,18 +51,27 @@ S=${WORKDIR}/${MY_P} +#Avoid that perl-module gets built even if we run ./configure --with-perl +#These variabled are taken from PerlMagick/Makefile.am +MY_MAKE_OVERRIDE=" + PERLMAGICK_ALL_LOCAL_TARGETS= + PERLMAGICK_INSTALL_EXEC_LOCAL_TARGETS= + PERLMAGICK_INSTALL_DATA_LOCAL_TARGETS= +" + src_unpack() { unpack ${A} 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) \ @@ -83,7 +92,8 @@ $(use_with zlib) \ $(use_with X x) \ || die "econf failed" - emake || die "compile problem" + + emake ${MY_MAKE_OVERRIDE} || die "compile problem" if use perl ; then cd PerlMagick @@ -93,7 +103,7 @@ } src_install() { - make DESTDIR="${D}" install || die + make DESTDIR="${D}" ${MY_MAKE_OVERRIDE} install || die dosed "s:-I/usr/include ::" /usr/bin/Magick{,++}-config # dont need these files with runtime plugins