From 2bd6dfe88cd326caa5b037c61a3bb2143d6741e8 Mon Sep 17 00:00:00 2001 From: mew14930xvi Date: Sat, 1 Mar 2025 15:51:06 +0100 Subject: [PATCH] databases/sqlitebrowser: Update to 3.13.1 - https://github.com/sqlitebrowser/sqlitebrowser/releases/tag/v3.13.1 - Change maintainership PR: 281067 --- databases/sqlitebrowser/Makefile | 19 ++++++------------- databases/sqlitebrowser/distinfo | 6 +++--- .../files/patch-src-Application.cpp | 8 ++++---- .../sqlitebrowser/files/patch-src_version.h | 13 ------------- databases/sqlitebrowser/pkg-plist | 3 ++- 5 files changed, 15 insertions(+), 34 deletions(-) delete mode 100644 databases/sqlitebrowser/files/patch-src_version.h diff --git a/databases/sqlitebrowser/Makefile b/databases/sqlitebrowser/Makefile index f20cb2b3f984..15c56cc58032 100644 --- a/databases/sqlitebrowser/Makefile +++ b/databases/sqlitebrowser/Makefile @@ -1,31 +1,24 @@ PORTNAME= sqlitebrowser -PORTVERSION= 3.12.2 -PORTREVISION= 1 DISTVERSIONPREFIX= v +DISTVERSION= 3.13.1 CATEGORIES= databases -MAINTAINER= lbartoletti@FreeBSD.org +MAINTAINER= mew14930xvi@inbox.lv COMMENT= Visual tool to manage SQLite databases WWW= https://sqlitebrowser.org/ -LICENSE= MPL20 GPLv3 +LICENSE= MPL20 GPLv3+ LICENSE_COMB= dual -LICENSE_FILE= ${WRKSRC}/LICENSE +LICENSE_FILE_GPLv3= ${WRKSRC}/LICENSE-GPL-3.0 +LICENSE_FILE_MPL20= ${WRKSRC}/LICENSE-MPL-2.0 -BUILD_DEPENDS= ${LOCALBASE}/lib/libantlr.a:devel/antlr -LIB_DEPENDS= libqscintilla2_qt5.so:devel/qscintilla2@qt5 - -USES= cmake desktop-file-utils gnome qt:5 sqlite +USES= cmake compiler:c++14-lang desktop-file-utils gnome qt:5 sqlite USE_QT= core concurrent gui network printsupport testlib widgets \ buildtools:build linguisttools:build qmake:build xml USE_GITHUB= yes -PORTSCOUT= ignore:1 - post-patch: @${REINPLACE_CMD} -e 's|%%DATADIR%%|${DATADIR}|' \ ${WRKSRC}/src/PreferencesDialog.cpp ${WRKSRC}/src/Application.cpp - @${REINPLACE_CMD} -e 's|metainfo|appdata|' \ - ${WRKSRC}/src/src.pro ${WRKSRC}/CMakeLists.txt .include diff --git a/databases/sqlitebrowser/distinfo b/databases/sqlitebrowser/distinfo index eedcffdb91ce..4282c1563fb3 100644 --- a/databases/sqlitebrowser/distinfo +++ b/databases/sqlitebrowser/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1717318544 -SHA256 (sqlitebrowser-sqlitebrowser-v3.12.2_GH0.tar.gz) = 645f98d38e5d128a449e93cebf03c8070f9eacd2d16b10e433a781d54a9d478a -SIZE (sqlitebrowser-sqlitebrowser-v3.12.2_GH0.tar.gz) = 3990817 +TIMESTAMP = 1729074091 +SHA256 (sqlitebrowser-sqlitebrowser-v3.13.1_GH0.tar.gz) = 1044ba67d649cabc459eb887c016f70d6a404ad651390ab33bf7859dc7f1b67b +SIZE (sqlitebrowser-sqlitebrowser-v3.13.1_GH0.tar.gz) = 4923092 diff --git a/databases/sqlitebrowser/files/patch-src-Application.cpp b/databases/sqlitebrowser/files/patch-src-Application.cpp index 0515edce4fed..41298e388c34 100644 --- a/databases/sqlitebrowser/files/patch-src-Application.cpp +++ b/databases/sqlitebrowser/files/patch-src-Application.cpp @@ -1,16 +1,16 @@ ---- src/Application.cpp.orig 2016-09-25 11:30:50 UTC +--- src/Application.cpp.orig 2024-08-25 17:07:43 UTC +++ src/Application.cpp -@@ -30,8 +30,16 @@ Application::Application(int& argc, char +@@ -117,8 +117,16 @@ Application::Application(int& argc, char** argv) : // First of all try to load the application translation file. m_translatorApp = new QTranslator(this); + +#ifdef Q_OS_FREEBSD + QString trans_dir = "%%DATADIR%%/translations"; -+ ok = m_translatorApp->load("sqlb_" + name, + ok = m_translatorApp->load("sqlb_" + name, + trans_dir); +#else - ok = m_translatorApp->load("sqlb_" + name, ++ ok = m_translatorApp->load("sqlb_" + name, QCoreApplication::applicationDirPath() + "/translations"); +#endif + diff --git a/databases/sqlitebrowser/files/patch-src_version.h b/databases/sqlitebrowser/files/patch-src_version.h deleted file mode 100644 index 58e180e8fe72..000000000000 --- a/databases/sqlitebrowser/files/patch-src_version.h +++ /dev/null @@ -1,13 +0,0 @@ ---- src/version.h.orig 2021-05-02 14:08:53 UTC -+++ src/version.h -@@ -4,9 +4,7 @@ - #define MINOR_VERSION 12 - #define PATCH_VERSION 2 - --#define str(s) #s --#define xstr(s) str(s) --#define APP_VERSION xstr(MAJOR_VERSION) "." xstr(MINOR_VERSION) "." xstr(PATCH_VERSION) -+#define APP_VERSION "3.12.2" - - // If it is defined by the compiler, then it is a nightly build, and in the YYYYMMDD format. - #ifndef BUILD_VERSION diff --git a/databases/sqlitebrowser/pkg-plist b/databases/sqlitebrowser/pkg-plist index 8b39033998c6..1c58cb900457 100644 --- a/databases/sqlitebrowser/pkg-plist +++ b/databases/sqlitebrowser/pkg-plist @@ -1,4 +1,5 @@ bin/sqlitebrowser -share/appdata/sqlitebrowser.desktop.appdata.xml share/applications/sqlitebrowser.desktop share/icons/hicolor/256x256/apps/sqlitebrowser.png +share/icons/hicolor/scalable/apps/sqlitebrowser.svg +share/metainfo/sqlitebrowser.desktop.appdata.xml