summaryrefslogtreecommitdiff
blob: f0f69568321dfc72035324ac17fbde9d4c02534c (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
# 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.4 2009/06/30 06:58:50 tupone 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"
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
	perl "${S}"/tools/create_geoinfo-db.pl --lang=de --source=icons.xml
}

# tar.bz2 generated extracting files from
# http://svn.openstreetmap.org/applications/share/map-icons
src_install() {
	insinto /usr/share/icons/map-icons
	cd ../map-icons_build
	doins -r icons.* geoinfo.* *.small *.big || die "Install failed"
}