1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 PYTHON_COMPAT=( python2_7 )
8 inherit fdo-mime multilib python-single-r1 qt4-r2
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-2 GPL-2+"
17 IUSE="examples python"
19 REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
21 DEPEND=">=dev-qt/qtcore-4.7:4
23 >=dev-qt/qtopengl-4.7:4
25 python? ( ${PYTHON_DEPS} )"
28 DOCS=( AUTHORS COPYING NEWS README.md )
31 use python && python-single-r1_pkg_setup
39 eqmake4 LIBDIR="/usr/$(get_libdir)" PREFIX="/usr" DISABLE_PYTHON_PLUGIN="$(usex !python)"
45 if use examples ; then
46 docompress -x /usr/share/doc/${PF}/examples
52 fdo-mime_desktop_database_update
53 fdo-mime_mime_database_update
57 fdo-mime_desktop_database_update
58 fdo-mime_mime_database_update