# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils DESCRIPTION="Command line interface to manage hierarchical todos" HOMEPAGE="http://www.cauterized.net/~meskio/tudu/" SRC_URI="http://cauterized.net/~meskio/tudu/${P}.tar.gz" LICENSE="GPL-3" SLOT="0" KEYWORDS="~x86 ~amd64" DEPEND="sys-libs/ncurses" src_compile() { # Since there's no configuration script provided # Makefile have to be updated directly cd "${S}" epatch ${FILESDIR}/makefile.patch sed "s|^DESTDIR=\$|DESTDIR='$(ROOT)'|" Makefile > Makefile.new &&\ mv Makefile{.new,}\ || die "unable to update Makefile paths" emake || die "emake failed" } src_install() { emake DESTDIR="${D}" install || die "install failed" dodoc README ChangeLog || die }