# Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/media-radio/xlog/xlog-2.0.5.ebuild,v 1.4 2011/06/02 13:15:00 maekke Exp $ EAPI=2 inherit autotools eutils fdo-mime DESCRIPTION="An amateur radio logging program" HOMEPAGE="http://www.nongnu.org/xlog" SRC_URI="http://savannah.nongnu.org/download/${PN}/${P}.tar.gz" LICENSE="GPL-3" SLOT="0" KEYWORDS="amd64 x86" IUSE="" RDEPEND="media-libs/hamlib dev-libs/glib:2 x11-libs/gtk+:2" DEPEND="${RDEPEND} sys-devel/gettext dev-util/pkgconfig" src_prepare() { # Let portage handle updating mime/desktop databases, epatch "${FILESDIR}/${PN}-1.9-desktop-update.patch" eautoreconf } src_configure() { # mime-update causes file collisions if enabled econf --disable-mime-update --disable-desktop-update \ --docdir=/usr/share/doc/${PF} } src_install() { emake DESTDIR="${D}" install || die "emake install failed" dodoc AUTHORS data/doc/THANKS NEWS README || die "dodoc failed" } pkg_postinst() { fdo-mime_desktop_database_update fdo-mime_mime_database_update } pkg_postrm() { fdo-mime_desktop_database_update fdo-mime_mime_database_update }