[120831] trunk/dports/security/ophcrack

ryandesign at macports.org ryandesign at macports.org
Sun Jun 8 22:48:58 PDT 2014


Revision: 120831
          https://trac.macports.org/changeset/120831
Author:   ryandesign at macports.org
Date:     2014-06-08 22:48:58 -0700 (Sun, 08 Jun 2014)
Log Message:
-----------
ophcrack: use a patchfile instead of just a reinplace

Modified Paths:
--------------
    trunk/dports/security/ophcrack/Portfile

Added Paths:
-----------
    trunk/dports/security/ophcrack/files/
    trunk/dports/security/ophcrack/files/patch-src-gui-tabledialog.cpp.diff

Modified: trunk/dports/security/ophcrack/Portfile
===================================================================
--- trunk/dports/security/ophcrack/Portfile	2014-06-08 19:28:08 UTC (rev 120830)
+++ trunk/dports/security/ophcrack/Portfile	2014-06-09 05:48:58 UTC (rev 120831)
@@ -43,12 +43,6 @@
     }
 }
 
-pre-build {
-    if {[variant_isset tables]} {
-        reinplace "s|QString()|QString(\"${prefix}/share/${name}/tables\")|g" ${worksrcpath}/src/gui/tabledialog.cpp
-    }
-}
-
 destroot {
     if {[variant_isset gui]} {
         xinstall -m 755 -d ${destroot}${applications_dir}
@@ -92,6 +86,12 @@
     checksums-append tables_vista_free.zip sha1 31425c6b35679df53ba67cb1cc3807501eec3ced
     
     extract.only ${distname}${extract.suffix}
+    
+    patchfiles-append patch-src-gui-tabledialog.cpp.diff
+    
+    post-patch {
+        reinplace "s|@TABLES_DIR@|${prefix}/share/${name}/tables|g" ${worksrcpath}/src/gui/tabledialog.cpp
+    }
 }
 
 livecheck.type  regex

Added: trunk/dports/security/ophcrack/files/patch-src-gui-tabledialog.cpp.diff
===================================================================
--- trunk/dports/security/ophcrack/files/patch-src-gui-tabledialog.cpp.diff	                        (rev 0)
+++ trunk/dports/security/ophcrack/files/patch-src-gui-tabledialog.cpp.diff	2014-06-09 05:48:58 UTC (rev 120831)
@@ -0,0 +1,11 @@
+--- src/gui/tabledialog.cpp.orig	2009-07-29 00:50:26.000000000 -0500
++++ src/gui/tabledialog.cpp	2014-06-08 15:33:41.000000000 -0500
+@@ -186,7 +186,7 @@
+ void TableDialog::chooseDir(void) {
+   QString path = QFileDialog::getExistingDirectory(this, 
+ 						   tr("Select the directory which contains the tables."), 
+-						   QString(), 
++						   QString("@TABLES_DIR@"), 
+ 						   QFileDialog::ShowDirsOnly);
+   
+   if (!path.isNull()) emit install(path, true, true);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140608/505f1cd2/attachment.html>


More information about the macports-changes mailing list