View | Details | Raw Unified | Return to bug 212395 | Differences between
and this patch

Collapse All | Expand All

(-)Makefile (-5 / +15 lines)
Lines 1-12 Link Here
1
# Created by: loïc bartoletti <coder@tuxfamily.org>
1
# Created by: loïc bartoletti <lbartoletti@tuxfamily.org>
2
# $FreeBSD$
2
# $FreeBSD$
3
3
4
PORTNAME=	sqlitebrowser
4
PORTNAME=	sqlitebrowser
5
PORTVERSION=	3.8.0
5
PORTVERSION=	3.9.0
6
DISTVERSIONPREFIX=	v
6
DISTVERSIONPREFIX=	v
7
CATEGORIES=	databases
7
CATEGORIES=	databases
8
8
9
MAINTAINER=	coder@tuxfamily.org
9
MAINTAINER=	lbartoletti@tuxfamily.org
10
COMMENT=	DB Browser for SQLite is a visual tool to manage SQLite databases
10
COMMENT=	DB Browser for SQLite is a visual tool to manage SQLite databases
11
11
12
LICENSE=	MPL GPLv3
12
LICENSE=	MPL GPLv3
Lines 14-23 Link Here
14
14
15
USE_GITHUB=	yes
15
USE_GITHUB=	yes
16
16
17
BUILD_DEPENDS=	${LOCALBASE}/include/antlr/AST.hpp:devel/antlr
18
17
USES=		cmake desktop-file-utils sqlite
19
USES=		cmake desktop-file-utils sqlite
18
USE_QT4=	corelib network gui qmake_build linguisttools_build \
20
OPTIONS_SINGLE=	GUI
19
		moc_build uic_build rcc_build
21
OPTIONS_SINGLE_GUI=	QT4 QT5
22
OPTIONS_DEFAULT=	QT5
20
23
24
QT4_CMAKE_ON=	-DUSE_QT5:BOOL=FALSE
25
QT4_USE=	QT4=corelib,network,gui,qmake_build,linguisttools_build
26
QT4_USE+=	QT4=moc_build,uic_build,rcc_build
27
28
QT5_CMAKE_ON=	-DUSE_QT5:BOOL=TRUE
29
QT5_USE=	QT5=core,widgets,network,gui,qmake,buildtools,linguisttools,printsupport,testlib
30
21
INSTALLS_ICONS=	yes
31
INSTALLS_ICONS=	yes
22
32
23
post-patch:
33
post-patch:
(-)distinfo (-2 / +3 lines)
Lines 1-2 Link Here
1
SHA256 (sqlitebrowser-sqlitebrowser-v3.8.0_GH0.tar.gz) = f638a751bccde4bf0305a75685e2a72d26fc3e3a69d7e15fd84573f88c1a4d92
1
TIMESTAMP = 1472301221
2
SIZE (sqlitebrowser-sqlitebrowser-v3.8.0_GH0.tar.gz) = 1538043
2
SHA256 (sqlitebrowser-sqlitebrowser-v3.9.0_GH0.tar.gz) = 0ccbf05e9c5f544a542399332dd70ef365fab4ded6b838e29ba4fb1375872bf2
3
SIZE (sqlitebrowser-sqlitebrowser-v3.9.0_GH0.tar.gz) = 1701943
(-)files/patch-CMakeLists.txt (+8 lines)
Line 0 Link Here
1
--- CMakeLists.txt.orig	2016-08-27 16:48:17 UTC
2
+++ CMakeLists.txt
3
@@ -1,4 +1,4 @@
4
-project("DB Browser for SQLite")
5
+project("sqlitebrowser")
6
 cmake_minimum_required(VERSION 2.8.7)
7
 
8
 set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake" "${CMAKE_MODULE_PATH}")
(-)files/patch-src-Application.cpp (-3 / +3 lines)
Lines 1-4 Link Here
1
--- src/Application.cpp.orig	2015-06-14 10:13:37 UTC
1
--- src/Application.cpp.orig	2016-08-24 11:00:01 UTC
2
+++ src/Application.cpp
2
+++ src/Application.cpp
3
@@ -30,8 +30,15 @@ Application::Application(int& argc, char
3
@@ -30,8 +30,15 @@ Application::Application(int& argc, char
4
 
4
 
Lines 6-12 Link Here
6
     m_translatorApp = new QTranslator(this);
6
     m_translatorApp = new QTranslator(this);
7
+
7
+
8
+#ifdef Q_OS_FREEBSD
8
+#ifdef Q_OS_FREEBSD
9
+    QString trans_dir = "%%DATADIR%%/translations";
9
+    QString trans_dir = "/usr/local/share/sqlitebrowser/translations";
10
+    ok = m_translatorApp->load("sqlb_" + name,
10
+    ok = m_translatorApp->load("sqlb_" + name,
11
+                               trans_dir);
11
+                               trans_dir);
12
+#else
12
+#else
Lines 25-28 Link Here
25
+	}
25
+	}
26
         if (ok == true)
26
         if (ok == true)
27
             installTranslator(m_translatorQt);
27
             installTranslator(m_translatorQt);
28
     }
28
     } else {
(-)files/patch-src-PreferencesDialog.cpp (-3 / +3 lines)
Lines 1-6 Link Here
1
--- src/PreferencesDialog.cpp.orig	2015-04-27 09:31:47 UTC
1
--- src/PreferencesDialog.cpp.orig	2016-08-24 11:00:01 UTC
2
+++ src/PreferencesDialog.cpp
2
+++ src/PreferencesDialog.cpp
3
@@ -356,8 +356,15 @@ void PreferencesDialog::removeExtension(
3
@@ -465,8 +465,15 @@ void PreferencesDialog::removeExtension(
4
 
4
 
5
 void PreferencesDialog::fillLanguageBox()
5
 void PreferencesDialog::fillLanguageBox()
6
 {
6
 {
Lines 7-13 Link Here
7
-    QDir translationsDir(QCoreApplication::applicationDirPath() + "/translations",
7
-    QDir translationsDir(QCoreApplication::applicationDirPath() + "/translations",
8
+
8
+
9
+#ifdef Q_OS_FREEBSD
9
+#ifdef Q_OS_FREEBSD
10
+    QDir translationsDir("%%DATADIR%%/translations",
10
+    QDir translationsDir("/usr/local/share/sqlitebrowser/translations",
11
                          "sqlb_*.qm");
11
                          "sqlb_*.qm");
12
+#else
12
+#else
13
+     QDir translationsDir(QCoreApplication::applicationDirPath() + "/translations",
13
+     QDir translationsDir(QCoreApplication::applicationDirPath() + "/translations",

Return to bug 212395