summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sci-geosciences/osm2mp/osm2mp-0.80.ebuild')
-rw-r--r--sci-geosciences/osm2mp/osm2mp-0.80.ebuild19
1 files changed, 11 insertions, 8 deletions
diff --git a/sci-geosciences/osm2mp/osm2mp-0.80.ebuild b/sci-geosciences/osm2mp/osm2mp-0.80.ebuild
index 9710a5a840dc..a85afbead65c 100644
--- a/sci-geosciences/osm2mp/osm2mp-0.80.ebuild
+++ b/sci-geosciences/osm2mp/osm2mp-0.80.ebuild
@@ -1,6 +1,8 @@
-# Copyright 1999-2010 Gentoo Foundation
+# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/osm2mp/osm2mp-0.80.ebuild,v 1.2 2010/05/11 01:00:59 jer Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/osm2mp/osm2mp-0.80.ebuild,v 1.3 2011/06/01 11:51:56 scarabeus Exp $
+
+EAPI=4
DESCRIPTION="Converts openstreetmap data to mp format (used e. g. by mkgmap)"
HOMEPAGE="http://forum.openstreetmap.org/viewtopic.php?id=1162"
@@ -11,13 +13,14 @@ SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
-DEPEND="dev-perl/Template-Toolkit
+RDEPEND="dev-perl/Template-Toolkit
virtual/perl-Getopt-Long"
-RDEPEND="${DEPEND}"
+DEPEND="${RDEPEND}
+ app-arch/unzip"
S="${WORKDIR}"
-src_compile() {
+src_prepare() {
sed -i \
-e 's:poi.cfg:/usr/share/osm2mp/poi.cfg:g' \
-e 's:poly.cfg:/usr/share/osm2mp/poly.cfg:g' \
@@ -26,8 +29,8 @@ src_compile() {
}
src_install() {
- newbin osm2mp.pl osm2mp || die
+ newbin osm2mp.pl osm2mp
insinto /usr/share/osm2mp
- doins poi.cfg poly.cfg header.tpl || die
- dodoc todo || die
+ doins poi.cfg poly.cfg header.tp
+ dodoc todo
}