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