1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
3 NAMEBASE= sqlitebrowser
8 SDESC[standard]= Visual tool to manage SQLite databases
9 HOMEPAGE= https://sqlitebrowser.org/
13 SITES[main]= GITHUB/sqlitebrowser:sqlitebrowser:v3.12.2
14 DISTFILE[1]= generated:main
16 SPKGS[standard]= single
18 OPTIONS_AVAILABLE= none
19 OPTIONS_STANDARD= none
21 BUILD_DEPENDS= qt5-qttools:single:standard
22 BUILDRUN_DEPENDS= qscintilla:primary:qt5
24 USES= cmake sqlite desktop-utils:single gnome-icons:single
26 LICENSE= MPL:single GPLv3+:single
27 LICENSE_TERMS= single:{{WRKDIR}}/TERMS
28 LICENSE_FILE= MPL:stock
30 LICENSE_AWK= TERMS:"^----"
31 LICENSE_SOURCE= TERMS:{{WRKSRC}}/LICENSE
34 FPC_EQUIVALENT= databases/sqlitebrowser
36 CMAKE_ARGS= -DFORCE_INTERNAL_ANTLR:BOOL=ON
37 -DQT_INCLUDE_DIR:PATH="{{PREFIX}}/include/qt5"
38 -DQT_LIBRARY_DIR:PATH="{{PREFIX}}/lib/qt5"
39 -DCMAKE_PREFIX_PATH:PATH="{{PREFIX}}/lib/qt5/cmake/"
42 ${REINPLACE_CMD} -e 's|%%DATADIR%%|${PREFIX}/share/${NAMEBASE}|' \
43 ${WRKSRC}/src/PreferencesDialog.cpp \
44 ${WRKSRC}/src/Application.cpp
47 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/sqlitebrowser
49 [FILE:911:descriptions/desc.single]
50 DB Browser for SQLite is a high quality, visual, open source tool to create,
51 design, and edit database files compatible with SQLite.
53 It is for users and developers wanting to create databases, search, and edit
54 data. It uses a familiar spreadsheet-like interface, and you don't need to
55 learn complicated SQL commands.
57 Controls and wizards are available for users to:
58 * Create and compact database files
59 * Create, define, modify and delete tables
60 * Create, define and delete indexes
61 * Browse, edit, add and delete records
63 * Import and export records as text
64 * Import and export tables from/to CSV files
65 * Import and export databases from/to SQL dump files
66 * Issue SQL queries and inspect the results
67 * Examine a log of all SQL commands issued by the application
69 This program is not a visual shell for the sqlite command line tool. It
70 does not require familiarity with SQL commands.
75 645f98d38e5d128a449e93cebf03c8070f9eacd2d16b10e433a781d54a9d478a 3990817 sqlitebrowser-sqlitebrowser-3.12.2.tar.gz
78 [FILE:159:manifests/plist.single]
80 share/applications/sqlitebrowser.desktop
81 share/icons/hicolor/256x256/apps/sqlitebrowser.png
82 share/metainfo/sqlitebrowser.desktop.appdata.xml
85 [FILE:360:patches/patch-libs_qcustomplot-source_CMakeLists.txt]
86 --- libs/qcustomplot-source/CMakeLists.txt.orig 2021-05-02 14:08:53 UTC
87 +++ libs/qcustomplot-source/CMakeLists.txt
88 @@ -18,4 +18,4 @@ set(QCUSTOMPLOT_MOC_HDR
90 add_library(qcustomplot ${QCUSTOMPLOT_SRC} ${QCUSTOMPLOT_HDR} ${QCUSTOMPLOT_MOC})
92 -target_link_libraries(qcustomplot Qt5::Widgets Qt5::PrintSupport)
93 +target_link_libraries(qcustomplot Qt5::Widgets)
96 [FILE:657:patches/patch-src_Application.cpp]
97 --- src/Application.cpp.orig 2021-05-02 14:08:53 UTC
98 +++ src/Application.cpp
99 @@ -31,8 +31,8 @@ Application::Application(int& argc, char
101 // First of all try to load the application translation file.
102 m_translatorApp = new QTranslator(this);
103 - ok = m_translatorApp->load("sqlb_" + name,
104 - QCoreApplication::applicationDirPath() + "/translations");
105 + QString trans_dir = "%%DATADIR%%/translations";
106 + ok = m_translatorApp->load("sqlb_" + name, trans_dir);
107 // If failed then try to load .qm file from resources
109 ok = m_translatorApp->load("sqlb_" + name, ":/translations");
112 [FILE:441:patches/patch-src_PreferencesDialog.cpp]
113 --- src/PreferencesDialog.cpp.orig 2021-05-02 14:08:53 UTC
114 +++ src/PreferencesDialog.cpp
115 @@ -411,8 +411,7 @@ void PreferencesDialog::removeExtension(
117 void PreferencesDialog::fillLanguageBox()
119 - QDir translationsDir(QCoreApplication::applicationDirPath() + "/translations",
121 + QDir translationsDir("%%DATADIR%%/translations", "sqlb_*.qm");
123 QLocale systemLocale = QLocale::system();