# -*- 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 github 1.0 github.setup sqlitebrowser sqlitebrowser 3.12.2 v revision 1 categories databases platforms darwin linux license GPL-3 maintainers {i0ntempest @i0ntempest} 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 9c7aa0ef33b114e7db7f52e8d9c011dc63e1009a \ sha256 7e1b2971c4954b60ff64d69325264edba52a1973d7ac81eb6058340a18f172ee \ size 3990737 # Exclude pre-release candidates github.livecheck.regex \ {([0-9.]+)} universal_variant no depends_lib-append port:qscintilla-qt5 patchfiles-append 0001-Changes-for-MacPorts.patch compiler.cxx_standard 2011 platform darwin { PortGroup qmake5 1.0 configure.args-append \ CONFIG+=c++11 \ INCLUDEPATH+=${qt_includes_dir} \ QMAKE_LIBDIR+=${qt_libs_dir} # Workaround xcrun: error: SDK "macosx12" cannot be located configure.sdk_version # Uses QSysInfo::buildAbi and QSysInfo::currentCpuArchitecture qt5.min_version 5.4 variant sqlite3 conflicts sqlcipher description {Use sqlite3 as db engine} { depends_lib-append port:sqlite3 } variant sqlcipher conflicts sqlite3 description {Use sqlcipher as db engine} { depends_lib-append port:sqlcipher configure.args-append CONFIG+=sqlcipher # use `-Dsqlcipher=1' for cmake } if (![variant_isset sqlcipher]) { default_variants +sqlite3 } pre-configure { reinplace "s|libs/qscintilla/Qt4Qt5/qscintilla.pro||g" ${worksrcpath}/sqlitebrowser.pro reinplace "s|-lqscintilla2|-lqscintilla2_qt5|g" ${worksrcpath}/src/src.pro reinplace "s|\$\$PWD/../libs/qscintilla/Qt4Qt5||g" ${worksrcpath}/src/src.pro delete ${worksrcpath}/libs/qscintilla } use_parallel_build no qt5.depends_component \ qtmacextras qt5.depends_build_component \ qttools destroot { copy "${worksrcpath}/src/DB Browser for SQLite.app" ${destroot}${applications_dir} } post-destroot { ln -s "${applications_dir}/DB Browser for SQLite.app/Contents/MacOS/DB Browser for SQLite" ${destroot}${prefix}/bin/sqlitebrowser } } platform linux { PortGroup qt5 1.0 PortGroup cmake 1.1 qt5.min_version 5.4 qt5.depends_build_component \ qttools cmake.install_rpath-prepend \ ${qt_libs_dir} ${prefix}/lib configure.args-append \ -DCMAKE_PREFIX_PATH=${prefix} \ -DQSCINTILLA_INCLUDE_DIR=${qt_includes_dir} \ -DQT_LIBRARY_DIR=${qt_libs_dir} variant sqlcipher description {Use sqlcipher as db engine} { depends_lib-append port:sqlcipher configure.args-append -Dsqlcipher=1 } 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" } }