diff options
author | Peter Asplund <peter.azp@gmail.com> | 2024-07-23 00:35:25 +0200 |
---|---|---|
committer | Peter Asplund <peter.azp@gmail.com> | 2024-07-23 00:37:05 +0200 |
commit | 95c4dc1821e9e200d6d2759ec48eacf52a82ab59 (patch) | |
tree | c1b574c15ea978265b34998ccf651efea7436eb7 | |
parent | sci-geosciences/garmintools: treeclean (diff) | |
download | AzP-95c4dc1821e9e200d6d2759ec48eacf52a82ab59.tar.gz AzP-95c4dc1821e9e200d6d2759ec48eacf52a82ab59.tar.bz2 AzP-95c4dc1821e9e200d6d2759ec48eacf52a82ab59.zip |
Version bump. Add qt6 use flag
Signed-off-by: Peter Asplund <peter.azp@gmail.com>
-rw-r--r-- | dev-games/tiled/Manifest | 1 | ||||
-rw-r--r-- | dev-games/tiled/tiled-1.10.2.ebuild | 91 | ||||
-rw-r--r-- | dev-games/tiled/tiled-1.9.2.ebuild | 2 |
3 files changed, 93 insertions, 1 deletions
diff --git a/dev-games/tiled/Manifest b/dev-games/tiled/Manifest index 31a65d5..8effa56 100644 --- a/dev-games/tiled/Manifest +++ b/dev-games/tiled/Manifest @@ -1 +1,2 @@ +DIST tiled-1.10.2.tar.gz 17382307 BLAKE2B 175f9c4f1fb1567285b44228dd196d2f63ea088121d7c45e900763ada54642abef26a717fd756bb384e66f5a7badd73c656dd174c71ba53ad4ec0718bb88c907 SHA512 963ea9bc15bfdb3b18363888e7e3cb964895a6f4919f93ab1c4ce679ed979bd9640115c1d76d3b597390afd0630342313cbb8308d26ddd66226ce99dfc8cd7e7 DIST tiled-1.9.2.tar.gz 17131452 BLAKE2B ac66f30de9f550675a0c0461bfd1e438dda3003fef6f6c380280f2223e765ac9cfa1f300231307bd584ad4cfcb04d4048228e46cd486c5745eb2c95b643b7b87 SHA512 a8594a064df918b052a04428080ff3075d409756b81633acbddf7f1921c76d2ae29f63e95c0cbd981cdde00759658877db143163da38d238c733081a571464ea diff --git a/dev-games/tiled/tiled-1.10.2.ebuild b/dev-games/tiled/tiled-1.10.2.ebuild new file mode 100644 index 0000000..8ab75b2 --- /dev/null +++ b/dev-games/tiled/tiled-1.10.2.ebuild @@ -0,0 +1,91 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{11..13} ) +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 qt6 python" + +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" + +RDEPEND=" + app-arch/zstd:= + dev-qt/qtbase[dbus,gui,network,widgets] + dev-qt/qtdeclarative:6 + dev-qt/qtquickcontrols2 + dev-qt/qtsvg:6 + sys-libs/zlib + python? ( ${PYTHON_DEPS} ) +" +DEPEND="${RDEPEND}" +BDEPEND=" + dev-qt/linguist-tools:5 + virtual/pkgconfig + dev-util/qbs +" + +DOCS=( AUTHORS COPYING NEWS.md README.md ) + +pkg_setup() { + use qt6 && python && python-single-r1_pkg_setup +} + +src_prepare() { + eapply_user + + sed -e "s|__EBUILD_TILED_PLUGIN_DIR__|$(get_libdir)/tiled/plugins|g" -i src/libtiled/libtiled.qbs +} + +src_configure() { + # Setup toolchains + qbs setup-toolchains --detect + # Create a Qt6 profile for Qbs + qbs setup-qt "$(qt6_get_bindir)/qmake6" qt6 + qbs config profiles.qt6.baseProfile x86_64-pc-linux-gnu-gcc-14 + qbs config defaultProfile qt6 +} + +src_compile() { + # The installDir is appended to installPrefix + qbs build --no-install \ + config:release \ + profile:qt6 \ + project.libDir:lib64 \ + qbs.installDir:$(get_libdir) \ + qbs.installPrefix:"/usr" \ + projects.Tiled.useRPaths:false \ + projects.Tiled.installHeaders:true +} + +src_install() { + LIBDIR=$(get_libdir) + PREFIX="/usr" + qbs install -v --no-build \ + config:release \ + --install-root ${D} \ + qbs.installDir:${LIBDIR} \ + qbs.installPrefix:${PREFIX} + mkdir -p "${ED}${PREFIX}/${LIBDIR}" + mv -v "${ED}${PREFIX}"/lib/* "${ED}${PREFIX}"/"${LIBDIR}"/ +} + +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 +} diff --git a/dev-games/tiled/tiled-1.9.2.ebuild b/dev-games/tiled/tiled-1.9.2.ebuild index e32de30..6ab09f7 100644 --- a/dev-games/tiled/tiled-1.9.2.ebuild +++ b/dev-games/tiled/tiled-1.9.2.ebuild @@ -3,7 +3,7 @@ EAPI=8 -PYTHON_COMPAT=( python3_{9..11} ) +PYTHON_COMPAT=( python3_{11..13} ) inherit python-single-r1 qmake-utils xdg-utils DESCRIPTION="A general purpose tile map editor" |