1 # Copyright 1999-2016 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 PYTHON_COMPAT=( python2_7 )
8 inherit fdo-mime gnome2-utils multilib python-single-r1 qmake-utils
10 DESCRIPTION="A general purpose tile map editor"
11 HOMEPAGE="http://www.mapeditor.org/"
12 SRC_URI="https://github.com/bjorn/tiled/archive/v${PV}/${P}.tar.gz"
14 LICENSE="BSD BSD-2 GPL-2+"
17 IUSE="examples python"
19 REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
24 >=dev-qt/qtnetwork-5.6:5
25 >=dev-qt/qtopengl-5.6:5
26 >=dev-qt/qtwidgets-5.6:5
28 python? ( ${PYTHON_DEPS} )
31 dev-qt/linguist-tools:5
34 DOCS=( AUTHORS COPYING NEWS.md README.md )
37 use python && python-single-r1_pkg_setup
41 eqmake5 LIBDIR="/usr/$(get_libdir)" PREFIX="/usr" DISABLE_PYTHON_PLUGIN="$(usex !python)"
45 emake INSTALL_ROOT="${D}" install
49 if use examples ; then
50 docompress -x /usr/share/doc/${PF}/examples
60 gnome2_icon_cache_update
61 fdo-mime_desktop_database_update
62 fdo-mime_mime_database_update
66 gnome2_icon_cache_update
67 fdo-mime_desktop_database_update
68 fdo-mime_mime_database_update