<pre style='margin:0'>
Zhenfu Shi (i0ntempest) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/ca056296bb90844c09479d2723b0253f200d70aa">https://github.com/macports/macports-ports/commit/ca056296bb90844c09479d2723b0253f200d70aa</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new ca056296bb9 sqlitebrowser: update to 3.13.0, refactor to cmake
</span>ca056296bb9 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit ca056296bb90844c09479d2723b0253f200d70aa
</span>Author: i0ntempest <szf1234@me.com>
AuthorDate: Tue Jul 30 01:02:37 2024 -0400
<span style='display:block; white-space:pre;color:#404040;'> sqlitebrowser: update to 3.13.0, refactor to cmake
</span>---
databases/sqlitebrowser/Portfile | 126 +++++++++++++++++++--------------------
1 file changed, 62 insertions(+), 64 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/databases/sqlitebrowser/Portfile b/databases/sqlitebrowser/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 8e300ebe3be..64eff55c18d 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/databases/sqlitebrowser/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/databases/sqlitebrowser/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,10 +1,14 @@
</span> # -*- 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
<span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup cmake 1.1
</span> PortGroup github 1.0
<span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup qt5 1.0
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>-github.setup sqlitebrowser sqlitebrowser 3.12.2 v
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-revision 1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+github.setup sqlitebrowser sqlitebrowser 3.13.0 v
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set git-commit 5733cb7
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# This line is for displaying commit in about panel only
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 0
</span>
categories databases
platforms darwin linux
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -33,9 +37,9 @@ long_description SQLite Database Browser is a visual tool used to create, des
</span>
homepage http://sqlitebrowser.org
<span style='display:block; white-space:pre;background:#ffe0e0;'>-checksums rmd160 9c7aa0ef33b114e7db7f52e8d9c011dc63e1009a \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- sha256 7e1b2971c4954b60ff64d69325264edba52a1973d7ac81eb6058340a18f172ee \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- size 3990737
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums rmd160 1932424909f03058d274bb7bb832ff300954bb7e \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 3db72b337e9977da65314e2a8557577e465e07e5d6ddf4a6576247d40487b5ab \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 4901735
</span>
# Exclude pre-release candidates
github.livecheck.regex \
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -47,81 +51,75 @@ depends_lib-append port:qscintilla-qt5
</span>
patchfiles-append 0001-Changes-for-MacPorts.patch
<span style='display:block; white-space:pre;background:#ffe0e0;'>-compiler.cxx_standard 2011
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+compiler.cxx_standard \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 2011
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>-platform darwin {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- PortGroup qmake5 1.0
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- configure.args-append \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- CONFIG+=c++11 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- INCLUDEPATH+=${qt_includes_dir} \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- QMAKE_LIBDIR+=${qt_libs_dir}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # Workaround xcrun: error: SDK "macosx12" cannot be located
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- configure.sdk_version
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # Uses QSysInfo::buildAbi and QSysInfo::currentCpuArchitecture
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- qt5.min_version 5.4
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- variant sqlite3 conflicts sqlcipher description {Use sqlite3 as db engine} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- depends_lib-append port:sqlite3
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- variant sqlcipher conflicts sqlite3 description {Use sqlcipher as db engine} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- depends_lib-append port:sqlcipher
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- configure.args-append CONFIG+=sqlcipher
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # use `-Dsqlcipher=1' for cmake
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Uses QSysInfo::buildAbi and QSysInfo::currentCpuArchitecture
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+qt5.min_version 5.4
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>- if (![variant_isset sqlcipher]) {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- default_variants +sqlite3
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- pre-configure {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- reinplace "s|libs/qscintilla/Qt4Qt5/qscintilla.pro||g" ${worksrcpath}/sqlitebrowser.pro
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- reinplace "s|-lqscintilla2|-lqscintilla2_qt5|g" ${worksrcpath}/src/src.pro
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- reinplace "s|\$\$PWD/../libs/qscintilla/Qt4Qt5||g" ${worksrcpath}/src/src.pro
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- delete ${worksrcpath}/libs/qscintilla
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- use_parallel_build no
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+qt5.depends_build_component \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ qttools
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>- qt5.depends_component \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- qtmacextras
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- qt5.depends_build_component \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- qttools
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.args-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DBUILD_STABLE_VERSION=1
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>- destroot {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- copy "${worksrcpath}/src/DB Browser for SQLite.app" ${destroot}${applications_dir}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+post-patch {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|\"Unknown\"|\"${git-commit}\"|" CMakeLists.txt
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>- post-destroot {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ln -s "${applications_dir}/DB Browser for SQLite.app/Contents/MacOS/DB Browser for SQLite" ${destroot}${prefix}/bin/sqlitebrowser
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+platform darwin {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ post-patch {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|/usr/local/opt/qscintilla2/lib|${qt_libs_dir}|g" cmake/FindQScintilla.cmake
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|/usr/local/opt/qscintilla2/include|${qt_includes_dir}|g" cmake/FindQScintilla.cmake
</span> }
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DQSCINTILLA_INCLUDE_DIR=${qt_includes_dir}
</span> }
platform linux {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- PortGroup qt5 1.0
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- PortGroup cmake 1.1
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- qt5.min_version 5.4
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- qt5.depends_build_component \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- qttools
</span> 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}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>- variant sqlcipher description {Use sqlcipher as db engine} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- depends_lib-append port:sqlcipher
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- configure.args-append -Dsqlcipher=1
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+variant sqlite3 conflicts sqlcipher description {Use sqlite3 as db engine} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_lib-append port:sqlite3
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>- if {[info procs cmake.save_configure_cmd] ne ""} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # create a .macports-$subport-configure.cmd file containing the cmake invocation details
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # (provided by a pending update to cmake-1.1
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- cmake.save_configure_cmd "log too"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+variant sqlcipher conflicts sqlite3 description {Use sqlcipher as db engine} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_lib-append port:sqlcipher
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-append -Dsqlcipher=1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {[info procs cmake.save_configure_cmd] ne ""} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # create a .macports-$subport-configure.cmd file containing the cmake invocation details
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # (provided by a pending update to cmake-1.1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ cmake.save_configure_cmd "log too"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if (![variant_isset sqlcipher]) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ default_variants +sqlite3
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+platform darwin {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ destroot {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set appname "DB Browser for SQLite"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set contents_folder "${build.dir}/${appname}.app/Contents"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set resources_folder "${contents_folder}/Resources/"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # steps from ${worksrcpath}/installer/macos/notarize.sh
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -m 755 -d ${resources_folder}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -m 644 {*}[glob ${worksrcpath}/LICENSE*] ${resources_folder}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -m 644 ${worksrcpath}/installer/macos/macapp.icns ${resources_folder}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ system -W ${contents_folder} "/usr/libexec/PlistBuddy -c \"Set :CFBundleIconFile macapp.icns\" Info.plist"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # fix version - check if fixed in the next version
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ system -W ${contents_folder} "/usr/libexec/PlistBuddy -c \"Set :CFBundleGetInfoString ${version}\" Info.plist"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ system -W ${contents_folder} "/usr/libexec/PlistBuddy -c \"Set :CFBundleShortVersionString ${version}\" Info.plist"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ system -W ${contents_folder} "/usr/libexec/PlistBuddy -c \"Set :CFBundleVersion ${version}\" Info.plist"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ system -W ${build.dir} "/usr/bin/codesign --sign - \"${appname}.app\""
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ copy "${build.dir}/${appname}.app" ${destroot}${applications_dir}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ln -s "${applications_dir}/${appname}.app/Contents/MacOS/${appname}" ${destroot}${prefix}/bin/${name}
</span> }
}
</pre><pre style='margin:0'>
</pre>