Gentoo Archives: gentoo-commits

From: Michael Palimaka <kensington@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-games/tiled/
Date: Fri, 25 Feb 2022 02:01:44
Message-Id: 1645754484.ee8e81d011f24101b00bfc14e76b824c3fab3372.kensington@gentoo
1 commit: ee8e81d011f24101b00bfc14e76b824c3fab3372
2 Author: Michael Palimaka <kensington <AT> gentoo <DOT> org>
3 AuthorDate: Fri Feb 25 02:01:24 2022 +0000
4 Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org>
5 CommitDate: Fri Feb 25 02:01:24 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ee8e81d0
7
8 dev-games/tiled: version bump 1.8.2
9
10 Closes: https://bugs.gentoo.org/833289
11 Package-Manager: Portage-3.0.30, Repoman-3.0.3
12 Signed-off-by: Michael Palimaka <kensington <AT> gentoo.org>
13
14 dev-games/tiled/Manifest | 1 +
15 dev-games/tiled/tiled-1.8.2.ebuild | 73 ++++++++++++++++++++++++++++++++++++++
16 2 files changed, 74 insertions(+)
17
18 diff --git a/dev-games/tiled/Manifest b/dev-games/tiled/Manifest
19 index 2311329195ff..23b0953ef512 100644
20 --- a/dev-games/tiled/Manifest
21 +++ b/dev-games/tiled/Manifest
22 @@ -1 +1,2 @@
23 DIST tiled-1.7.2.tar.gz 16743422 BLAKE2B 0d8ae95b2fc68326d0a4989b26535cd72900ddf9674ad892c287f9d7df2f551fc46c9fa9c8991315f55ae90663a9a5b9c4239fd2ed61c240a36a60102b2710b3 SHA512 6d766adbfcb642279eb0ba27410858c54a29ed8e697445b6fb96ce210d0b1433b1ed4715e1d78af3aea8ec71a87b24eea52216bf6236159e0c8fdf87a2339a59
24 +DIST tiled-1.8.2.tar.gz 17032015 BLAKE2B 92919e76f4753e3f8a3a98d421376ad35fe35fd1272e64cb40f382ea57020da63b6ea553529805b3bc356043bbfc18962c2874ee4e81b9a38b8629eb0ac8e1a7 SHA512 698add45d425d16a7b68c9b4d847cafb1d2b0633157614cbcec5f4dba23c1a65597bd2211b8c9f6b37af8ea2a4ca967fc71662672d79a8ea209dd9b0e3863413
25
26 diff --git a/dev-games/tiled/tiled-1.8.2.ebuild b/dev-games/tiled/tiled-1.8.2.ebuild
27 new file mode 100644
28 index 000000000000..fe51e31d02f0
29 --- /dev/null
30 +++ b/dev-games/tiled/tiled-1.8.2.ebuild
31 @@ -0,0 +1,73 @@
32 +# Copyright 1999-2022 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=8
36 +
37 +PYTHON_COMPAT=( python3_{8,9} )
38 +inherit python-single-r1 qmake-utils xdg-utils
39 +
40 +DESCRIPTION="A general purpose tile map editor"
41 +HOMEPAGE="https://www.mapeditor.org/"
42 +SRC_URI="https://github.com/bjorn/tiled/archive/v${PV}/${P}.tar.gz"
43 +
44 +LICENSE="BSD BSD-2 GPL-2+"
45 +SLOT="0"
46 +KEYWORDS="~amd64"
47 +IUSE="examples python"
48 +
49 +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
50 +
51 +RDEPEND="
52 + app-arch/zstd:=
53 + >=dev-qt/qtcore-5.15:5
54 + >=dev-qt/qtdbus-5.15:5
55 + >=dev-qt/qtdeclarative-5.15:5
56 + >=dev-qt/qtgui-5.15:5
57 + >=dev-qt/qtnetwork-5.15:5
58 + >=dev-qt/qtwidgets-5.15:5
59 + sys-libs/zlib
60 + python? ( ${PYTHON_DEPS} )
61 +"
62 +DEPEND="${RDEPEND}"
63 +BDEPEND="
64 + dev-qt/linguist-tools:5
65 + virtual/pkgconfig
66 +"
67 +
68 +DOCS=( AUTHORS COPYING NEWS.md README.md )
69 +
70 +pkg_setup() {
71 + use python && python-single-r1_pkg_setup
72 +}
73 +
74 +src_configure() {
75 + eqmake5 \
76 + LIBDIR="/usr/$(get_libdir)" \
77 + PREFIX="/usr" \
78 + SYSTEM_ZSTD="yes" \
79 + DISABLE_PYTHON_PLUGIN="$(usex !python)" \
80 + USE_FHS_PLUGIN_PATH="true"
81 +}
82 +
83 +src_install() {
84 + emake INSTALL_ROOT="${D}" install
85 +
86 + einstalldocs
87 +
88 + if use examples ; then
89 + docompress -x /usr/share/doc/${PF}/examples
90 + dodoc -r examples
91 + fi
92 +}
93 +
94 +pkg_postinst() {
95 + xdg_icon_cache_update
96 + xdg_desktop_database_update
97 + xdg_mimeinfo_database_update
98 +}
99 +
100 +pkg_postrm() {
101 + xdg_icon_cache_update
102 + xdg_desktop_database_update
103 + xdg_mimeinfo_database_update
104 +}