# -*- 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.9.1 v revision 1 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 96624d2a492fb8b81c8f91d41c2d988a16a18bd0 \ sha256 ea30e8912972b14991827388dc6b99e82772637a46e0b132430504dd262df08d universal_variant no depends_lib-append port:antlr \ port:qscintilla-qt5 qt5.depends_component \ qtmacextras qttools patchfiles-append patch-build-for-MP.diff 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 \ -DUSE_QT5=ON \ -DQSCINTILLA_INCLUDE_DIR=${qt_includes_dir} \ -DQSCINTILLA_LIB_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 \ -DQSCINTILLA_LIB_DIR=${qt_frameworks_dir} \ -DQSCINTILLA_LIB_DIR=${qt_libs_dir} }