forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
2 changed files
with
59 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
DIST tiled-0.11.0.tar.gz 2324668 SHA256 0d4b028902dfe08f18b542bfd9eaaf08886c1f685b2e176f438c3bf9d72e410d SHA512 c3eb230225a144938069b54bcedfe9927dd42358ca91d8922f56a4e566f0041b4b33aef3d87ef4b3b58634e9e98efd98a7132f419c2dd18d563f28393df066f8 WHIRLPOOL f28764e1d0904acecef826b4c35d7f56513c9b0cee682fbe1abf45989a1c6076d9eaa0285dff3daa64d88b8061dd3aec1fbae52208e1ea3510a2b4f167ed2270 | ||
DIST tiled-0.12.3.tar.gz 2372813 SHA256 8078b266cc4902451e14b1efb6c8eba69f610e5056fcb74d1d30b5b236253200 SHA512 a8b5cb2201806e6b5a0e5079a9e12fbffcbb79f2df0a193e3c3e80424df1c8c4c94ae23c1553a82a1813d4bc65d9da54d79faa41a8983233aa67023e2348cc4b WHIRLPOOL 6deb8f40aea684619c5aee3746080f0543c8a7d3dfc37d76afbd447bc34923afdbb4b676553e6e33d187a0702dfa0514ec4b567a02a95dbd4a5e87bc28c7fa92 | ||
DIST tiled-0.14.2.tar.gz 2941171 SHA256 11ab1ae659d63e0fc6b78a319eab72c3a058a57c6c4bbd334a3e9f258ac0a6f5 SHA512 5fd47f56f1f29fa5cb48ec82f3ac2f4fd3c3addcdd35fc5e4fe742b83ebafe72c67d37c21e73bd5ac383070d68ed270dacc86f6c3959abbada915dfea19b5acf WHIRLPOOL 7cefcd1753614e07ff296d63f0b1a661caae8feeab0b8fb4f032b55443fb6512473443c7329ae7969018b6861ab9fc0dcdfddf743b7e63d1b8d6a668d89a68e9 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
# Copyright 1999-2015 Gentoo Foundation | ||
# Distributed under the terms of the GNU General Public License v2 | ||
# $Id$ | ||
|
||
EAPI=5 | ||
|
||
PYTHON_COMPAT=( python2_7 ) | ||
inherit fdo-mime multilib python-single-r1 qmake-utils | ||
|
||
DESCRIPTION="A general purpose tile map editor" | ||
HOMEPAGE="http://www.mapeditor.org/" | ||
SRC_URI="https://github.com/bjorn/tiled/archive/v${PV}/${P}.tar.gz" | ||
|
||
LICENSE="BSD BSD-2 GPL-2+" | ||
SLOT="0" | ||
KEYWORDS="~amd64" | ||
IUSE="examples python" | ||
|
||
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" | ||
|
||
DEPEND=" | ||
dev-qt/qtcore:5 | ||
dev-qt/qtgui:5 | ||
dev-qt/qtopengl:5 | ||
dev-qt/qtwidgets:5 | ||
sys-libs/zlib | ||
python? ( ${PYTHON_DEPS} ) | ||
" | ||
RDEPEND="${DEPEND}" | ||
|
||
pkg_setup() { | ||
use python && python-single-r1_pkg_setup | ||
} | ||
|
||
src_configure() { | ||
eqmake5 LIBDIR="/usr/$(get_libdir)" PREFIX="/usr" DISABLE_PYTHON_PLUGIN="$(usex !python)" | ||
} | ||
|
||
src_install() { | ||
emake INSTALL_ROOT="${D}" install | ||
|
||
dodoc AUTHORS COPYING NEWS README.md | ||
|
||
if use examples ; then | ||
docompress -x /usr/share/doc/${PF}/examples | ||
dodoc -r examples | ||
fi | ||
} | ||
|
||
pkg_postinst() { | ||
fdo-mime_desktop_database_update | ||
fdo-mime_mime_database_update | ||
} | ||
|
||
pkg_postrm() { | ||
fdo-mime_desktop_database_update | ||
fdo-mime_mime_database_update | ||
} |