diff options
author | rm <rm@FreeBSD.org> | 2016-10-01 09:05:14 +0800 |
---|---|---|
committer | rm <rm@FreeBSD.org> | 2016-10-01 09:05:14 +0800 |
commit | fbe442eba0f9a32400aff5a0b53c3f209a29ae9a (patch) | |
tree | 42abc5e5a45a9e8725092e6214d51d2053ce6bf7 | |
parent | e5510040ea99cc66876ea1f23bfd47192e24e69f (diff) | |
download | freebsd-ports-gnome-fbe442eba0f9a32400aff5a0b53c3f209a29ae9a.tar.gz freebsd-ports-gnome-fbe442eba0f9a32400aff5a0b53c3f209a29ae9a.tar.zst freebsd-ports-gnome-fbe442eba0f9a32400aff5a0b53c3f209a29ae9a.zip |
databases/sqlitebrowser: update to 3.9.0
- update to 3.9.0
- update maintainer's email
- pet portlint
PR: 212395
Submitted by: lbartoletti <lbartoletti@tuxfamily.org> (maintainer)
-rw-r--r-- | databases/sqlitebrowser/Makefile | 19 | ||||
-rw-r--r-- | databases/sqlitebrowser/distinfo | 5 | ||||
-rw-r--r-- | databases/sqlitebrowser/files/patch-CMakeLists.txt | 8 | ||||
-rw-r--r-- | databases/sqlitebrowser/files/patch-src-Application.cpp | 15 | ||||
-rw-r--r-- | databases/sqlitebrowser/files/patch-src-PreferencesDialog.cpp | 13 |
5 files changed, 29 insertions, 31 deletions
diff --git a/databases/sqlitebrowser/Makefile b/databases/sqlitebrowser/Makefile index 72e0f3b608ff..7af4f8e1cdfb 100644 --- a/databases/sqlitebrowser/Makefile +++ b/databases/sqlitebrowser/Makefile @@ -1,32 +1,33 @@ -# Created by: loïc bartoletti <coder@tuxfamily.org> +# Created by: loïc bartoletti <lbartoletti@tuxfamily.org> # $FreeBSD$ PORTNAME= sqlitebrowser -PORTVERSION= 3.8.0 +PORTVERSION= 3.9.0 DISTVERSIONPREFIX= v -PORTREVISION?= 1 CATEGORIES= databases -MAINTAINER= coder@tuxfamily.org -COMMENT= DB Browser for SQLite is a visual tool to manage SQLite databases - -CONFLICTS_INSTALL?= ${PORTNAME}-qt5-* +MAINTAINER= lbartoletti@tuxfamily.org +COMMENT= Visual tool to manage SQLite databases LICENSE= MPL GPLv3 LICENSE_COMB= dual +BUILD_DEPENDS= ${LOCALBASE}/lib/libantlr.a:devel/antlr + +CONFLICTS_INSTALL?= ${PORTNAME}-qt5-* + USE_GITHUB= yes USES= cmake desktop-file-utils sqlite .if empty(PKGNAMESUFFIX) +CMAKE_ARGS+= -DUSE_QT5:BOOL=FALSE USE_QT4= corelib network gui qmake_build linguisttools_build \ moc_build uic_build rcc_build -CMAKE_ARGS+= -DUSE_QT5:BOOL=FALSE .else +CMAKE_ARGS+= -DUSE_QT5:BOOL=TRUE USE_QT5= core gui network printsupport testlib widgets \ buildtools_build linguisttools_build qmake_build -CMAKE_ARGS+= -DUSE_QT5:BOOL=TRUE .endif post-patch: diff --git a/databases/sqlitebrowser/distinfo b/databases/sqlitebrowser/distinfo index 2b985abb5a78..e307b8e482aa 100644 --- a/databases/sqlitebrowser/distinfo +++ b/databases/sqlitebrowser/distinfo @@ -1,2 +1,3 @@ -SHA256 (sqlitebrowser-sqlitebrowser-v3.8.0_GH0.tar.gz) = f638a751bccde4bf0305a75685e2a72d26fc3e3a69d7e15fd84573f88c1a4d92 -SIZE (sqlitebrowser-sqlitebrowser-v3.8.0_GH0.tar.gz) = 1538043 +TIMESTAMP = 1472301221 +SHA256 (sqlitebrowser-sqlitebrowser-v3.9.0_GH0.tar.gz) = 0ccbf05e9c5f544a542399332dd70ef365fab4ded6b838e29ba4fb1375872bf2 +SIZE (sqlitebrowser-sqlitebrowser-v3.9.0_GH0.tar.gz) = 1701943 diff --git a/databases/sqlitebrowser/files/patch-CMakeLists.txt b/databases/sqlitebrowser/files/patch-CMakeLists.txt new file mode 100644 index 000000000000..7723a8ae49ab --- /dev/null +++ b/databases/sqlitebrowser/files/patch-CMakeLists.txt @@ -0,0 +1,8 @@ +--- CMakeLists.txt.orig 2016-08-24 11:00:01 UTC ++++ CMakeLists.txt +@@ -1,4 +1,4 @@ +-project("DB Browser for SQLite") ++project("sqlitebrowser") + cmake_minimum_required(VERSION 2.8.7) + + set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake" "${CMAKE_MODULE_PATH}") diff --git a/databases/sqlitebrowser/files/patch-src-Application.cpp b/databases/sqlitebrowser/files/patch-src-Application.cpp index 9281af3a6c40..0515edce4fed 100644 --- a/databases/sqlitebrowser/files/patch-src-Application.cpp +++ b/databases/sqlitebrowser/files/patch-src-Application.cpp @@ -1,6 +1,6 @@ ---- src/Application.cpp.orig 2015-06-14 10:13:37 UTC +--- src/Application.cpp.orig 2016-09-25 11:30:50 UTC +++ src/Application.cpp -@@ -30,8 +30,15 @@ Application::Application(int& argc, char +@@ -30,8 +30,16 @@ Application::Application(int& argc, char // First of all try to load the application translation file. m_translatorApp = new QTranslator(this); @@ -13,16 +13,7 @@ ok = m_translatorApp->load("sqlb_" + name, QCoreApplication::applicationDirPath() + "/translations"); +#endif ++ // If failed then try to load .qm file from resources if (ok == false) { ok = m_translatorApp->load("sqlb_" + name, ":/translations"); -@@ -51,7 +58,9 @@ Application::Application(int& argc, char - ok = m_translatorQt->load("qt_" + name, - QLibraryInfo::location(QLibraryInfo::TranslationsPath)); - if (ok == false) -+ { - ok = m_translatorQt->load("qt_" + name, "translations"); -+ } - if (ok == true) - installTranslator(m_translatorQt); - } diff --git a/databases/sqlitebrowser/files/patch-src-PreferencesDialog.cpp b/databases/sqlitebrowser/files/patch-src-PreferencesDialog.cpp index ae8841d1d786..ede29b2acfea 100644 --- a/databases/sqlitebrowser/files/patch-src-PreferencesDialog.cpp +++ b/databases/sqlitebrowser/files/patch-src-PreferencesDialog.cpp @@ -1,18 +1,15 @@ ---- src/PreferencesDialog.cpp.orig 2015-04-27 09:31:47 UTC +--- src/PreferencesDialog.cpp.orig 2016-08-24 11:00:01 UTC +++ src/PreferencesDialog.cpp -@@ -356,8 +356,15 @@ void PreferencesDialog::removeExtension( +@@ -465,8 +465,13 @@ void PreferencesDialog::removeExtension( void PreferencesDialog::fillLanguageBox() { -- QDir translationsDir(QCoreApplication::applicationDirPath() + "/translations", -+ +#ifdef Q_OS_FREEBSD + QDir translationsDir("%%DATADIR%%/translations", - "sqlb_*.qm"); ++ "sqlb_*.qm"); +#else -+ QDir translationsDir(QCoreApplication::applicationDirPath() + "/translations", -+ "sqlb_*.qm"); -+ + QDir translationsDir(QCoreApplication::applicationDirPath() + "/translations", + "sqlb_*.qm"); +#endif QLocale systemLocale = QLocale::system(); |