1 # Copyright 1999-2017 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 PLOCALES="ar cs de en es et fr hr hu id_ID it ja nl pl pt_BR pt ru sk sv uk vi zh_CN zh_TW"
8 inherit fdo-mime gnome2-utils git-r3 l10n qmake-utils
10 DESCRIPTION="Qt based map editor for the openstreetmap.org project"
11 HOMEPAGE="http://www.merkaartor.be https://github.com/openstreetmap/merkaartor"
13 EGIT_REPO_URI="https://github.com/openstreetmap/merkaartor.git"
18 IUSE="debug exif gps libproxy webengine"
24 dev-qt/qtprintsupport:5
25 dev-qt/qtsingleapplication[X,qt5]
32 exif? ( media-gfx/exiv2:= )
33 gps? ( >=sci-geosciences/gpsd-3.13[cxx] )
34 libproxy? ( net-libs/libproxy )
35 webengine? ( dev-qt/qtwebengine:5 )
38 dev-qt/linguist-tools:5
42 DOCS=( AUTHORS CHANGELOG )
52 sed -i -e "s:../translations/${PN}_${1}.\(ts\|qm\)::" src/src.pro || die
53 rm "translations/${PN}_${1}.ts" || die
56 if [[ -n "$(l10n_get_locales)" ]]; then
57 l10n_for_each_disabled_locale_do my_rm_loc
58 $(qt5_get_bindir)/lrelease src/src.pro || die
61 # build system expects to be building from git
62 if [[ ${PV} != *9999 ]] ; then
63 sed -i "${S}"/src/Config.pri -e "s:SION = .*:SION = \"${PV}\":g" || die
68 # TRANSDIR_SYSTEM is for bug #385671
71 LIBDIR="${ED}usr/$(get_libdir)" \
72 TRANSDIR_MERKAARTOR="${ED}usr/share/${PN}/translations" \
73 TRANSDIR_SYSTEM="${EPREFIX}/usr/share/qt5/translations" \
75 NODEBUG=$(usex debug 0 1) \
76 GEOIMAGE=$(usex exif 1 0) \
77 GPSDLIB=$(usex gps 1 0) \
78 LIBPROXY=$(usex libproxy 1 0) \
79 USEWEBENGINE=$(usex webengine 1 0) \
88 fdo-mime_desktop_database_update
89 gnome2_icon_cache_update
93 fdo-mime_desktop_database_update
94 gnome2_icon_cache_update