--- /usr/portage/x11-misc/kflog/kflog-2.1.1.ebuild 2005-07-28 23:36:08.000000000 +0200 +++ kflog-2.1.1.ebuild 2005-08-23 21:51:15.000000000 +0200 @@ -17,7 +17,8 @@ sys-apps/grep sys-devel/gcc virtual/libc - sys-libs/zlib" + sys-libs/zlib + arts? ( kde-base/arts )" RDEPEND="dev-libs/expat media-libs/fontconfig @@ -34,6 +35,35 @@ need-kde 3 +src_unpack() { + unpack ${A} + if ! use arts; then + einfo "Removing arts checks..." + cd ${S} + sed -i -e '488,489d' -e '508,509d' acinclude.m4 + einfo "Running autotools..." + aclocal + automake + autoconf + einfo "Fixing all Makefile.in..." + perl admin/am_edit \ + po/Makefile.in \ + doc/en/Makefile.in \ + doc/Makefile.in \ + kflog/pics/Makefile.in \ + kflog/map-icons/small/Makefile.in \ + kflog/map-icons/Makefile.in \ + kflog/Makefile.in \ + kflog/guicontrols/Makefile.in \ + kflog/kfrfil/Makefile.in \ + kflog/kfrgcs/Makefile.in \ + kflog/kfrgmn/Makefile.in \ + kflog/kfrxcu/Makefile.in \ + kflog/kfrxsp/Makefile.in \ + Makefile.in + fi +} + src_install() { kde_src_install rm -rf ${D}/usr/share/doc/HTML