<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/ed1fc1eaefe8df1a0eca18caa5645f7ea74329d0">https://github.com/macports/macports-ports/commit/ed1fc1eaefe8df1a0eca18caa5645f7ea74329d0</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 ed1fc1eaefe sqlitebrowser: fix version in post-patch
</span>ed1fc1eaefe is described below
<span style='display:block; white-space:pre;color:#808000;'>commit ed1fc1eaefe8df1a0eca18caa5645f7ea74329d0
</span>Author: i0ntempest <szf1234@me.com>
AuthorDate: Wed Jul 31 15:29:46 2024 -0400
<span style='display:block; white-space:pre;color:#404040;'> sqlitebrowser: fix version in post-patch
</span>---
databases/sqlitebrowser/Portfile | 11 ++++++-----
1 file changed, 6 insertions(+), 5 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 64eff55c18d..c1dfd5d0ebe 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;'>@@ -8,7 +8,7 @@ PortGroup qt5 1.0
</span> github.setup sqlitebrowser sqlitebrowser 3.13.0 v
set git-commit 5733cb7
# This line is for displaying commit in about panel only
<span style='display:block; white-space:pre;background:#ffe0e0;'>-revision 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 1
</span>
categories databases
platforms darwin linux
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -65,6 +65,11 @@ configure.args-append \
</span>
post-patch {
reinplace "s|\"Unknown\"|\"${git-commit}\"|" CMakeLists.txt
<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;'>+ reinplace "s|3.13.99|${version}|" CMakeLists.txt
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ system -W ${worksrcpath}/src "/usr/libexec/PlistBuddy -c \"Set :CFBundleGetInfoString ${version}\" app.plist"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ system -W ${worksrcpath}/src "/usr/libexec/PlistBuddy -c \"Set :CFBundleShortVersionString ${version}\" app.plist"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ system -W ${worksrcpath}/src "/usr/libexec/PlistBuddy -c \"Set :CFBundleVersion ${version}\" app.plist"
</span> }
platform darwin {
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -114,10 +119,6 @@ platform darwin {
</span> 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"
<span style='display:block; white-space:pre;background:#ffe0e0;'>- # fix version - check if fixed in the next version
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- system -W ${contents_folder} "/usr/libexec/PlistBuddy -c \"Set :CFBundleGetInfoString ${version}\" Info.plist"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- system -W ${contents_folder} "/usr/libexec/PlistBuddy -c \"Set :CFBundleShortVersionString ${version}\" Info.plist"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- system -W ${contents_folder} "/usr/libexec/PlistBuddy -c \"Set :CFBundleVersion ${version}\" Info.plist"
</span> 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}
</pre><pre style='margin:0'>
</pre>