Revision
79799
Author
pixilla@macports.org
Date
2011-06-26 08:53:38 -0700 (Sun, 26 Jun 2011)

Log Message

databases/mysql-connector-odbc: Fix broken and add notes for testing. Closes #27286

Modified Paths

Diff

Modified: trunk/dports/databases/mysql-connector-odbc/Portfile (79798 => 79799)


--- trunk/dports/databases/mysql-connector-odbc/Portfile	2011-06-26 11:37:30 UTC (rev 79798)
+++ trunk/dports/databases/mysql-connector-odbc/Portfile	2011-06-26 15:53:38 UTC (rev 79799)
@@ -4,6 +4,7 @@
 
 name                    mysql-connector-odbc
 version                 5.1.8
+revision                1
 set branch              [join [lrange [split ${version} .] 0 1] .]
 homepage                http://www.mysql.com/products/connector/
 categories              databases
@@ -36,7 +37,8 @@
 configure.args \
           --with-unixODBC=${prefix} \
           --with-mysql-path=${prefix} \
-          --disable-shared \
+          --enable-shared \
+          --enable-static \
           --enable-gui=no
 
 pre-configure {
@@ -46,3 +48,20 @@
 livecheck.type          regex
 livecheck.url           http://dev.mysql.com/downloads/connector/odbc/${branch}.html
 livecheck.regex         ${name}-(${branch}.\[0-9\.\]+)
+
+notes "To test ${name}
+  ${prefix}/etc/odbcinst.ini 
+  \[MySQL\] 
+  Description     = ODBC for MySQL 
+  Driver          = ${prefix}/lib/libmyodbc5.so 
+  FileUsage       = 1
+  
+  ${prefix}/etc/odbc.ini 
+  \[MySQL-test\] 
+  Description     = MySQL database test 
+  Driver          = MySQL 
+  Server          = localhost 
+  Database        = test 
+  Port            = 3306
+  
+  \$ isql MySQL-test test"