# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI="5"

inherit eutils unpacker

DESCRIPTION="Proprietary freeware multimedia map of several Russian and Ukrainian towns"
HOMEPAGE="http://2gis.ru"
SRC_URI="http://deb.2gis.ru/pool/non-free/2/2gis/2gis_${PV}-0trusty1+shv121+r169_amd64.deb"

LICENSE="2Gis"
SLOT="0"
KEYWORDS="~amd64"
IUSE=""

RDEPEND=">=media-libs/fontconfig-2.9.0
	media-libs/freetype
	>=sys-devel/gcc-4.2.1
	dev-libs/glib:2
	>=sys-libs/glibc-2.15
	media-libs/gst-plugins-base:1.0
	media-libs/gstreamer:1.0
	dev-libs/icu:0/52
	net-print/cups
	virtual/opengl
	x11-libs/libICE
	virtual/jpeg:0
	media-libs/libpng:1.2
	x11-libs/libSM
	x11-libs/libxcb
	dev-libs/libxslt
	dev-db/sqlite:3
	x11-libs/xcb-util-renderutil
	sys-libs/zlib"

DEPEND="${RDEPEND}"

S="${WORKDIR}"

src_install() {
	mv "${S}/usr/lib/" "${S}/usr/lib64/"
	cp -pPR * "${D}/"
}