# Copyrieht 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI="2" inherit eutils DESCRIPTION="GPX Viewer is a simple program to visualize a gpx file" HOMEPAGE="http://blog.sarine.nl/${PN}/" SRC_URI="http://code.edge.launchpad.net/${PN}/trunk/${PV}/+download/${P}.tar.gz" LICENSE="LGPL-2" SLOT="0" KEYWORDS="~x86" IUSE="" RDEPEND=">=x11-libs/gtk+-2.16 >=media-libs/libchamplain-0.4[gtk] =dev-lang/vala-0.7 dev-libs/libxml2 >=dev-libs/glib-2" DEPEND="${RDEPEND} >=sys-devel/automake-1.11 >=sys-devel/gettext-0.11.5 >=dev-util/intltool-0.21 dev-util/pkgconfig" src_prepare() { epatch "${FILESDIR}/${PV}-configure.ac.patch" epatch "${FILESDIR}/${PV}-gpx-viewer.c.patch" # Could not get this working with the autotools eclass and eautoreconf! autoreconf } src_install () { emake DESTDIR="${D}" install || die "install failed" dosym /usr/share/icons/hicolor/scalable/apps/gpx-viewer.svg /usr/share/pixmaps/gpx-viewer.svg dodoc AUTHORS README ChangeLog || die "dodoc failed" }