commit:     7d07dddf8ecdeaeaaf27d6a282f3ebe50a84c210
Author:     Andrei Sabalenka <mechakotik <AT> gmail <DOT> com>
AuthorDate: Sat Aug  9 20:23:56 2025 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Sun Aug 10 01:47:33 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7d07dddf

dev-games/tiled: add 1.11.2_p20250614

This fixes building with new, not yet stabilized Qbs 2.6+.

Closes: https://bugs.gentoo.org/959357
Signed-off-by: Andrei Sabalenka <mechakotik <AT> gmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/43400
Closes: https://github.com/gentoo/gentoo/pull/43400
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>

 dev-games/tiled/Manifest                      |  1 +
 dev-games/tiled/tiled-1.11.2_p20250614.ebuild | 94 +++++++++++++++++++++++++++
 2 files changed, 95 insertions(+)

diff --git a/dev-games/tiled/Manifest b/dev-games/tiled/Manifest
index 3a877276ea2a..e6d7ef5d8570 100644
--- a/dev-games/tiled/Manifest
+++ b/dev-games/tiled/Manifest
@@ -1 +1,2 @@
 DIST tiled-1.11.2.tar.gz 17570418 BLAKE2B 
d2abf3e43c107228cccd1b754326487a78a804381c428760a5dd4af92366aee899f8b35623292fb8b541ac7e6ca61a79303be6dde4b772957c0b46a6f942f488
 SHA512 
c8fc3d853b91e1e74bdeb1873912e5dfe6efea49d937803502bac42865b6406adf6845f7f393098dccdf59adba522a5672e48e4a673e22e2fc320fe8c4b43405
+DIST tiled-1.11.2_p20250614.tar.gz 17510746 BLAKE2B 
2ad9c94e4d361a65a144753727b8b20adc496f4b92aa022b1721f011575fdaff315fc76e662ec90c35bce00bad713d5c9644493ce96e025761c88058b10550d1
 SHA512 
d2a603ed75e164d8c8745440e034f06c5375f0e1408adb4a87330060932fa7b0f6e5605f85343f6eb869cf60cbfbdad561cd86e72b860ed219484d8133780b9c

diff --git a/dev-games/tiled/tiled-1.11.2_p20250614.ebuild 
b/dev-games/tiled/tiled-1.11.2_p20250614.ebuild
new file mode 100644
index 000000000000..4f8fa188ff25
--- /dev/null
+++ b/dev-games/tiled/tiled-1.11.2_p20250614.ebuild
@@ -0,0 +1,94 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+COMMIT=f0191439b7f6b18cd727ee051e976756889b4d11
+PYTHON_COMPAT=(python3_{11..14})
+inherit edo flag-o-matic multiprocessing python-single-r1 toolchain-funcs xdg
+
+DESCRIPTION="A general purpose tile map editor"
+HOMEPAGE="https://www.mapeditor.org/ https://github.com/mapeditor/tiled";
+SRC_URI="https://codeload.github.com/mapeditor/tiled/tar.gz/${COMMIT} -> 
${P}.tar.gz"
+S="${WORKDIR}/tiled-${COMMIT}"
+
+LICENSE="BSD BSD-2 GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="minimal python"
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+
+RDEPEND="
+       app-arch/zstd:=
+       dev-qt/qtbase:6[X,dbus,gui,network,opengl,widgets]
+       dev-qt/qtdeclarative:6
+       dev-qt/qtsvg:6
+       sys-libs/zlib
+       python? ( ${PYTHON_DEPS} )
+"
+DEPEND="${RDEPEND}"
+BDEPEND="
+       dev-util/qbs
+       dev-qt/qtbase:6
+       dev-qt/qttools:6[linguist]
+"
+
+QBS_PRODUCTS="libtiled,libtilededitor,tiled,csv,json"
+
+pkg_setup() {
+       if use python; then
+               python-single-r1_pkg_setup
+       fi
+}
+
+qbs_format_flags() {
+       local -a array
+       for flag in ${@}; do
+               array+=("\"${flag}\"")
+       done
+       echo "[$(
+               IFS=","
+               echo "${array[*]}"
+       )]"
+}
+
+src_configure() {
+       if use python; then
+               QBS_PRODUCTS="${QBS_PRODUCTS},python"
+       fi
+       if ! use minimal; then
+               
QBS_PRODUCTS="${QBS_PRODUCTS},defold,defoldcollection,droidcraft,flare,gmx,json1,lua,replicaisland,rpmap,tbin,tengine,terraingenerator,tmxrasterizer,tmxviewer,tscn,yy"
+       fi
+
+       edo qbs setup-qt /usr/bin/qmake6 qt6
+       edo qbs config defaultProfile qt6
+
+       local toolchain=$(tc-get-compiler-type)
+       edo qbs setup-toolchains ${toolchain} ${toolchain}
+       edo qbs config profiles.qt6.baseProfile ${toolchain}
+
+       edo qbs resolve \
+               --force-probe-execution \
+               qbs.installPrefix:"/usr" \
+               projects.Tiled.useRPaths:false \
+               projects.Tiled.installHeaders:$(usex minimal false true) \
+               project.libDir:$(get_libdir) \
+               modules.cpp.cFlags:$(qbs_format_flags ${CFLAGS}) \
+               modules.cpp.cxxFlags:$(qbs_format_flags ${CXXFLAGS}) \
+               modules.cpp.linkerFlags:$(qbs_format_flags $(raw-ldflags 
${LDFLAGS}))
+}
+
+src_compile() {
+       edo qbs build \
+               -p ${QBS_PRODUCTS} \
+               -j $(get_makeopts_jobs)
+}
+
+src_install() {
+       edo qbs install -p ${QBS_PRODUCTS} --install-root "${D}"
+
+       if ! use minimal; then
+               docompress -x /usr/share/doc/${PF}/examples
+               dodoc -r examples
+       fi
+}

Reply via email to