[26683] trunk/dports/databases/mysql5/Portfile

source_changes at macosforge.org source_changes at macosforge.org
Tue Jul 3 11:19:03 PDT 2007


Revision: 26683
          http://trac.macosforge.org/projects/macports/changeset/26683
Author:   jmpp at macports.org
Date:     2007-07-03 11:19:02 -0700 (Tue, 03 Jul 2007)

Log Message:
-----------

Rework the post-destroot stage (you only need to cd into the dir once, not in every iteration of the loop)
and get rid of unnecessary system calls. Also while at it, enable building of the documentation, it adds
no extra deps and the more the better, always! (as long, of course, as it's good quality ;-).

Modified Paths:
--------------
    trunk/dports/databases/mysql5/Portfile

Modified: trunk/dports/databases/mysql5/Portfile
===================================================================
--- trunk/dports/databases/mysql5/Portfile	2007-07-03 17:42:36 UTC (rev 26682)
+++ trunk/dports/databases/mysql5/Portfile	2007-07-03 18:19:02 UTC (rev 26683)
@@ -47,10 +47,14 @@
 				--with-extra-charsets=complex \
 				--with-unix-socket-path=${prefix}/var/run/${name}/mysqld.sock \
 				--with-mysqld-user=${mysqluser} \
-				--without-docs \
 				--without-bench \
 				--enable-thread-safe-client
 
+
+#				--without-docs \
+
+
+
 platform darwin 8 {
 	configure.env	CC=/usr/bin/gcc-4.0 CPP=/usr/bin/cpp-4.0 CXX=/usr/bin/g++-4.0
 }
@@ -86,11 +90,12 @@
 }
 
 post-destroot {
-	system "rm -rf ${destroot}${prefix}/mysql-test/"
+        delete ${destroot}${prefix}/mysql-test
 	
 	# Symlink mysql binaries into bin directory, with a 5 appended to the name
+        cd ${destroot}${prefix}/bin
 	foreach f [glob -tails -directory ${destroot}${prefix}/lib/${name}/bin my*] {
-		system "cd ${destroot}${prefix}/bin && ln -sf ../lib/${name}/bin/${f} ${f}5"
+                ln -sf ../lib/${name}/bin/${f}5
 	}
 }
 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070703/6521181b/attachment.html


More information about the macports-changes mailing list