# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="Visualizes the fragmentation status of ext2/3 filesystems" HOMEPAGE="http://davl.sourceforge.net/" SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="gtk2" DEPEND=">=sys-fs/e2fsprogs-1.38 gtk2? ( =x11-libs/gtk+-2* ) !gtk2? ( =x11-libs/gtk+-1.2* )" src_unpack() { unpack ${A} cd "${S}" if ! use gtk2; then # Change default from gtk2 to gtk1.2 sed -i path_list \ -e "s:GTK2:GTK1:" \ || die "sed failed" fi } src_install() { dobin src/gdavl/gdavl dobin src/cdavl/cdavl dodoc README doman doc/*.? }