# -*- 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 cmake 1.1 PortGroup github 1.0 PortGroup qt5 1.0 github.setup sqlitebrowser sqlitebrowser 3.13.0 v set git-commit 5733cb7 # This line is for displaying commit in about panel only 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 1932424909f03058d274bb7bb832ff300954bb7e \ sha256 3db72b337e9977da65314e2a8557577e465e07e5d6ddf4a6576247d40487b5ab \ size 4901735 # 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 # Uses QSysInfo::buildAbi and QSysInfo::currentCpuArchitecture qt5.min_version 5.4 qt5.depends_build_component \ qttools configure.args-append \ -DBUILD_STABLE_VERSION=1 post-patch { reinplace "s|\"Unknown\"|\"${git-commit}\"|" CMakeLists.txt # fix version - check if fixed in the next version reinplace "s|3.13.99|${version}|" CMakeLists.txt system -W ${worksrcpath}/src "/usr/libexec/PlistBuddy -c \"Set :CFBundleGetInfoString ${version}\" app.plist" system -W ${worksrcpath}/src "/usr/libexec/PlistBuddy -c \"Set :CFBundleShortVersionString ${version}\" app.plist" system -W ${worksrcpath}/src "/usr/libexec/PlistBuddy -c \"Set :CFBundleVersion ${version}\" app.plist" } platform darwin { post-patch { reinplace "s|/usr/local/opt/qscintilla2/lib|${qt_libs_dir}|g" cmake/FindQScintilla.cmake reinplace "s|/usr/local/opt/qscintilla2/include|${qt_includes_dir}|g" cmake/FindQScintilla.cmake } configure.args-append \ -DQSCINTILLA_INCLUDE_DIR=${qt_includes_dir} } platform linux { 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 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 -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" } if (![variant_isset sqlcipher]) { default_variants +sqlite3 } platform darwin { destroot { set appname "DB Browser for SQLite" set contents_folder "${build.dir}/${appname}.app/Contents" set resources_folder "${contents_folder}/Resources/" # steps from ${worksrcpath}/installer/macos/notarize.sh xinstall -m 755 -d ${resources_folder} xinstall -m 644 {*}[glob ${worksrcpath}/LICENSE*] ${resources_folder} xinstall -m 644 ${worksrcpath}/installer/macos/macapp.icns ${resources_folder} system -W ${contents_folder} "/usr/libexec/PlistBuddy -c \"Set :CFBundleIconFile macapp.icns\" Info.plist" system -W ${build.dir} "/usr/bin/codesign --sign - \"${appname}.app\"" copy "${build.dir}/${appname}.app" ${destroot}${applications_dir} ln -s "${applications_dir}/${appname}.app/Contents/MacOS/${appname}" ${destroot}${prefix}/bin/${name} } }