1 |
commit: 6abcde08e0d3391c4b5a3cc9e83569dfdd0be76f |
2 |
Author: Michael Palimaka <kensington <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Dec 3 12:10:42 2020 +0000 |
4 |
Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Dec 3 12:11:11 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6abcde08 |
7 |
|
8 |
dev-games/tiled: fix plugin loading, add python3.8 support |
9 |
|
10 |
Package-Manager: Portage-3.0.9, Repoman-3.0.2 |
11 |
Signed-off-by: Michael Palimaka <kensington <AT> gentoo.org> |
12 |
|
13 |
dev-games/tiled/files/tiled-1.4.3-python-38.patch | 14 +++++ |
14 |
dev-games/tiled/tiled-1.4.3-r1.ebuild | 73 +++++++++++++++++++++++ |
15 |
2 files changed, 87 insertions(+) |
16 |
|
17 |
diff --git a/dev-games/tiled/files/tiled-1.4.3-python-38.patch b/dev-games/tiled/files/tiled-1.4.3-python-38.patch |
18 |
new file mode 100644 |
19 |
index 00000000000..5515fa8fff2 |
20 |
--- /dev/null |
21 |
+++ b/dev-games/tiled/files/tiled-1.4.3-python-38.patch |
22 |
@@ -0,0 +1,14 @@ |
23 |
+--- a/src/plugins/python/find_python.pri |
24 |
++++ b/src/plugins/python/find_python.pri |
25 |
+@@ -1,6 +1,10 @@ |
26 |
+ !contains(DISABLE_PYTHON_PLUGIN, yes) { |
27 |
+ unix { |
28 |
+- packagesExist(python3) { |
29 |
++ packagesExist(python3-embed) { |
30 |
++ HAVE_PYTHON = yes |
31 |
++ CONFIG += link_pkgconfig |
32 |
++ PKGCONFIG += python3-embed |
33 |
++ } else:packagesExist(python3) { |
34 |
+ HAVE_PYTHON = yes |
35 |
+ CONFIG += link_pkgconfig |
36 |
+ PKGCONFIG += python3 |
37 |
|
38 |
diff --git a/dev-games/tiled/tiled-1.4.3-r1.ebuild b/dev-games/tiled/tiled-1.4.3-r1.ebuild |
39 |
new file mode 100644 |
40 |
index 00000000000..0a20032a23b |
41 |
--- /dev/null |
42 |
+++ b/dev-games/tiled/tiled-1.4.3-r1.ebuild |
43 |
@@ -0,0 +1,73 @@ |
44 |
+# Copyright 1999-2020 Gentoo Authors |
45 |
+# Distributed under the terms of the GNU General Public License v2 |
46 |
+ |
47 |
+EAPI=7 |
48 |
+ |
49 |
+PYTHON_COMPAT=( python3_{6,7,8} ) |
50 |
+inherit python-single-r1 qmake-utils xdg-utils |
51 |
+ |
52 |
+DESCRIPTION="A general purpose tile map editor" |
53 |
+HOMEPAGE="https://www.mapeditor.org/" |
54 |
+SRC_URI="https://github.com/bjorn/tiled/archive/v${PV}/${P}.tar.gz" |
55 |
+ |
56 |
+LICENSE="BSD BSD-2 GPL-2+" |
57 |
+SLOT="0" |
58 |
+KEYWORDS="~amd64" |
59 |
+IUSE="examples python" |
60 |
+ |
61 |
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" |
62 |
+ |
63 |
+RDEPEND=" |
64 |
+ app-arch/zstd:= |
65 |
+ >=dev-qt/qtcore-5.14:5 |
66 |
+ >=dev-qt/qtdeclarative-5.14:5 |
67 |
+ >=dev-qt/qtgui-5.14:5 |
68 |
+ >=dev-qt/qtnetwork-5.14:5 |
69 |
+ >=dev-qt/qtwidgets-5.14:5 |
70 |
+ sys-libs/zlib |
71 |
+ python? ( ${PYTHON_DEPS} ) |
72 |
+" |
73 |
+DEPEND="${RDEPEND}" |
74 |
+BDEPEND=" |
75 |
+ dev-qt/linguist-tools:5 |
76 |
+ virtual/pkgconfig |
77 |
+" |
78 |
+ |
79 |
+DOCS=( AUTHORS COPYING NEWS.md README.md ) |
80 |
+PATCHES=( "${FILESDIR}/${P}-python-38.patch" ) |
81 |
+ |
82 |
+pkg_setup() { |
83 |
+ use python && python-single-r1_pkg_setup |
84 |
+} |
85 |
+ |
86 |
+src_configure() { |
87 |
+ eqmake5 \ |
88 |
+ LIBDIR="/usr/$(get_libdir)" \ |
89 |
+ PREFIX="/usr" \ |
90 |
+ SYSTEM_ZSTD="yes" \ |
91 |
+ DISABLE_PYTHON_PLUGIN="$(usex !python)" \ |
92 |
+ USE_FHS_PLUGIN_PATH="true" |
93 |
+} |
94 |
+ |
95 |
+src_install() { |
96 |
+ emake INSTALL_ROOT="${D}" install |
97 |
+ |
98 |
+ einstalldocs |
99 |
+ |
100 |
+ if use examples ; then |
101 |
+ docompress -x /usr/share/doc/${PF}/examples |
102 |
+ dodoc -r examples |
103 |
+ fi |
104 |
+} |
105 |
+ |
106 |
+pkg_postinst() { |
107 |
+ xdg_icon_cache_update |
108 |
+ xdg_desktop_database_update |
109 |
+ xdg_mimeinfo_database_update |
110 |
+} |
111 |
+ |
112 |
+pkg_postrm() { |
113 |
+ xdg_icon_cache_update |
114 |
+ xdg_desktop_database_update |
115 |
+ xdg_mimeinfo_database_update |
116 |
+} |