1 | # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 |
---|
2 | # |
---|
3 | PortSystem 1.0 |
---|
4 | PortGroup qt5 1.0 |
---|
5 | PortGroup cmake 1.1 |
---|
6 | PortGroup github 1.0 |
---|
7 | PortGroup app 1.0 |
---|
8 | |
---|
9 | github.setup sqlitebrowser sqlitebrowser 3.9.1 v |
---|
10 | |
---|
11 | categories databases |
---|
12 | platforms darwin linux |
---|
13 | license GPL-3 |
---|
14 | maintainers {gmail.com:rjvbertin @RJVB} openmaintainer |
---|
15 | |
---|
16 | description GUI editor for SQLite databases |
---|
17 | long_description SQLite Database Browser is a visual tool used to create, design and edit \ |
---|
18 | database files compatible with SQLite. Its interface is based on Qt, and is \ |
---|
19 | meant to be used by users and developers who want to create databases or edit \ |
---|
20 | and search data using a familiar spreadsheet-like interface, without the need \ |
---|
21 | to learn complicated SQL commands. Controls and wizards are available for users \ |
---|
22 | to: \ |
---|
23 | * Create and compact database files \ |
---|
24 | * Create, define, modify and delete tables \ |
---|
25 | * Create, define and delete indexes \ |
---|
26 | * Browse, edit, add and delete records \ |
---|
27 | * Search records \ |
---|
28 | * Import and export records as text \ |
---|
29 | * Import and export tables from/to CSV files \ |
---|
30 | * Import and export databases from/to SQL dump files \ |
---|
31 | * Issue SQL queries and inspect the results \ |
---|
32 | * Examine a log of all SQL commands issued by the application. \ |
---|
33 | SQLite Database Browser is not a visual shell for the sqlite command line tool. \ |
---|
34 | It does not require familiarity with SQL commands. |
---|
35 | |
---|
36 | homepage http://sqlitebrowser.org |
---|
37 | |
---|
38 | checksums rmd160 96624d2a492fb8b81c8f91d41c2d988a16a18bd0 \ |
---|
39 | sha256 ea30e8912972b14991827388dc6b99e82772637a46e0b132430504dd262df08d |
---|
40 | |
---|
41 | universal_variant no |
---|
42 | |
---|
43 | depends_lib-append port:antlr \ |
---|
44 | port:qscintilla2 |
---|
45 | |
---|
46 | qt5.depends_component \ |
---|
47 | qtmacextras qttools |
---|
48 | |
---|
49 | patchfiles-append patch-build-for-MP.diff |
---|
50 | |
---|
51 | if {[info procs cmake.save_configure_cmd] ne ""} { |
---|
52 | # create a .macports-$subport-configure.cmd file containing the cmake invocation details |
---|
53 | # (provided by a pending update to cmake-1.1 |
---|
54 | cmake.save_configure_cmd "log too" |
---|
55 | } |
---|
56 | |
---|
57 | configure.args-append \ |
---|
58 | -DUSE_QT5=ON \ |
---|
59 | -DQSCINTILLA_INCLUDE_DIR=${qt_includes_dir} \ |
---|
60 | -DQSCINTILLA_LIB_DIR=${qt_frameworks_dir} |
---|
61 | |
---|
62 | platform darwin { |
---|
63 | app.executable ${build.dir}/sqlitebrowser |
---|
64 | app.icon ${worksrcpath}/src/icons/sqlitebrowser.png |
---|
65 | |
---|
66 | post-destroot { |
---|
67 | set APPNAME "${qt_apps_dir}/SQLiteBrowser.app" |
---|
68 | xinstall -m 755 -d ${destroot}${qt_apps_dir} |
---|
69 | # for some reason the app PG capitalises the 1st letter |
---|
70 | file rename ${destroot}${applications_dir}/Sqlitebrowser.app ${destroot}${APPNAME} |
---|
71 | file rename ${destroot}${APPNAME}/Contents/MacOS/Sqlitebrowser ${destroot}${APPNAME}/Contents/MacOS/Sqlitebrowser-temp |
---|
72 | file rename ${destroot}${APPNAME}/Contents/MacOS/Sqlitebrowser-temp ${destroot}${APPNAME}/Contents/MacOS/sqlitebrowser |
---|
73 | file rename ${destroot}${APPNAME}/Contents/Resources/Sqlitebrowser.icns ${destroot}${APPNAME}/Contents/Resources/Sqlitebrowser.icns-temp |
---|
74 | file rename ${destroot}${APPNAME}/Contents/Resources/Sqlitebrowser.icns-temp ${destroot}${APPNAME}/Contents/Resources/sqlitebrowser.icns |
---|
75 | xinstall -m 755 ${worksrcpath}/src/app.plist ${destroot}${APPNAME}/Contents/Info.plist |
---|
76 | reinplace "s|@EXECUTABLE@|sqlitebrowser|g" ${destroot}${APPNAME}/Contents/Info.plist |
---|
77 | reinplace "s|@ICON@|sqlitebrowser.icns|g" ${destroot}${APPNAME}/Contents/Info.plist |
---|
78 | |
---|
79 | if {[info procs qt5.add_app_wrapper] != ""} { |
---|
80 | file delete ${destroot}${prefix}/bin/sqlitebrowser |
---|
81 | qt5.add_app_wrapper sqlitebrowser SQLiteBrowser sqlitebrowser |
---|
82 | } |
---|
83 | } |
---|
84 | } |
---|
85 | platform linux { |
---|
86 | cmake.install_rpath-prepend \ |
---|
87 | ${qt_libs_dir} ${prefix}/lib |
---|
88 | configure.args-append \ |
---|
89 | -DCMAKE_PREFIX_PATH=${prefix} |
---|
90 | configure.args-replace \ |
---|
91 | -DQSCINTILLA_LIB_DIR=${qt_frameworks_dir} \ |
---|
92 | -DQSCINTILLA_LIB_DIR=${qt_libs_dir} |
---|
93 | } |
---|