source: trunk/dports/databases/postgresql90/Portfile @ 66422

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

make PostgreSQL next release 9.0, as it is upstream, the version is now alpha4, so this is for testing purposes only

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.1 KB
Line 
1# $Id: Portfile 66422 2010-04-12 16:56:07Z jwa@macports.org $
2
3PortSystem 1.0
4
5name                    postgresql90
6version                 9.0alpha4
7categories              databases
8platforms               darwin
9maintainers             mww jwa
10description             The most advanced open-source database available anywhere. ALPHA release!
11long_description PostgreSQL is Object-Relational Database Management System. \
12                                It supports almost all SQL constructs, including transactions, \
13                                subselects, and user-defined types and functions. Write-ahead \
14                                logging means increased performance while retaining data \
15                                integrity.
16
17homepage                http://www.postgresql.org/
18master_sites            http://ftp3.de.postgresql.org/pub/Mirrors/ftp.postgresql.org/source/${version}/ \
19                        postgresql:source/${version}/
20distname                postgresql-${version}
21
22checksums           md5     4457bcbef7615dbb5096270ffde495f8 \
23                    sha1    c4ffc38bdfe6adcb0c939222603ff9417ed3c72f \
24                    rmd160  5772c1a889ea2d1729b5985f9d20e51716183974
25
26use_bzip2               yes
27
28depends_lib             port:readline port:openssl port:zlib port:libxml2 port:libxslt port:ossp-uuid
29depends_build           port:bison
30
31worksrcdir              postgresql-${version}
32
33set libdir              ${prefix}/lib/${name}
34configure.args  --sysconfdir=${prefix}/etc/${name} \
35                                --bindir=${libdir}/bin \
36                                --libdir=${libdir} \
37                                --includedir=${prefix}/include/${name} \
38                                --datadir=${prefix}/share/${name} \
39                                --mandir=${prefix}/share/man \
40                                --with-includes=${prefix}/include \
41                                --with-libraries=${prefix}/lib \
42                                --with-openssl \
43                                --with-bonjour \
44                                --with-readline \
45                                --with-zlib \
46                                --with-libxml \
47                                --with-libxslt \
48                                --enable-thread-safety \
49                                --enable-integer-datetimes \
50                                --with-ossp-uuid
51configure.cppflags-append       -I${prefix}/include/ossp
52
53build.type              gnu
54build.target
55
56test.run                yes
57test.target             check
58
59livecheck.type  regex
60livecheck.url   ${homepage}
61livecheck.regex (9\\.0\\.\[.0-9\]+)
62
63set contribs    "adminpack dblink fuzzystrmatch lo uuid-ossp pg_buffercache pg_trgm pgcrypto tsearch2 vacuumlo xml2"
64
65post-build {
66        foreach contrib ${contribs} {
67                system "cd ${worksrcpath}/contrib/${contrib}/ && ${build.cmd}"
68        }
69}
70
71post-destroot {
72        foreach contrib ${contribs} {
73                system "echo contrib: \"${contrib}\""
74                system "cd ${worksrcpath}/contrib/${contrib}/ && \
75                        ${destroot.cmd} install ${destroot.destdir} && touch DONE"
76        }
77        system "cd ${destroot}${prefix}/bin && ln -sf ${libdir}/bin/psql psql90"
78        file delete -force ${destroot}${prefix}/share/doc/postgresql \
79                ${destroot}${prefix}/share/man
80}
81
82variant python description {add support for python} {
83        depends_lib-append              port:python26
84        configure.args-append   --with-python
85        configure.env-append    PYTHON=${prefix}/bin/python2.6
86}
87
88variant krb5 description {add support for Kerberos 5 authentication} {
89        configure.args-append   --with-krb5
90}
91
92variant perl description {add Perl support} {
93        depends_lib-append                      bin:perl:perl5
94        configure.args-append           --with-perl
95}
96
97variant tcl description {add Tcl support} {
98        depends_lib-append                      port:tcl
99        configure.args-append           --with-tcl --with-tclconfig=${prefix}/lib
100        configure.env-append            TCLSH=${prefix}/bin/tclsh
101}
102
103post-install {
104    ui_msg "\nTo use the postgresql server, install the ${name}-server port"
105}
106
Note: See TracBrowser for help on using the repository browser.