blob: d99db6d5ed3d498d58c57d8b1e0135b830aed234 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/openstreetmap-icons/openstreetmap-icons-20090616.ebuild,v 1.6 2009/08/22 23:22:34 nerdboy Exp $
EAPI=2
inherit cmake-utils
DESCRIPTION="openstreetmap icons"
HOMEPAGE="http://www.openstreetmap.org/"
SRC_URI="mirror://gentoo/${P}.tar.bz2"
LICENSE="public-domain"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE=""
DEPEND="dev-perl/ImageInfo
media-gfx/imagemagick[perl]
dev-perl/File-Slurp
dev-perl/DBD-SQLite
dev-perl/XML-Twig"
RDEPEND=""
S=${WORKDIR}/${P}/map-icons
src_compile() {
cmake-utils_src_compile
cp icons.* ${CMAKE_BUILD_DIR}
cd ${CMAKE_BUILD_DIR}
perl "${S}"/tools/create_geoinfo-db.pl --lang=en --source=icons.xml \
|| die "create en geoinfo-db failed"
perl "${S}"/tools/create_geoinfo-db.pl --lang=de --source=icons.xml \
|| die "create de geoinfo-db failed"
}
# tar.bz2 generated extracting files from
# http://svn.openstreetmap.org/applications/share/map-icons
src_install() {
insinto /usr/share/osm
cd ../map-icons_build
doins -r icons.* *.small *.big || die "Install icons failed"
doins geoinfo.* || die "Install db failed"
}
pkg_postinst() {
elog
elog "Non-fatal errors are expected on a handful of .svg files,"
elog "and the cause is currently unknown. File a bug only if"
elog "you have a runtime problem and/or more useful information."
elog
elog "This version also installs the icons in a more appropriate"
elog "location, so if you have an existing gpsdrive install, you"
elog "should probably update your ~/.gpsdrive/gpsdriverc file"
elog "and change the path to the geoinfofile to reflect this:"
elog " geoinfofile = /usr/share/osm/geoinfo.db"
elog
}
|