source: trunk/dports/databases/unixODBC/Portfile @ 91297

Last change on this file since 91297 was 91297, checked in by ryandesign@…, 5 years ago

unixODBC: update to 2.3.1; see #33542 (maintainer timeout)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.5 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 91297 2012-03-28 14:36:39Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                unixODBC
7conflicts           libiodbc virtuoso
8version             2.3.1
9categories          databases
10platforms           darwin
11maintainers         cotsworth.com:simon
12license             LGPL-2+
13description         Provides ODBC 3 connectivity for Unix
14
15long_description    The unixODBC project provides UNIX applications with the \
16                    same ODBC 3.51 API and facilities available under Windows. \
17                    It provides a Driver Manager that supports the full ODBC \
18                    API and performs the ODBC 3 to ODBC 2 translations with \
19                    UNICODE to ANSI conversion. It also includes a set of \
20                    graphical utilities that allow users to specify \
21                    connections to DBMSes to be used by applications, a \
22                    collection of ODBC drivers including a simple text based \
23                    driver, an NNTP driver, a Postgres driver and others, and \
24                    a selection of templates and libraries that to aid in the \
25                    construction of ODBC drivers. It works with MySQL, \
26                    Postgres, StarOffice, Applixware, iHTML, PHP, Perl \
27                    DBD::ODBC, Paradox 9, and many other applications and \
28                    drivers. Connection pooling is also provided to increase \
29                    performance with applications such as PHP.
30
31homepage            http://www.unixodbc.org/
32master_sites        ${homepage} \
33                    ftp://ftp.unixodbc.org/pub/unixODBC/
34
35checksums           rmd160  231120ed384d799db37a165cadeead8283c376c4 \
36                    sha256  1f5be3edecff9e31072ef738ea1d8019594c4f0c2e3ab427e6eef153491db6a2
37
38depends_lib         port:libiconv port:libtool port:readline
39
40configure.args      --enable-static --enable-shared \
41                    --with-libiconv-prefix=${prefix}
42
43use_parallel_build  yes
44
45post-destroot {
46    # DOCS
47    xinstall -d -m 0755 ${destroot}${prefix}/share/doc/${name}
48   
49    foreach doc [glob ${worksrcpath}/\[A-Z\]*\[A-Z\]\[A-Z\]\[A-Z\] ${worksrcpath}/doc/*.\[a-z\]\[a-z\]\[a-z\]*] {
50        if {[string match "*.html" $doc]} {
51            reinplace "s|${homepage}doc/||g" $doc
52        }
53       
54        xinstall -m 0644 $doc ${destroot}${prefix}/share/doc/${name}
55    }
56   
57    foreach dir {AdministratorManual lst ProgrammerManual ProgrammerManual/Tutorial UserManual} {
58        xinstall -d -m 0755 ${destroot}${prefix}/share/doc/${name}/$dir
59       
60        foreach file [glob ${worksrcpath}/doc/$dir/*.\[a-z\]\[a-z\]\[a-z\]*] {
61            if {[string match "*.html" $file]} {
62                reinplace "s|${homepage}doc/||g" $file
63            }
64           
65            xinstall -m 0644 $file ${destroot}${prefix}/share/doc/${name}/$dir
66        }
67    }
68   
69    # TEMPLATES
70    xinstall -d -m 0755 ${destroot}${prefix}/share/${name}
71   
72    foreach template [glob ${portpath}/${filesdir}/*.template] {
73        xinstall -m 0644 $template ${destroot}${prefix}/share/${name}
74    }
75   
76    foreach driver [glob ${destroot}${prefix}/share/${name}/*.driver.*] {
77        reinplace "s|__PREFIX__|${prefix}|g" $driver
78    }
79   
80    # CONFIG
81    foreach ini [glob ${destroot}${prefix}/etc/*.ini] {
82        system "mv $ini $ini.dist"
83    }
84   
85    destroot.keepdirs ${destroot}${prefix}/etc/ODBCDataSources
86}
87
88livecheck.type  regex
89livecheck.url   ${homepage}download.html
90livecheck.regex ${name}-(\\d+(\\.\\d+)*).tar.gz
Note: See TracBrowser for help on using the repository browser.