You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
60 lines
1.3 KiB
60 lines
1.3 KiB
# Copyright 1999-2012 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/gpx-viewer/gpx-viewer-0.3.0.ebuild,v 1.2 2012/10/07 10:02:10 jlec Exp $
|
|
|
|
EAPI=4
|
|
|
|
AUTOTOOLS_AUTORECONF=yes
|
|
|
|
inherit autotools-utils gnome2
|
|
|
|
DESCRIPTION="Simple program to visualize a gpx file"
|
|
HOMEPAGE="http://blog.sarine.nl/gpx-viewer/"
|
|
SRC_URI="http://edge.launchpad.net/${PN}/trunk/0.2.0/+download/${P}.tar.gz"
|
|
|
|
LICENSE="GPL-2"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64 ~x86"
|
|
IUSE="nls"
|
|
|
|
MY_VALA_VERSION=0.16
|
|
|
|
RDEPEND="
|
|
dev-lang/vala:${MY_VALA_VERSION}
|
|
dev-libs/gdl:3
|
|
dev-libs/glib:2
|
|
dev-libs/libxml2:2
|
|
media-libs/libchamplain:0.12[gtk]
|
|
x11-libs/gtk+:3"
|
|
DEPEND="${RDEPEND}
|
|
>=dev-util/intltool-0.21
|
|
virtual/pkgconfig"
|
|
|
|
src_prepare() {
|
|
export VALAC="$(type -P valac-${MY_VALA_VERSION})"
|
|
sed \
|
|
-e '/desktopdir/s:$(DESTDIR)::g' \
|
|
-i Makefile.am || die
|
|
sed \
|
|
-e '/MimeType/s:$:;:g' \
|
|
-i data/gpx-viewer.desktop.in || die
|
|
autotools-utils_src_prepare
|
|
}
|
|
|
|
src_configure() {
|
|
local myeconfargs=(
|
|
$(use_enable nls)
|
|
--disable-database-updates )
|
|
autotools-utils_src_configure
|
|
}
|
|
|
|
src_compile() {
|
|
autotools-utils_src_compile gpx_viewer_vala.stamp
|
|
autotools-utils_src_compile
|
|
}
|
|
|
|
src_install () {
|
|
autotools-utils_src_install
|
|
dosym ../icons/hicolor/scalable/apps/gpx-viewer.svg /usr/share/pixmaps/gpx-viewer.svg
|
|
}
|