1 # Copyright 1999-2017 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( python2_7 )
7 inherit gnome2-utils multilib python-single-r1 qmake-utils xdg
9 DESCRIPTION="A general purpose tile map editor"
10 HOMEPAGE="http://www.mapeditor.org/"
11 SRC_URI="https://github.com/bjorn/tiled/archive/v${PV}/${P}.tar.gz"
13 LICENSE="BSD BSD-2 GPL-2+"
16 IUSE="examples python"
18 REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
23 >=dev-qt/qtnetwork-5.6:5
24 >=dev-qt/qtopengl-5.6:5
25 >=dev-qt/qtwidgets-5.6:5
27 python? ( ${PYTHON_DEPS} )
30 dev-qt/linguist-tools:5
33 DOCS=( AUTHORS COPYING NEWS.md README.md )
36 use python && python-single-r1_pkg_setup
40 eqmake5 LIBDIR="/usr/$(get_libdir)" PREFIX="/usr" DISABLE_PYTHON_PLUGIN="$(usex !python)"
44 emake INSTALL_ROOT="${D}" install
48 if use examples ; then
49 docompress -x /usr/share/doc/${PF}/examples
55 gnome2_icon_cache_update
56 xdg_desktop_database_update
57 xdg_mimeinfo_database_update
61 gnome2_icon_cache_update
62 xdg_desktop_database_update
63 xdg_mimeinfo_database_update