# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils DESCRIPTION="Program to view and manage the content of a wine cellar" HOMEPAGE="http://xcave.free.fr/" SRC_URI="http://xcave.free.fr/download/${P}.tar.gz" KEYWORDS="~x86" LICENSE="GPL-2" SLOT="0" IUSE="nls" RDEPEND=">=x11-libs/gtk+-2 nls? ( sys-devel/gettext )" DEPEND="${RDEPEND}" src_unpack() { unpack ${A} sed -i \ -e '/^SUBDIRS/s:\::' \ -e '/^install-data-am:/s:\::' \ "${S}/Makefile.in" || die "sed failed!" } src_compile() { econf $(use_enable nls) || die "Error: econf failed!" emake || die "Error: emake failed!" } src_install() { einstall || die "Error: einstall failed!" dodoc ABOUT-NLS AUTHORS COPYING ChangeLog INSTALL NEWS README TODO make_desktop_entry xcave XCave /usr/share/pixmaps/xcave/xcave-icon.png GTK }