source: trunk/dports/databases/mysql-connector-odbc/Portfile

Last change on this file was 83385, checked in by dports@…, 6 years ago

standardize some license formatting issues:

  • use - to indicate version, not v, e.g. GPL-2 not GPLv2
  • use lists for multiple options, e.g. {Artistic GPL}
  • perl license is {Artistic GPL}
  • Python license is PSF
  • call the NCSA/UIUC license NCSA
  • libpng/zlib have the same license; call it zlib
  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.1 KB
Line 
1# $Id: Portfile 83385 2011-08-31 01:52:26Z ryandesign@macports.org $
2
3PortSystem              1.0
4
5name                    mysql-connector-odbc
6version                 5.1.8
7revision                1
8set branch              [join [lrange [split ${version} .] 0 1] .]
9homepage                http://www.mysql.com/products/connector/
10categories              databases
11platforms               darwin
12maintainers             pixilla
13license                 GPL-2
14
15description \
16    The MySQL Connector/ODBC
17
18long_description \
19    The MySQL Connector/ODBC is the name for the family of MySQL ODBC drivers \
20    (previously called MyODBC drivers) that provide access to a MySQL database \
21    using the industry standard Open Database Connectivity (ODBC) API.
22
23master_sites \
24    http://mysql.mirrors.pair.com/Downloads/Connector-ODBC/${branch}/ \
25    http://mysql.he.net/Downloads/Connector-ODBC/${branch}/ \
26    http://mirrors.sunsite.dk/mysql/Downloads/Connector-ODBC/${branch}/ \
27    http://sunsite.informatik.rwth-aachen.de/mysql/Downloads/Connector-ODBC/${branch}/ \
28    http://ftp.plusline.de/mysql/Downloads/Connector-ODBC/${branch}/
29
30checksums               sha1    2272075c66712cf7a05e50eeb4520f7c504c3ae8 \
31                        rmd160  0db5c4d42c7377f7fc1fa2ad569f50f9a497511e
32
33depends_lib \
34    port:unixODBC \
35    port:mysql5
36
37configure.args \
38          --with-unixODBC=${prefix} \
39          --with-mysql-path=${prefix} \
40          --enable-shared \
41          --enable-static \
42          --enable-gui=no
43
44pre-configure {
45    reinplace "s;bin/mysql_config;bin/mysql_config5;" ${worksrcpath}/configure
46}
47
48livecheck.type          regex
49livecheck.url           http://dev.mysql.com/downloads/connector/odbc/${branch}.html
50livecheck.regex         ${name}-(${branch}.\[0-9\.\]+)
51
52notes "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"
Note: See TracBrowser for help on using the repository browser.