summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfredo Tupone <tupone@gentoo.org>2009-07-08 12:55:19 +0000
committerAlfredo Tupone <tupone@gentoo.org>2009-07-08 12:55:19 +0000
commit76b27825834cbbc54c007a8479748c8dd7e0b164 (patch)
tree1ee43ba068061f2aeb77ae11a8ca86bf5708848d /sci-geosciences/osm2pgsql
parentAdd ~mips keywords to KDE 3.5.10 (diff)
downloadgentoo-2-76b27825834cbbc54c007a8479748c8dd7e0b164.tar.gz
gentoo-2-76b27825834cbbc54c007a8479748c8dd7e0b164.tar.bz2
gentoo-2-76b27825834cbbc54c007a8479748c8dd7e0b164.zip
New package. Bug #261822
(Portage version: 2.1.6.13/cvs/Linux i686)
Diffstat (limited to 'sci-geosciences/osm2pgsql')
-rw-r--r--sci-geosciences/osm2pgsql/ChangeLog10
-rw-r--r--sci-geosciences/osm2pgsql/metadata.xml16
-rw-r--r--sci-geosciences/osm2pgsql/osm2pgsql-20090707.ebuild33
3 files changed, 59 insertions, 0 deletions
diff --git a/sci-geosciences/osm2pgsql/ChangeLog b/sci-geosciences/osm2pgsql/ChangeLog
new file mode 100644
index 000000000000..bcd3f745740c
--- /dev/null
+++ b/sci-geosciences/osm2pgsql/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for sci-geosciences/osm2pgsql
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/osm2pgsql/ChangeLog,v 1.1 2009/07/08 12:55:19 tupone Exp $
+
+*osm2pgsql-20090707 (08 Jul 2009)
+
+ 08 Jul 2009; Tupone Alfredo <tupone@gentoo.org> +metadata.xml,
+ +osm2pgsql-20090707.ebuild:
+ New package. Bug #261822 by : renato gallo
+
diff --git a/sci-geosciences/osm2pgsql/metadata.xml b/sci-geosciences/osm2pgsql/metadata.xml
new file mode 100644
index 000000000000..70817b2ab73a
--- /dev/null
+++ b/sci-geosciences/osm2pgsql/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>sci-geosciences</herd>
+<maintainer>
+<email>tupone@gentoo.org</email>
+<name>Tupone Alfredo</name>
+</maintainer>
+<longdescription lang="en">
+osm2pgsql is a utility program that converts OpenStreetMap (.OSM) data into a format that can be loaded into PostgreSQL. It is often used to render OSM data visually using Mapnik, as Mapnik can query PostgreSQL for map data, but does not work directly with OSM files. For more information on using osm2pgsql to render OpenStreetMap data with Mapnik, see the Mapnik page.
+
+osm2pgsql is a lossy conversion utility. It only adds features that have certain tags, as defined in the config file, and it converts nodes and ways to linestrings and polygons. This means that you can't tell which linestring is connected to which, but for rendering a map that's not important (c.f. routing).
+
+osm2pgsql has two main modes of running - normal (is this what it's called?) and slim mode. The first uses RAM for intermediate storage, the second uses a temporary database on-disk. As of early 2009, you must use slim-mode for planet imports on 32-bit systems, since there are too many nodes to store in RAM otherwise. This limitation doesn't apply to 64-bit systems
+</longdescription>
+</pkgmetadata>
diff --git a/sci-geosciences/osm2pgsql/osm2pgsql-20090707.ebuild b/sci-geosciences/osm2pgsql/osm2pgsql-20090707.ebuild
new file mode 100644
index 000000000000..b0596aa4fa74
--- /dev/null
+++ b/sci-geosciences/osm2pgsql/osm2pgsql-20090707.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/osm2pgsql/osm2pgsql-20090707.ebuild,v 1.1 2009/07/08 12:55:19 tupone Exp $
+EAPI=2
+
+inherit eutils
+
+DESCRIPTION="converts OpenStreetMap data into a format for PostgreSQL"
+HOMEPAGE="http://wiki.openstreetmap.org/wiki/Osm2pgsql"
+SRC_URI="mirror://gentoo/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE=""
+
+RDEPEND="dev-libs/libxml2
+ sci-libs/proj
+ sci-libs/geos
+ dev-db/postgis"
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+ epatch debian/patches/01_style_location
+}
+
+src_install() {
+ dodoc README.txt
+ dobin mapnik-osm-updater.sh osm2pgsql
+ doman debian/osm2pgsql.1
+ insinto /usr/share/${PN}
+ doins default.style
+}