source: trunk/dports/perl/p5-dbd-pg/Portfile

Last change on this file was 154393, checked in by mojca@…, 9 months ago

p5-*: remove subports for perl5.22 (#52081)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 7.0 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 154393 2016-10-28 22:10:07Z ryandesign@macports.org $
3
4# This comment was inserted on 20160713 to force reindexing of
5# this port after the default homepage definition in the perl5
6# PortGroup was changed to use metacpan.org (r150080).
7# Reindexing is necessary for the new definition to take effect.
8# This comment may be removed in subsequent updates of this port.
9
10PortSystem          1.0
11PortGroup           perl5 1.0
12
13perl5.branches      5.24
14perl5.setup         DBD-Pg 3.5.3
15license             {Artistic-1 GPL}
16categories          perl databases
17maintainers         nomaintainer
18description         Perl DBI module to provide access to PostgreSQL databases
19long_description    DBD::Pg is a Perl module which works with the DBI \
20                    module to provide access to PostgreSQL databases
21
22platforms           darwin
23
24checksums           rmd160  fa4b3336ecafc9802239ac98747d95784c179298 \
25                    sha256  7e98a9b975256a4733db1c0e974cad5ad5cb821489323e395ed97bd058e0a90e
26
27if {${perl5.major} ne ""} {
28    depends_lib-append \
29                    port:p${perl5.major}-dbi \
30                    port:p${perl5.major}-module-signature \
31                    port:p${perl5.major}-test-yaml-meta \
32                    port:p${perl5.major}-test-warn \
33                    port:p${perl5.major}-version
34
35variant postgresql7 conflicts postgresql80 postgresql81 postgresql82 postgresql83 postgresql84 postgresql90 postgresql91 postgresql92 postgresql93 postgresql94 description {build with postgresql7 port} {
36    depends_lib-append      port:postgresql7
37
38    configure.env           PATH=${prefix}/lib/pgsql7/bin:$env(PATH) \
39                            POSTGRES_INCLUDE="${prefix}/include/pgsql7" \
40                            POSTGRES_LIB="${prefix}/lib/pgsql7 -lssl"
41}
42
43variant postgresql80 conflicts postgresql7 postgresql81 postgresql82 postgresql83 postgresql84 postgresql90 postgresql91 postgresql92 postgresql93 postgresql94 description {build with postgresql80 port} {
44    depends_lib-append      port:postgresql80
45
46    configure.env           PATH=${prefix}/lib/pgsql8/bin:$env(PATH) \
47                            POSTGRES_INCLUDE="${prefix}/include/pgsql8" \
48                            POSTGRES_LIB="${prefix}/lib/pgsql8 -lssl"
49}
50
51variant postgresql81 conflicts postgresql7 postgresql80 postgresql82 postgresql83 postgresql84 postgresql90 postgresql91 postgresql92 postgresql93 postgresql94 description {build with postgresql81 port} {
52    depends_lib-append      port:postgresql81
53
54    configure.env           PATH=${prefix}/lib/postgresql81/bin:$env(PATH) \
55                            POSTGRES_INCLUDE="${prefix}/include/postgresql81" \
56                            POSTGRES_LIB="${prefix}/lib/postgresql81 -lssl"
57}
58
59variant postgresql82 conflicts postgresql7 postgresql80 postgresql81 postgresql83 postgresql84 postgresql90 postgresql91 postgresql92 postgresql93 postgresql94 description {build with postgresql82 port} {
60    depends_lib-append      port:postgresql82
61
62    configure.env           PATH=${prefix}/lib/postgresql82/bin:$env(PATH) \
63                            POSTGRES_INCLUDE="${prefix}/include/postgresql82" \
64                            POSTGRES_LIB="${prefix}/lib/postgresql82 -lssl"
65}
66
67variant postgresql83 conflicts postgresql7 postgresql80 postgresql81 postgresql82 postgresql84 postgresql90 postgresql91 postgresql92 postgresql93 postgresql94 description {build with postgresql83 port} {
68    depends_lib-append      port:postgresql83
69
70    configure.env           PATH=${prefix}/lib/postgresql83/bin:$env(PATH) \
71                            POSTGRES_INCLUDE="${prefix}/include/postgresql83" \
72                            POSTGRES_LIB="${prefix}/lib/postgresql83 -lssl"
73}
74
75variant postgresql84 conflicts postgresql7 postgresql80 postgresql81 postgresql82 postgresql83 postgresql90 postgresql91 postgresql92 postgresql93 postgresql94 description {build with postgresql84 port} {
76    depends_lib-append      port:postgresql84
77
78    configure.env           PATH=${prefix}/lib/postgresql84/bin:$env(PATH) \
79                            POSTGRES_INCLUDE="${prefix}/include/postgresql84" \
80                            POSTGRES_LIB="${prefix}/lib/postgresql84 -lssl"
81}
82
83variant postgresql90 conflicts postgresql7 postgresql80 postgresql81 postgresql82 postgresql83 postgresql84 postgresql91 postgresql92 postgresql93 postgresql94 description {build with postgresql90 port} {
84    depends_lib-append      port:postgresql90
85
86    configure.env           PATH=${prefix}/lib/postgresql90/bin:$env(PATH) \
87                            POSTGRES_INCLUDE="${prefix}/include/postgresql90" \
88                            POSTGRES_LIB="${prefix}/lib/postgresql90 -lssl"
89}
90
91variant postgresql91 conflicts postgresql7 postgresql80 postgresql81 postgresql82 postgresql83 postgresql84 postgresql90 postgresql92 postgresql93 postgresql94 description {build with postgresql91 port} {
92    depends_lib-append      port:postgresql91
93
94    configure.env           PATH=${prefix}/lib/postgresql91/bin:$env(PATH) \
95                            POSTGRES_INCLUDE="${prefix}/include/postgresql91" \
96                            POSTGRES_LIB="${prefix}/lib/postgresql91 -lssl"
97}
98
99variant postgresql92 conflicts postgresql7 postgresql80 postgresql81 postgresql82 postgresql83 postgresql84 postgresql90 postgresql91 postgresql93 postgresql94 description {build with postgresql92 port} {
100    depends_lib-append      port:postgresql92
101
102    configure.env           PATH=${prefix}/lib/postgresql92/bin:$env(PATH) \
103                            POSTGRES_INCLUDE="${prefix}/include/postgresql92" \
104                            POSTGRES_LIB="${prefix}/lib/postgresql92 -lssl"
105}
106
107variant postgresql93 conflicts postgresql7 postgresql80 postgresql81 postgresql82 postgresql83 postgresql84 postgresql90 postgresql91 postgresql92 postgresql94 description {build with postgresql93 port} {
108    depends_lib-append      port:postgresql93
109
110    configure.env           PATH=${prefix}/lib/postgresql93/bin:$env(PATH) \
111                            POSTGRES_INCLUDE="${prefix}/include/postgresql93" \
112                            POSTGRES_LIB="${prefix}/lib/postgresql93 -lssl"
113}
114
115variant postgresql94 conflicts postgresql7 postgresql80 postgresql81 postgresql82 postgresql83 postgresql84 postgresql90 postgresql91 postgresql92 postgresql93 description {build with postgresql94 port} {
116    depends_lib-append      port:postgresql94
117
118    configure.env           PATH=${prefix}/lib/postgresql94/bin:$env(PATH) \
119                            POSTGRES_INCLUDE="${prefix}/include/postgresql94" \
120                            POSTGRES_LIB="${prefix}/lib/postgresql94 -lssl"
121}
122
123# Default to latest release
124if {![variant_isset postgresql7] && ![variant_isset postgresql80] && ![variant_isset postgresql81] && ![variant_isset postgresql82] && ![variant_isset postgresql83] && ![variant_isset postgresql84] && ![variant_isset postgresql90] && ![variant_isset postgresql91] && ![variant_isset postgresql92] && ![variant_isset postgresql93] && ![variant_isset postgresql94]} {
125    default_variants        +postgresql94
126}
127}
Note: See TracBrowser for help on using the repository browser.