[120294] trunk/dports/aqua/tagainijisho/Portfile

ryandesign at macports.org ryandesign at macports.org
Wed May 21 17:41:08 PDT 2014


Revision: 120294
          https://trac.macports.org/changeset/120294
Author:   ryandesign at macports.org
Date:     2014-05-21 17:41:07 -0700 (Wed, 21 May 2014)
Log Message:
-----------
tagainijisho: prevent activation error if a previous version of this port had ever been installed (#43736)

Modified Paths:
--------------
    trunk/dports/aqua/tagainijisho/Portfile

Modified: trunk/dports/aqua/tagainijisho/Portfile
===================================================================
--- trunk/dports/aqua/tagainijisho/Portfile	2014-05-22 00:26:08 UTC (rev 120293)
+++ trunk/dports/aqua/tagainijisho/Portfile	2014-05-22 00:41:07 UTC (rev 120294)
@@ -39,3 +39,14 @@
                     patch-pack-CMakeLists.txt.diff
 
 configure.pre_args  -DCMAKE_INSTALL_PREFIX=${applications_dir}
+
+pre-activate {
+    # tagainijisho before 1.0.2_0 installed this file directly, bypassing the
+    # destroot; remove it if found to prevent an activation error.
+    set filepath "${applications_dir}/Tagaini Jisho.app/Contents/Resources/qt.conf"
+    if {[file exists ${filepath}] && [registry_file_registered ${filepath}] == "0"} {
+        if {[catch {delete ${filepath}}]} {
+            return -code error "Cannot delete ${filepath}; please remove it manually"
+        }
+    }
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140521/58582ca6/attachment.html>


More information about the macports-changes mailing list