Ticket #27286: patch-Portfile.diff
File patch-Portfile.diff, 1.3 KB (added by pixilla (Bradley Giesbrecht), 14 years ago) |
---|
-
Portfile
4 4 5 5 name mysql-connector-odbc 6 6 version 5.1.8 7 revision 1 7 8 set branch [join [lrange [split ${version} .] 0 1] .] 8 9 homepage http://www.mysql.com/products/connector/ 9 10 categories databases … … 36 37 configure.args \ 37 38 --with-unixODBC=${prefix} \ 38 39 --with-mysql-path=${prefix} \ 39 --disable-shared \ 40 --enable-shared \ 41 --enable-static \ 40 42 --enable-gui=no 41 43 42 44 pre-configure { … … 46 48 livecheck.type regex 47 49 livecheck.url http://dev.mysql.com/downloads/connector/odbc/${branch}.html 48 50 livecheck.regex ${name}-(${branch}.\[0-9\.\]+) 51 52 notes "To test ${name} 53 ${prefix}/etc/odbcinst.ini 54 \[MySQL\] 55 Description = ODBC for MySQL 56 Driver = ${prefix}/lib/libmyodbc5.so 57 FileUsage = 1 58 59 ${prefix}/etc/odbc.ini 60 \[MySQL-test\] 61 Description = MySQL database test 62 Driver = MySQL 63 Server = localhost 64 Database = test 65 Port = 3306 66 67 \$ isql MySQL-test test"