source: trunk/dports/databases/slony1/Portfile @ 72477

Last change on this file since 72477 was 72477, checked in by jwa@…, 7 years ago

version bump to 2.0.5, changing the default to postgresql90, adding variant for postgresql84

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 4.9 KB
Line 
1# $Id: Portfile 72477 2010-10-17 18:18:02Z jwa@macports.org $
2
3PortSystem        1.0
4
5name              slony1
6version           2.0.5
7categories        databases
8platforms         darwin
9maintainers       gmail.com:wreese jwa
10description       A replication system for PostgreSQL
11long_description  Slony-I is a trigger-based master to multiple slaves replication system for PostgreSQL being developed by Jan Wieck.
12
13homepage          http://main.slony.info/
14master_sites      ${homepage}/downloads/2.0/source
15use_bzip2         yes
16
17checksums           md5     4c9922a809011dc8e55c4a8ad1ca5bff \
18                    sha1    cc285c8d5659d2389caef281829f6110fe74a392 \
19                    rmd160  7235658277ab8a7ed0ee722d52f33e766534f18b
20
21depends_lib       port:postgresql90
22
23configure.args    --with-pgconfigdir="${prefix}/lib/postgresql90/bin/" \
24    --with-pgsharedir="${prefix}/share/postgresql90/" \
25    --with-pgbindir="${prefix}/lib/postgresql90/bin/" \
26    --with-pgincludedir="${prefix}/include/postgresql90/" \
27    --with-pgincludeserverdir="${prefix}/include/postgresql90/server/" \
28    --with-pglibdir="${prefix}/lib/postgresql90/" \
29    --with-pgpkglibdir="${prefix}/lib/postgresql90/"
30
31destroot.args     -B
32
33variant postgresql82 conflicts postgresql83 postgresql84 \
34    description {support for PostgreSQL 8.2 instead of 9.0} {
35    depends_lib-delete  port:postgresql90
36    depends_lib-append  port:postgresql82
37    configure.args-delete       --with-pgconfigdir="${prefix}/lib/postgresql90/bin/"
38    configure.args-delete       --with-pgsharedir="${prefix}/share/postgresql90/"
39    configure.args-delete       --with-pgbindir="${prefix}/lib/postgresql90/bin/"
40    configure.args-delete       --with-pgincludedir="${prefix}/include/postgresql90/"
41    configure.args-delete       --with-pgincludeserverdir="${prefix}/include/postgresql90/server/"
42    configure.args-delete       --with-pglibdir="${prefix}/lib/postgresql90/"
43    configure.args-delete       --with-pgpkglibdir="${prefix}/lib/postgresql90/"
44
45    configure.args-append         --with-pgconfigdir="${prefix}/lib/postgresql82/bin/" \
46        --with-pgsharedir="${prefix}/share/postgresql82/" \
47        --with-pgbindir="${prefix}/lib/postgresql82/bin/" \
48        --with-pgincludedir="${prefix}/include/postgresql82/" \
49        --with-pgincludeserverdir="${prefix}/include/postgresql82/server/" \
50        --with-pglibdir="${prefix}/lib/postgresql82/" \
51        --with-pgpkglibdir="${prefix}/lib/postgresql82/"
52}
53
54variant postgresql83 conflicts postgresql82 postgresql84 \
55    description {support for PostgreSQL 8.3 instead of 9.0} {
56    depends_lib-delete  port:postgresql90
57    depends_lib-append  port:postgresql83
58    configure.args-delete       --with-pgconfigdir="${prefix}/lib/postgresql90/bin/"
59    configure.args-delete       --with-pgsharedir="${prefix}/share/postgresql90/"
60    configure.args-delete       --with-pgbindir="${prefix}/lib/postgresql90/bin/"
61    configure.args-delete       --with-pgincludedir="${prefix}/include/postgresql90/"
62    configure.args-delete       --with-pgincludeserverdir="${prefix}/include/postgresql90/server/"
63    configure.args-delete       --with-pglibdir="${prefix}/lib/postgresql90/"
64    configure.args-delete       --with-pgpkglibdir="${prefix}/lib/postgresql90/"
65
66    configure.args-append         --with-pgconfigdir="${prefix}/lib/postgresql83/bin/" \
67        --with-pgsharedir="${prefix}/share/postgresql83/" \
68        --with-pgbindir="${prefix}/lib/postgresql83/bin/" \
69        --with-pgincludedir="${prefix}/include/postgresql83/" \
70        --with-pgincludeserverdir="${prefix}/include/postgresql83/server/" \
71        --with-pglibdir="${prefix}/lib/postgresql83/" \
72        --with-pgpkglibdir="${prefix}/lib/postgresql83/"
73}
74
75variant postgresql84 conflicts postgresql82 postresql83 \
76    description {support for PostgreSQL 8.4 instead of 9.0} {
77    depends_lib-delete  port:postgresql90
78    depends_lib-append  port:postgresql84
79    configure.args-delete       --with-pgconfigdir="${prefix}/lib/postgresql90/bin/"
80    configure.args-delete       --with-pgsharedir="${prefix}/share/postgresql90/"
81    configure.args-delete       --with-pgbindir="${prefix}/lib/postgresql90/bin/"
82    configure.args-delete       --with-pgincludedir="${prefix}/include/postgresql90/"
83    configure.args-delete       --with-pgincludeserverdir="${prefix}/include/postgresql90/server/"
84    configure.args-delete       --with-pglibdir="${prefix}/lib/postgresql90/"
85    configure.args-delete       --with-pgpkglibdir="${prefix}/lib/postgresql90/"
86
87    configure.args-append         --with-pgconfigdir="${prefix}/lib/postgresql84/bin/" \
88        --with-pgsharedir="${prefix}/share/postgresql84/" \
89        --with-pgbindir="${prefix}/lib/postgresql84/bin/" \
90        --with-pgincludedir="${prefix}/include/postgresql84/" \
91        --with-pgincludeserverdir="${prefix}/include/postgresql84/server/" \
92        --with-pglibdir="${prefix}/lib/postgresql84/" \
93        --with-pgpkglibdir="${prefix}/lib/postgresql84/"
94}
95
96#post-destroot {
97#    foreach bin { slon slonik } {
98#       system "cd ${destroot}${prefix}/bin && ln -s ../lib/postgresql82/bin/${bin}"
99#       ln -s ${destroot}${prefix}/lib/postgresql82/bin/${bin} ${destroot}${prefix}/bin
100#    }
101#}
102
103livecheck.type  regex
104livecheck.url   ${homepage}
105livecheck.regex (2\\.\[0-9]+\\.\[0-9\]+) (\[Rr\]eleased|available)
Note: See TracBrowser for help on using the repository browser.