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

Collapse All | Expand All

(-)sqlitebrowser/Makefile (-6 / +16 lines)
Lines 1-27 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
13
LICENSE_COMB=	dual
13
LICENSE_COMB=	dual
14
14
15
BUILD_DEPENDS=	${LOCALBASE}/include/antlr/AST.hpp:devel/antlr
16
17
CONFLICTS_INSTALL?=	${PORTNAME}-qt5-*
18
15
USE_GITHUB=	yes
19
USE_GITHUB=	yes
16
20
17
USES=		cmake desktop-file-utils sqlite
21
USES=		cmake desktop-file-utils sqlite
22
23
INSTALLS_ICONS=	yes
24
25
.if empty(PKGNAMESUFFIX)
26
CMAKE_ARGS+=	-DUSE_QT5:BOOL=FALSE
18
USE_QT4=	corelib network gui qmake_build linguisttools_build \
27
USE_QT4=	corelib network gui qmake_build linguisttools_build \
19
		moc_build uic_build rcc_build
28
		moc_build uic_build rcc_build
29
.else
30
CMAKE_ARGS+=	-DUSE_QT5:BOOL=TRUE
31
USE_QT5=	core widgets network gui qmake buildtools linguisttools printsupport testlib
32
.endif
20
33
21
INSTALLS_ICONS=	yes
22
23
post-patch:
34
post-patch:
24
	@${ECHO} ${DATADIR}
25
	@${REINPLACE_CMD} -e 's|%%DATADIR%%|${DATADIR}|' \
35
	@${REINPLACE_CMD} -e 's|%%DATADIR%%|${DATADIR}|' \
26
		${WRKSRC}/src/PreferencesDialog.cpp
36
		${WRKSRC}/src/PreferencesDialog.cpp
27
	@${REINPLACE_CMD} -e 's|%%DATADIR%%|${DATADIR}|' \
37
	@${REINPLACE_CMD} -e 's|%%DATADIR%%|${DATADIR}|' \
(-)sqlitebrowser/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
(-)sqlitebrowser/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}")
(-)sqlitebrowser/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 {
(-)sqlitebrowser/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",
(-)sqlitebrowser-qt5/Makefile (+16 lines)
Line 0 Link Here
1
# Created by: loïc bartoletti <lbartoletti@tuxfamily.org>
2
# $FreeBSD$
3
4
PORTNAME=        sqlitebrowser
5
PKGNAMESUFFIX=        -qt5
6
7
MAINTAINER=     lbartoletti@tuxfamily.org
8
9
LICENSE=        MPL GPLv3
10
LICENSE_COMB=   dual
11
12
CONFLICTS_INSTALL=        ${PORTNAME}-3.*
13
14
MASTERDIR=${.CURDIR}/../sqlitebrowser
15
16
.include "${MASTERDIR}/Makefile"

Return to bug 212395