mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
graphics/tiled: update to 1.6.0
This commit is contained in:
parent
b46d53b6ce
commit
8d37e75b11
5 changed files with 68 additions and 7 deletions
|
@ -1,5 +1,5 @@
|
|||
PORTNAME= tiled
|
||||
PORTVERSION= 1.5.0
|
||||
PORTVERSION= 1.6.0
|
||||
DISTVERSIONPREFIX= v
|
||||
CATEGORIES= graphics editors games
|
||||
|
||||
|
@ -17,21 +17,24 @@ GH_ACCOUNT= bjorn
|
|||
USES= compiler:c++14-lang desktop-file-utils gl qmake qt:5 \
|
||||
shared-mime-info xorg
|
||||
USE_QT= core gui widgets opengl network declarative \
|
||||
buildtools_build linguisttools_build
|
||||
buildtools_build linguisttools_build dbus
|
||||
USE_GL= gl
|
||||
USE_LDCONFIG= yes
|
||||
QMAKE_ARGS= SYSTEM_ZSTD=yes
|
||||
|
||||
PORTDOCS= *
|
||||
|
||||
OPTIONS_DEFINE= PYTHON DOCS
|
||||
OPTIONS_DEFAULT=PYTHON
|
||||
OPTIONS_DEFINE= PYTHON DBUS DOCS
|
||||
OPTIONS_DEFAULT=PYTHON DBUS
|
||||
OPTIONS_SUB= yes
|
||||
|
||||
PYTHON_DESC= Enable python plugin
|
||||
PYTHON_USES= pkgconfig python:3.6+
|
||||
PYTHON_QMAKE_OFF= DISABLE_PYTHON_PLUGIN=yes
|
||||
|
||||
DBUS_USE= QT=dbus
|
||||
DBUS_QMAKE_OFF= DISABLE_DBUS=yes
|
||||
|
||||
post-patch-PYTHON-on:
|
||||
@${REINPLACE_CMD} -e 's|python3|python-${PYTHON_VER}|' \
|
||||
${WRKSRC}/src/plugins/python/find_python.pri
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
TIMESTAMP = 1616878149
|
||||
SHA256 (bjorn-tiled-v1.5.0_GH0.tar.gz) = 9fa9b5818a35469bf61e51f77096c8c1ec02207cc97831b9402d3f6d13b207a0
|
||||
SIZE (bjorn-tiled-v1.5.0_GH0.tar.gz) = 16694406
|
||||
TIMESTAMP = 1619258429
|
||||
SHA256 (bjorn-tiled-v1.6.0_GH0.tar.gz) = c8bc2cd8f48c9085ac391cf17e351eccae9bed95b0a726f62d3a77f1fddba6ae
|
||||
SIZE (bjorn-tiled-v1.6.0_GH0.tar.gz) = 16730026
|
||||
|
|
46
graphics/tiled/files/patch-src_tiled_main.cpp
Normal file
46
graphics/tiled/files/patch-src_tiled_main.cpp
Normal file
|
@ -0,0 +1,46 @@
|
|||
--- src/tiled/main.cpp.orig 2021-04-23 13:13:21 UTC
|
||||
+++ src/tiled/main.cpp
|
||||
@@ -66,10 +66,6 @@ static QTextStream& stdOut()
|
||||
return ts;
|
||||
}
|
||||
|
||||
-#if QT_VERSION >= QT_VERSION_CHECK(5,14,0)
|
||||
-using Qt::endl;
|
||||
-#endif
|
||||
-
|
||||
namespace {
|
||||
|
||||
class CommandLineHandler : public CommandLineParser
|
||||
@@ -260,7 +256,7 @@ void CommandLineHandler::showVersion()
|
||||
if (!showedVersion) {
|
||||
showedVersion = true;
|
||||
stdOut() << QApplication::applicationDisplayName() << " "
|
||||
- << QApplication::applicationVersion() << endl;
|
||||
+ << QApplication::applicationVersion() << Qt::endl;
|
||||
quit = true;
|
||||
}
|
||||
}
|
||||
@@ -317,9 +313,9 @@ void CommandLineHandler::showExportFormats()
|
||||
}
|
||||
formats.sort(Qt::CaseSensitive);
|
||||
|
||||
- stdOut() << tr("Map export formats:") << endl;
|
||||
+ stdOut() << tr("Map export formats:") << Qt::endl;
|
||||
for (const QString &name : formats)
|
||||
- stdOut() << " " << name << endl;
|
||||
+ stdOut() << " " << name << Qt::endl;
|
||||
|
||||
formats.clear();
|
||||
const auto tilesetFormats = PluginManager::objects<TilesetFormat>();
|
||||
@@ -329,9 +325,9 @@ void CommandLineHandler::showExportFormats()
|
||||
}
|
||||
formats.sort(Qt::CaseSensitive);
|
||||
|
||||
- stdOut() << tr("Tileset export formats:") << endl;
|
||||
+ stdOut() << tr("Tileset export formats:") << Qt::endl;
|
||||
for (const QString &name : formats)
|
||||
- stdOut() << " " << name << endl;
|
||||
+ stdOut() << " " << name << Qt::endl;
|
||||
|
||||
quit = true;
|
||||
}
|
11
graphics/tiled/files/patch-src_tiled_tiled.pro
Normal file
11
graphics/tiled/files/patch-src_tiled_tiled.pro
Normal file
|
@ -0,0 +1,11 @@
|
|||
--- src/tiled/tiled.pro.orig 2021-04-23 13:13:21 UTC
|
||||
+++ src/tiled/tiled.pro
|
||||
@@ -19,7 +19,7 @@ contains(QT_CONFIG, opengl):minQtVersion(6, 0, 0) {
|
||||
QT += openglwidgets
|
||||
}
|
||||
|
||||
-contains(QT_CONFIG, dbus) {
|
||||
+!contains(DISABLE_DBUS, yes):contains(QT_CONFIG, dbus) {
|
||||
QT += dbus
|
||||
DEFINES += TILED_ENABLE_DBUS
|
||||
}
|
|
@ -53,6 +53,7 @@ share/thumbnailers/tiled.thumbnailer
|
|||
%%DATADIR%%/translations/tiled_pt_PT.qm
|
||||
%%DATADIR%%/translations/tiled_ru.qm
|
||||
%%DATADIR%%/translations/tiled_sv.qm
|
||||
%%DATADIR%%/translations/tiled_th.qm
|
||||
%%DATADIR%%/translations/tiled_tr.qm
|
||||
%%DATADIR%%/translations/tiled_uk.qm
|
||||
%%DATADIR%%/translations/tiled_zh_CN.qm
|
||||
|
|
Loading…
Add table
Reference in a new issue