gentoo-overlay/sci-geosciences/garminplugin/garminplugin-0.3.26.ebuild

41 lines
888 B
Bash
Raw Normal View History

2015-10-02 16:58:12 +02:00
# Copyright 1999-2015 Gentoo Foundation
2014-06-30 14:04:47 +02:00
# Distributed under the terms of the GNU General Public License v2
2015-10-02 16:58:12 +02:00
# $Id$
2014-06-30 14:04:47 +02:00
EAPI="2"
inherit eutils
DESCRIPTION="A free replacement for the Garmin browser plugin"
HOMEPAGE="http://www.andreas-diesner.de/garminplugin/"
SRC_URI="http://github.com/adiesner/GarminPlugin/tarball/V${PV} -> ${P}.tar.gz"
MY_S="adiesner-GarminPlugin-f924c3b"
LICENSE="GPL-3"
SLOT="0"
2015-05-12 13:42:12 +02:00
KEYWORDS="~x86 amd64"
2014-06-30 14:04:47 +02:00
RDEPEND="sci-geosciences/garmintools
sci-geosciences/gpsbabel
dev-libs/tinyxml[stl]
virtual/libusb:1"
DEPEND="${RDEPEND}"
src_configure() {
cd "${MY_S}/src" || die "barf"
econf || die "econf failed"
}
src_compile() {
cd "${MY_S}/src" || die "barf"
emake || die "emake failed"
}
src_install() {
mkdir -p "${D}/usr/lib/nsbrowser/plugins" || die "mkdir failed"
cp "${MY_S}/src/npGarminPlugin.so" "${D}/usr/lib/nsbrowser/plugins/" || die "cp failed"
}