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