Index: head/databases/sqlitebrowser/Makefile =================================================================== --- head/databases/sqlitebrowser/Makefile (revision 393991) +++ head/databases/sqlitebrowser/Makefile (revision 393992) @@ -1,35 +1,37 @@ # Created by: loïc bartoletti # $FreeBSD$ PORTNAME= sqlitebrowser PORTVERSION= 3.6.0 +PORTREVISION= 1 CATEGORIES= databases MAINTAINER= coder@tuxfamily.org COMMENT= DB Browser for SQLite is a visual tool to manage SQLite databases LICENSE= MPL GPLv3 LICENSE_COMB= dual USE_GITHUB= yes GH_ACCOUNT= sqlitebrowser GH_TAGNAME= e703344 USES= cmake desktop-file-utils -USE_QT4= gui qmake_build linguist_build moc_build uic_build rcc_build +USE_QT4= corelib network gui qmake_build linguisttools_build \ + moc_build uic_build rcc_build USE_SQLITE= yes INSTALLS_ICONS= yes post-patch: @${ECHO} ${DATADIR} @${REINPLACE_CMD} -e 's|%%DATADIR%%|${DATADIR}|' \ ${WRKSRC}/src/PreferencesDialog.cpp @${REINPLACE_CMD} -e 's|%%DATADIR%%|${DATADIR}|' \ ${WRKSRC}/src/Application.cpp post-install: ${MKDIR} ${STAGEDIR}${LOCALBASE}/share/${PORTNAME}/translations (cd ${WRKSRC}/translations && ${COPYTREE_SHARE} . ${STAGEDIR}${LOCALBASE}/share/${PORTNAME}/translations) .include Index: head/databases/sqlitebrowser/files/patch-src-Application.cpp =================================================================== --- head/databases/sqlitebrowser/files/patch-src-Application.cpp (revision 393991) +++ head/databases/sqlitebrowser/files/patch-src-Application.cpp (revision 393992) @@ -1,28 +1,28 @@ ---- src/Application.cpp.orig 2015-01-30 19:48:06.000000000 +0100 -+++ src/Application.cpp 2015-02-01 15:40:02.790619098 +0100 -@@ -30,8 +30,15 @@ +--- src/Application.cpp.orig 2015-04-27 09:31:47 UTC ++++ src/Application.cpp +@@ -30,8 +30,15 @@ Application::Application(int& argc, char // 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, + trans_dir); +#else ok = m_translatorApp->load("sqlb_" + name, QCoreApplication::applicationDirPath() + "/translations"); +#endif if (ok == true) { PreferencesDialog::setSettingsValue("General", "language", name); -@@ -47,7 +54,9 @@ +@@ -47,7 +54,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); } Index: head/databases/sqlitebrowser/files/patch-src-PreferencesDialog.cpp =================================================================== --- head/databases/sqlitebrowser/files/patch-src-PreferencesDialog.cpp (revision 393991) +++ head/databases/sqlitebrowser/files/patch-src-PreferencesDialog.cpp (revision 393992) @@ -1,19 +1,19 @@ ---- src/PreferencesDialog.cpp.orig 2015-05-09 08:19:49.920343024 +0200 -+++ src/PreferencesDialog.cpp 2015-05-09 08:20:57.913337598 +0200 -@@ -356,8 +356,15 @@ +--- src/PreferencesDialog.cpp.orig 2015-04-27 09:31:47 UTC ++++ src/PreferencesDialog.cpp +@@ -356,8 +356,15 @@ void PreferencesDialog::removeExtension( void PreferencesDialog::fillLanguageBox() { - QDir translationsDir(QCoreApplication::applicationDirPath() + "/translations", + +#ifdef Q_OS_FREEBSD + QDir translationsDir("%%DATADIR%%/translations", "sqlb_*.qm"); +#else + QDir translationsDir(QCoreApplication::applicationDirPath() + "/translations", + "sqlb_*.qm"); + +#endif QLocale systemLocale = QLocale::system();