source: trunk/dports/databases/postgresql82/Portfile @ 39615

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

only fixed livecheck

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.6 KB
Line 
1# $Id: Portfile 39615 2008-08-26 16:53:07Z jwa@macports.org $
2
3PortSystem 1.0
4
5name                    postgresql82
6version                 8.2.9
7categories              databases
8platforms               darwin
9maintainers             mww jwa
10description             The most advanced open-source database available anywhere
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            postgresql:source/v${version}
19distname                postgresql-${version}
20
21checksums               md5 579506cf91881f6ede67e3be98a47c37 \
22                        sha1 aeaf0487d031c56518af002f76f779c23baf6391 \
23                        rmd160 00fe295d928e77a2dff136795ba846ae3ac08569
24use_bzip2               yes
25
26depends_lib             port:readline port:openssl port:zlib port:libxml2 port:libxslt
27depends_build           port:bison
28
29set libdir              ${prefix}/lib/${name}
30configure.args  --sysconfdir=${prefix}/etc/${name} \
31                                --bindir=${libdir}/bin \
32                                --libdir=${libdir} \
33                                --includedir=${prefix}/include/${name} \
34                                --datadir=${prefix}/share/${name} \
35                                --mandir=${prefix}/share/man \
36                                --without-docdir \
37                                --with-includes=${prefix}/include \
38                                --with-libraries=${prefix}/lib \
39                                --with-openssl \
40                                --with-bonjour \
41                                --with-readline \
42                                --with-zlib \
43                                --enable-thread-safety \
44                                --enable-integer-datetimes
45
46build.type              gnu
47build.target
48
49test.run                yes
50test.target             check
51
52livecheck.check regex
53livecheck.url   ${homepage}
54livecheck.regex (8.2.\[0-9\]+)
55
56set contribs    "adminpack dblink fuzzystrmatch lo pg_buffercache pg_trgm pgcrypto tsearch2 vacuumlo xml2"
57
58post-build {
59        foreach contrib ${contribs} {
60                system "cd ${worksrcpath}/contrib/${contrib}/ && ${build.cmd}"
61        }
62}
63
64post-destroot {
65        foreach contrib ${contribs} {
66                system "echo contrib: \"${contrib}\""
67                system "cd ${worksrcpath}/contrib/${contrib}/ && \
68                        ${build.cmd} install ${destroot.destdir} && touch DONE"
69        }
70        system "cd ${destroot}${prefix}/bin && ln -sf ${libdir}/bin/psql psql82"
71        file delete -force ${destroot}${prefix}/share/doc/${name} \
72                ${destroot}${prefix}/share/man
73}
74
75variant python description {add support for python} {
76        depends_lib-append              port:python25
77        configure.args-append   --with-python
78        configure.env-append    PYTHON=${prefix}/bin/python2.5
79}
80
81variant krb5 description {add support for Kerberos 5 authentication} {
82        configure.args-append   --with-krb5
83}
84
85variant perl description {add Perl support} {
86        depends_lib-append                      bin:perl:perl5.8
87        configure.args-append           --with-perl
88}
89
90post-install {
91        ui_msg "\nTo use the postgresql server, install the postgresql82-server port"
92}
93
Note: See TracBrowser for help on using the repository browser.