Permalink
Fetching contributors…
Cannot retrieve contributors at this time
110 lines (89 sloc) 3 KB
PortSystem 1.0
name postgresql80
version 8.0.26
revision 2
categories databases
platforms darwin
maintainers nomaintainer
license Permissive
description The most advanced open-source database available anywhere
long_description PostgreSQL is Object-Relational Database Management System. \
It supports almost all SQL constructs, including transactions, \
subselects, and user-defined types and functions. Write-ahead \
logging means increased performance while retaining data \
integrity.
homepage https://www.postgresql.org/
master_sites http://ftp.de.postgresql.org/mirror/postgresql//source/v${version} \
postgresql:source/v${version}
distname postgresql-${version}
checksums md5 6ea1097fd4a57102ec023bc5cca7a35e \
sha1 27e0bd4661bc5f2b0f589f721cfbd4eddbb3b4cc \
rmd160 e75c19fa0059929c89a18403a546c145698b2fe8
use_bzip2 yes
depends_lib port:readline path:lib/libssl.dylib:openssl port:zlib
depends_build port:bison
patchfiles src_pl_plpython_Makefile.patch
set libdir ${prefix}/lib/${name}
configure.args --sysconfdir=${prefix}/etc/${name} \
--bindir=${libdir}/bin \
--libdir=${libdir} \
--includedir=${prefix}/include/${name} \
--datadir=${prefix}/share/${name} \
--mandir=${prefix}/share/man \
--with-docdir=${prefix}/share/doc/${name} \
--with-includes=${prefix}/include \
--with-libraries=${prefix}/lib \
--with-openssl \
--with-rendezvous \
--with-readline \
--with-zlib \
--enable-thread-safety \
--enable-integer-datetimes \
--enable-multibyte \
--enable-unicode
build.type gnu
build.target
test.run yes
test.target check
livecheck.type none
livecheck.url ${homepage}
livecheck.regex (8.0.\[0-9\]+)
platform darwin {
if {${os.major} >= 13} {
configure.args-replace --with-rendezvous --without-rendezvous
}
}
set contribs "fulltextindex fuzzystrmatch pg_trgm tsearch2 vacuumlo"
post-build {
foreach contrib ${contribs} {
system "cd ${worksrcpath}/contrib/${contrib}/ && ${build.cmd}"
}
}
post-destroot {
foreach contrib ${contribs} {
system "echo contrib: \"${contrib}\""
system "cd ${worksrcpath}/contrib/${contrib}/ && \
${build.cmd} install ${destroot.destdir} && touch DONE"
}
system "cd ${destroot}${prefix}/bin && ln -sf ${libdir}/bin/psql psql8"
file delete -force ${destroot}${prefix}/share/doc/${name} \
${destroot}${prefix}/share/man
}
variant python description {add support for python} {
depends_lib-append port:python26
configure.args-append --with-python
configure.python ${prefix}/bin/python2.6
}
variant krb5 description {add support for Kerberos 5 authentication} {
# depends_lib-append bin:kerberos:kerberos5
configure.args-append --with-krb5
}
variant perl description {add Perl support} {
depends_lib-append bin:perl:perl5
configure.args-append --with-perl
}
notes "
To use the postgresql server, install the postgresql80-server port.\
Also note that this is the last upgrade to 8.0 PostgreSQL\;\
consider upgrading.
"