grantlee5: update to 5.2.0.
This commit is contained in:
parent
a431634630
commit
98010d931d
4 changed files with 3 additions and 83 deletions
|
@ -1,14 +0,0 @@
|
|||
The -ansi flag here is wrong, it disables C++11 features on modern setups
|
||||
which completely breaks compilation of everything (Qt needs C++11).
|
||||
|
||||
--- CMakeLists.txt
|
||||
+++ CMakeLists.txt
|
||||
@@ -56,7 +56,7 @@ endif()
|
||||
|
||||
if (CMAKE_COMPILER_IS_GNUCXX)
|
||||
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-long-long -std=iso9899:1990 -Wundef -Wcast-align -Werror-implicit-function-declaration -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -Wformat-security -Wmissing-format-attribute -fno-common")
|
||||
- set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wnon-virtual-dtor -Wno-long-long -ansi -Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wformat-security -fno-check-new -fno-common ")
|
||||
+ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wnon-virtual-dtor -Wno-long-long -Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wformat-security -fno-check-new -fno-common ")
|
||||
|
||||
if (CMAKE_BUILD_TYPE MATCHES TestCocoon)
|
||||
# Needed on 64 bit
|
|
@ -1,54 +0,0 @@
|
|||
--- templates/lib/customtyperegistry.cpp 2016-04-19 08:33:17.000000000 +0200
|
||||
+++ templates/lib/customtyperegistry.cpp 2017-12-18 17:59:07.377687292 +0100
|
||||
@@ -57,16 +57,16 @@
|
||||
|
||||
{
|
||||
if (!types.contains(id)) {
|
||||
- qCWarning(GRANTLEE_CUSTOMTYPE) << "Don't know how to handle metatype"
|
||||
- << QMetaType::typeName(id);
|
||||
+ qCWarning(GRANTLEE_CUSTOMTYPE, "Don't know how to handle metatype %s",
|
||||
+ QMetaType::typeName(id));
|
||||
// :TODO: Print out error message
|
||||
return QVariant();
|
||||
}
|
||||
|
||||
const CustomTypeInfo &info = types[id];
|
||||
if (!info.lookupFunction) {
|
||||
- qCWarning(GRANTLEE_CUSTOMTYPE) << "No lookup function for metatype"
|
||||
- << QMetaType::typeName(id);
|
||||
+ qCWarning(GRANTLEE_CUSTOMTYPE, "No lookup function for metatype %s",
|
||||
+ QMetaType::typeName(id));
|
||||
lf = 0;
|
||||
// :TODO: Print out error message
|
||||
return QVariant();
|
||||
--- templates/lib/template.cpp 2016-04-19 08:33:17.000000000 +0200
|
||||
+++ templates/lib/template.cpp 2017-12-18 18:03:59.522681407 +0100
|
||||
@@ -66,7 +66,7 @@
|
||||
d->m_nodeList = d->compileString(templateString);
|
||||
d->setError(NoError, QString());
|
||||
} catch (Grantlee::Exception &e) {
|
||||
- qCWarning(GRANTLEE_TEMPLATE) << e.what();
|
||||
+ qCWarning(GRANTLEE_TEMPLATE, "%s", qPrintable(e.what()));
|
||||
d->setError(e.errorCode(), e.what());
|
||||
}
|
||||
}
|
||||
@@ -92,7 +92,7 @@
|
||||
d->m_nodeList.render(stream, c);
|
||||
d->setError(NoError, QString());
|
||||
} catch (Grantlee::Exception &e) {
|
||||
- qCWarning(GRANTLEE_TEMPLATE) << e.what();
|
||||
+ qCWarning(GRANTLEE_TEMPLATE, "%s", qPrintable(e.what()));
|
||||
d->setError(e.errorCode(), e.what());
|
||||
}
|
||||
|
||||
--- templates/lib/qtlocalizer.cpp 2016-04-19 08:33:17.000000000 +0200
|
||||
+++ templates/lib/qtlocalizer.cpp 2017-12-18 18:04:50.501680381 +0100
|
||||
@@ -67,7 +67,7 @@
|
||||
{
|
||||
Q_ASSERT(!m_locales.isEmpty());
|
||||
if (m_locales.isEmpty()) {
|
||||
- qCWarning(GRANTLEE_LOCALIZER) << "Invalid Locale";
|
||||
+ qCWarning(GRANTLEE_LOCALIZER, "Invalid Locale");
|
||||
return QLocale();
|
||||
}
|
||||
return m_locales.last()->locale;
|
|
@ -1,12 +0,0 @@
|
|||
--- templates/lib/lexer_p.h 2016-04-19 08:33:17.000000000 +0200
|
||||
+++ templates/lib/lexer_p.h 2019-07-17 18:59:09.532287091 +0200
|
||||
@@ -23,8 +23,7 @@
|
||||
|
||||
#include "textprocessingmachine_p.h"
|
||||
#include "token.h"
|
||||
-
|
||||
-template <typename T> class QList;
|
||||
+#include <QList>
|
||||
|
||||
namespace Grantlee
|
||||
{
|
|
@ -1,7 +1,7 @@
|
|||
# Template file for 'grantlee5'
|
||||
pkgname=grantlee5
|
||||
version=5.1.0
|
||||
revision=4
|
||||
version=5.2.0
|
||||
revision=1
|
||||
wrksrc=${pkgname%5}-${version}
|
||||
build_style=cmake
|
||||
makedepends="qt5-script-devel qt5-tools-devel"
|
||||
|
@ -10,7 +10,7 @@ maintainer="Orphaned <orphan@voidlinux.org>"
|
|||
license="LGPL-2.1-or-later"
|
||||
homepage="https://github.com/steveire/grantlee"
|
||||
distfiles="${homepage}/archive/v${version}.tar.gz>${pkgname}-${version}.tar.gz"
|
||||
checksum=3836572fe5e49d28a1d99186c6d96f88ff839644b4bc77b73b6d8208f6ccc9d1
|
||||
checksum=139acee5746b957bdf1327ec0d97c604d4c0b9be42aec5d584297cb5ed6a990a
|
||||
|
||||
if [ -n "$CROSS_BUILD" ]; then
|
||||
hostmakedepends+=" qt5-host-tools qt5-tools-devel"
|
||||
|
|
Loading…
Reference in a new issue