JOSM/Gentoo

From OpenStreetMap Wiki
Jump to navigation Jump to search

Installation

To get the JOSM editor, enter the following command as superuser.

Portage

emerge -av josm

Paludis

paludis -i josm

Overlay

The overlay contains the newest development version of josm, including ebuilds of some plugins.

By using the "x86"-keyword you get a stable release, the "~x86"-keyword installs the svn-version.

Portage

Setup

First install layman, if you don't already have.

emerge -av layman

Follow the instructions given by portage how to include layman into portage.

Then add the overlay:

layman -o http://svn.openstreetmap.org/applications/utils/gentoo/openstreetmap-repositories.xml -a openstreetmap -f

Alternatively, you can change the line

overlays  : http://www.gentoo.org/proj/en/overlays/layman-global.txt

in /etc/layman/layman.cfg to

overlays  : http://www.gentoo.org/proj/en/overlays/layman-global.txt
            http://svn.openstreetmap.org/applications/utils/gentoo/openstreetmap-repositories.xml

Updating

layman -S

Paludis

Setup

Manual

Create a file /etc/paludis/repositories/openstreetmap.conf containing

location = ${ROOT}/var/lib/repositories/openstreetmap
sync = svn+http://svn.openstreetmap.org/applications/utils/gentoo
master_repository = gentoo
format = ebuild
names_cache = ${location}/.cache/names
write_cache = /var/cache/paludis/metadata

Note: Your paths may vary, please look at the other files you have in /etc/paludis/repositories/

Then run

mkdir -p /var/lib/repositories/openstreetmap/.cache/names
paludis -s x-openstreetmap
playman

Alternatively you can use playman if you have build paludis with ruby-support:

playman --layman-url http://svn.openstreetmap.org/applications/utils/gentoo/openstreetmap-repositories.xml -a openstreetmap
paludis -s x-openstreetmap

Updating

The normal paludis -s should work.

Plug-ins

There are many plug-ins already available as ebuilds. Look at http://svn.openstreetmap.org/applications/utils/gentoo/ for a complete list.

See also