diff options
author | Tomas Chvatal <scarabeus@gentoo.org> | 2011-06-01 12:17:47 +0000 |
---|---|---|
committer | Tomas Chvatal <scarabeus@gentoo.org> | 2011-06-01 12:17:47 +0000 |
commit | a25a037f404ab8b6cff174a8241a3adb5d38bfae (patch) | |
tree | 79df82d2fe1a853ddbfcc332b764ff13921b88d5 /sci-geosciences/openstreetmap-icons/openstreetmap-icons-20110601.ebuild | |
parent | Stable on alpha, bug #355595 (diff) | |
download | gentoo-2-a25a037f404ab8b6cff174a8241a3adb5d38bfae.tar.gz gentoo-2-a25a037f404ab8b6cff174a8241a3adb5d38bfae.tar.bz2 gentoo-2-a25a037f404ab8b6cff174a8241a3adb5d38bfae.zip |
Create new snapshot from today and add live version.
(Portage version: 2.2.0_alpha37/cvs/Linux x86_64)
Diffstat (limited to 'sci-geosciences/openstreetmap-icons/openstreetmap-icons-20110601.ebuild')
-rw-r--r-- | sci-geosciences/openstreetmap-icons/openstreetmap-icons-20110601.ebuild | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/sci-geosciences/openstreetmap-icons/openstreetmap-icons-20110601.ebuild b/sci-geosciences/openstreetmap-icons/openstreetmap-icons-20110601.ebuild new file mode 100644 index 000000000000..6506037da04e --- /dev/null +++ b/sci-geosciences/openstreetmap-icons/openstreetmap-icons-20110601.ebuild @@ -0,0 +1,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.* +} |