source: trunk/dports/databases/unixODBC/Portfile

Last change on this file was 131575, checked in by pixilla@…, 2 years ago

databases/unixODBC:

  • Update version to 2.3.2. Closes #43562, maintainer timeout.
  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.6 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 131575 2015-01-14 22:28:09Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                unixODBC
7conflicts           libiodbc virtuoso virtuoso-7
8version             2.3.2
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  023122427bd8bdabdbfddf727d16210bb32c60f3 \
36                    sha256  9c3459742f25df5aa3c10a61429bde51a6d4f11552c03095f1d33d7eb02b5c9a
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.