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} )"
28 python? ( ${PYTHON_DEPS} )
31 dev-qt/linguist-tools:5
35 use python && python-single-r1_pkg_setup
39 eqmake5 LIBDIR="/usr/$(get_libdir)" PREFIX="/usr" DISABLE_PYTHON_PLUGIN="$(usex !python)"
43 emake INSTALL_ROOT="${D}" install
45 dodoc AUTHORS COPYING NEWS README.md
47 if use examples ; then
48 docompress -x /usr/share/doc/${PF}/examples
58 gnome2_icon_cache_update
59 fdo-mime_desktop_database_update
60 fdo-mime_mime_database_update
64 gnome2_icon_cache_update
65 fdo-mime_desktop_database_update
66 fdo-mime_mime_database_update