source: trunk/dports/lang/qore-pgsql-module/Portfile

Last change on this file was 149324, checked in by davidnichols@…, 6 months ago

qore-pgsql-module: updated release to 2.4, added support for new postgresql versions, updated default to postgresql95

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 4.4 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 149324 2016-06-11 07:44:46Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                qore-pgsql-module
7version             2.4
8categories          lang
9license             LGPL-2.1
10maintainers         davidnichols pvanek
11description         PostgreSQL module for Qore
12long_description    Module allowing communication with PostgreSQL DBs from the Qore Programming Language
13use_bzip2           yes
14homepage            http://qore.org
15platforms           darwin
16master_sites        https://github.com/qorelanguage/module-pgsql/releases/download/v${version}
17
18checksums           md5 72ebf879ae0b2fed8fc760bbc22547fb \
19                    sha1 f6cd34f84e8fdeb567b3107e79d1d7a6cf34c7b8 \
20                    rmd160 70164da5f1c79548a1f295515349ddb65fc0f2bd
21
22variant postgresql83 conflicts postgresql84 postgresql90 postgresql91 postgresql92 postgresql93 postgresql94 postgresql95 postgresql96 description {Enable PostgreSQL Driver version 8.3} {}
23variant postgresql84 conflicts postgresql83 postgresql90 postgresql91 postgresql92 postgresql93 postgresql94 postgresql95 postgresql96 description {Enable PostgreSQL Driver version 8.4} {}
24variant postgresql90 conflicts postgresql83 postgresql84 postgresql91 postgresql92 postgresql93 postgresql94 postgresql95 postgresql96 description {Enable PostgreSQL Driver version 9.0} {}
25variant postgresql91 conflicts postgresql83 postgresql84 postgresql90 postgresql92 postgresql93 postgresql94 postgresql95 postgresql96 description {Enable PostgreSQL Driver version 9.1} {}
26variant postgresql92 conflicts postgresql83 postgresql84 postgresql90 postgresql91 postgresql93 postgresql94 postgresql95 postgresql96 description {Enable PostgreSQL Driver version 9.2} {}
27variant postgresql93 conflicts postgresql83 postgresql84 postgresql90 postgresql91 postgresql92 postgresql94 postgresql95 postgresql96 description {Enable PostgreSQL Driver version 9.3} {}
28variant postgresql94 conflicts postgresql83 postgresql84 postgresql90 postgresql91 postgresql92 postgresql93 postgresql95 postgresql96 description {Enable PostgreSQL Driver version 9.4} {}
29variant postgresql95 conflicts postgresql83 postgresql84 postgresql90 postgresql91 postgresql92 postgresql93 postgresql94 postgresql96 description {Enable PostgreSQL Driver version 9.5} {}
30variant postgresql96 conflicts postgresql83 postgresql84 postgresql90 postgresql91 postgresql92 postgresql93 postgresql94 postgresql95 description {Enable PostgreSQL Driver version 9.6} {}
31
32variant psql83 requires postgresql83 description {Legacy compatibility variant} {}
33variant psql84 requires postgresql84 description {Legacy compatibility variant} {}
34variant psql90 requires postgresql90 description {Legacy compatibility variant} {}
35variant psql91 requires postgresql91 description {Legacy compatibility variant} {}
36variant psql92 requires postgresql92 description {Legacy compatibility variant} {}
37variant psql93 requires postgresql93 description {Legacy compatibility variant} {}
38
39if {![variant_isset postgresql83] && ![variant_isset postgresql84] && ![variant_isset postgresql90] && ![variant_isset postgresql91] && ![variant_isset postgresql92] && ![variant_isset postgresql93] && ![variant_isset postgresql93] && ![variant_isset postgresql94] && ![variant_isset postgresql96]} {
40    default_variants +postgresql95
41}
42
43if {[variant_isset postgresql83]} {
44    set postgresql_version "83"
45} elseif {[variant_isset postgresql84]} {
46    set postgresql_version "84"
47} elseif {[variant_isset postgresql90]} {
48    set postgresql_version "90"
49} elseif {[variant_isset postgresql91]} {
50    set postgresql_version "91"
51} elseif {[variant_isset postgresql92]} {
52    set postgresql_version "92"
53} elseif {[variant_isset postgresql93]} {
54    set postgresql_version "93"
55} elseif {[variant_isset postgresql94]} {
56    set postgresql_version "94"
57} elseif {[variant_isset postgresql95]} {
58    set postgresql_version "95"
59} elseif {[variant_isset postgresql96]} {
60    set postgresql_version "96"
61}
62
63depends_lib         port:qore \
64                    port:postgresql${postgresql_version}
65
66set postgresql_tmp ${workpath}/postgresql
67
68post-extract {
69    file mkdir ${postgresql_tmp}
70    ln -s ${prefix}/include/postgresql${postgresql_version} ${postgresql_tmp}/include
71    ln -s ${prefix}/lib/postgresql${postgresql_version} ${postgresql_tmp}/lib
72}
73
74configure.args      --disable-debug \
75                    --with-pgsql=${postgresql_tmp}
Note: See TracBrowser for help on using the repository browser.