1 # Copyright 1999-2010 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
5 inherit autotools eutils fdo-mime
7 DESCRIPTION="An amateur radio logging program"
8 HOMEPAGE="http://www.nongnu.org/xlog"
9 SRC_URI="http://savannah.nongnu.org/download/${PN}/${P}.tar.gz"
13 KEYWORDS="~amd64 ~ppc ~x86"
16 RDEPEND="media-libs/hamlib
26 # Let portage handle updating mime/desktop databases,
27 epatch "${FILESDIR}/${PN}-1.9-desktop-update.patch"
28 # and patch wrong ADIF export
29 epatch "${FILESDIR}/${PN}-2.0.1-adif.patch" \
30 "${FILESDIR}/${PN}-2.0.2-qsl.patch"
35 # mime-update causes file collisions if enabled
36 econf --disable-mime-update --disable-desktop-update \
37 --docdir=/usr/share/doc/${PF}
38 emake || die "emake failed"
42 emake DESTDIR="${D}" install || die "emake install failed"
43 dodoc AUTHORS data/doc/THANKS NEWS README || die "dodoc failed"
47 fdo-mime_desktop_database_update
48 fdo-mime_mime_database_update
50 if has_version '<media-radio/xlog-1.8' ; then
51 ewarn "You have to reconfigure xlog."
52 ewarn "(You can find your old configuration in ~/.xlog/preferences.xml.)"
57 fdo-mime_desktop_database_update
58 fdo-mime_mime_database_update