[rkward] macports: experimental attempt to clean up the bundle installation

m.eik michalke null at kde.org
Thu Apr 5 16:53:30 UTC 2018


Git commit 17649e8f7b4b0a17370fdc07543e03a8291e5b01 by m.eik michalke.
Committed on 05/04/2018 at 16:52.
Pushed by meikm into branch 'master'.

experimental attempt to clean up the bundle installation

M  +2    -0    macports/kf5/kf5-rkward-binary/Portfile
A  +6    -0    macports/postflight

https://commits.kde.org/rkward/17649e8f7b4b0a17370fdc07543e03a8291e5b01

diff --git a/macports/kf5/kf5-rkward-binary/Portfile b/macports/kf5/kf5-rkward-binary/Portfile
index abcf0e92..30bd5501 100755
--- a/macports/kf5/kf5-rkward-binary/Portfile
+++ b/macports/kf5/kf5-rkward-binary/Portfile
@@ -129,5 +129,7 @@ post-destroot {
 
 pre-pkg {
         file copy -force -- ${worksrcpath}/macports/postinstall ${package.scripts}/postinstall
+        file copy -force -- ${worksrcpath}/macports/postflight ${package.scripts}/postflight
         file attributes ${package.scripts}/postinstall -permissions 0755
+        file attributes ${package.scripts}/postflight -permissions 0755
 }
diff --git a/macports/postflight b/macports/postflight
new file mode 100755
index 00000000..cc3958a4
--- /dev/null
+++ b/macports/postflight
@@ -0,0 +1,6 @@
+#!/bin/sh
+if [ -d "$3/Applications/RKWard/rkward.app" ] ; then
+  # manually move the actual RKWard app from its subfolder to Applications
+  mv "$3/Applications/RKWard/rkward.app" "$3/Applications/rkward.app" && rm -rf "$3/Applications/RKWard"
+fi
+exit 0



More information about the rkward-tracker mailing list