blob: 6506037da04e3c6c5e528e3004d47bc19d6728ea (
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
|
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/openstreetmap-icons/openstreetmap-icons-20110601.ebuild,v 1.1 2011/06/01 12:17:47 scarabeus Exp $
EAPI=4
ESVN_REPO_URI="http://svn.openstreetmap.org/applications/share/map-icons/"
[[ ${PV} == 99999999 ]] && EVCS_ECLASS=subversion
# tar.bz2 generated extracting files from above SVN repo
inherit cmake-utils ${EVCS_ECLASS}
unset EVCS_ECLASS
DESCRIPTION="openstreetmap icons"
HOMEPAGE="http://www.openstreetmap.org/"
[[ ${PV} == 99999999 ]] || SRC_URI="http://dev.gentoo.org/~scarabeus/${P}.tar.xz"
LICENSE="public-domain"
SLOT="0"
[[ ${PV} == 99999999 ]] || 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}/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"
}
src_install() {
cd "${CMAKE_BUILD_DIR}"
insinto /usr/share/osm
doins -r icons.* *.small *.big
doins geoinfo.*
}
|