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.
Package-Manager: Portage-3.0.20, Repoman-3.0.2 Signed-off-by: Michael Palimaka <[email protected]>
- Loading branch information
Michael Palimaka
committed
Jul 16, 2021
1 parent
b9e20a4
commit d829654
Showing
2 changed files
with
74 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-1.4.3.tar.gz 17806808 BLAKE2B 81b5a32cc1e6f5f3b4af5520752d34572f0e78aad90df435d075b53ac18b39961aa22d23cff614cd83f0883fd2fd2bca69026160cb8b1b727fddaeff5764babe SHA512 1e75e323733e05563bf542364778d95f2f22484ec0d85b4a9e7fac782c117934b37b049724979be5c83de86a3900c7ca2e9f3c5a660c530d2ecd0f023eb22c2e | ||
DIST tiled-1.5.0.tar.gz 16694406 BLAKE2B ccab3ec9f5ac807126ddf5d26e4eaa06357e67ffbd63550bdad93e814ff02350f9138f62114a56b5e64bc6c7fd3f6664ab7da836cab7e478ea7075111fa1cae7 SHA512 eb25affdab481db29ab2bbaeb4abafd453b2b43ae47e4b8f9f2fd1ed0d8ed55fdb45ec1bdc0b484ba9a2d63afad5a0c9ba6376304ed4b1eab3918c36a0af29c9 | ||
DIST tiled-1.7.1.tar.gz 16741752 BLAKE2B 2f9d2d43aa3aa52a2999a6e9e56bfe3846e095ac41236921e9ab42df40b93d0c3373d2f5f13a5f7c9a945ea0c03c4fe6b123ea6a8b3bc71ddc9863c714fccc17 SHA512 ed6ba20015434d9de6ae02aecb165a7fb7569a3d74471a7baec5d0f1b78b7905dd12cd565e1f9d1e41ff47e225cdfb81915ae09e3672efc21f16cefb39e03998 |
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,73 @@ | ||
# Copyright 1999-2021 Gentoo Authors | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
EAPI=7 | ||
|
||
PYTHON_COMPAT=( python3_{7,8,9} ) | ||
inherit python-single-r1 qmake-utils xdg-utils | ||
|
||
DESCRIPTION="A general purpose tile map editor" | ||
HOMEPAGE="https://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} )" | ||
|
||
RDEPEND=" | ||
app-arch/zstd:= | ||
>=dev-qt/qtcore-5.15:5 | ||
>=dev-qt/qtdbus-5.15:5 | ||
>=dev-qt/qtdeclarative-5.15:5 | ||
>=dev-qt/qtgui-5.15:5 | ||
>=dev-qt/qtnetwork-5.15:5 | ||
>=dev-qt/qtwidgets-5.15:5 | ||
sys-libs/zlib | ||
python? ( ${PYTHON_DEPS} ) | ||
" | ||
DEPEND="${RDEPEND}" | ||
BDEPEND=" | ||
dev-qt/linguist-tools:5 | ||
virtual/pkgconfig | ||
" | ||
|
||
DOCS=( AUTHORS COPYING NEWS.md README.md ) | ||
|
||
pkg_setup() { | ||
use python && python-single-r1_pkg_setup | ||
} | ||
|
||
src_configure() { | ||
eqmake5 \ | ||
LIBDIR="/usr/$(get_libdir)" \ | ||
PREFIX="/usr" \ | ||
SYSTEM_ZSTD="yes" \ | ||
DISABLE_PYTHON_PLUGIN="$(usex !python)" \ | ||
USE_FHS_PLUGIN_PATH="true" | ||
} | ||
|
||
src_install() { | ||
emake INSTALL_ROOT="${D}" install | ||
|
||
einstalldocs | ||
|
||
if use examples ; then | ||
docompress -x /usr/share/doc/${PF}/examples | ||
dodoc -r examples | ||
fi | ||
} | ||
|
||
pkg_postinst() { | ||
xdg_icon_cache_update | ||
xdg_desktop_database_update | ||
xdg_mimeinfo_database_update | ||
} | ||
|
||
pkg_postrm() { | ||
xdg_icon_cache_update | ||
xdg_desktop_database_update | ||
xdg_mimeinfo_database_update | ||
} |