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