[153472] trunk/dports/databases
jwa at macports.org
jwa at macports.org
Sun Oct 2 05:35:31 CEST 2016
Revision: 153472
https://trac.macports.org/changeset/153472
Author: jwa at macports.org
Date: 2016-10-01 20:35:31 -0700 (Sat, 01 Oct 2016)
Log Message:
-----------
postgresql96: whitespace only
Modified Paths:
--------------
trunk/dports/databases/postgresql96/Portfile
trunk/dports/databases/postgresql96-doc/Portfile
trunk/dports/databases/postgresql96-server/Portfile
Modified: trunk/dports/databases/postgresql96/Portfile
===================================================================
--- trunk/dports/databases/postgresql96/Portfile 2016-10-01 23:44:23 UTC (rev 153471)
+++ trunk/dports/databases/postgresql96/Portfile 2016-10-02 03:35:31 UTC (rev 153472)
@@ -6,64 +6,64 @@
PortGroup compiler_blacklist_versions 1.0
#remember to update the -doc and -server as well
-name postgresql96
-version 9.6.0
+name postgresql96
+version 9.6.0
-categories databases
-platforms darwin
-maintainers mww jwa
-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.
+categories databases
+platforms darwin
+maintainers mww jwa
+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 http://www.postgresql.org/
-master_sites http://ftp3.de.postgresql.org/pub/Mirrors/ftp.postgresql.org/source/v${version}/ \
- postgresql:source/v${version}/
-distname postgresql-${version}
+homepage http://www.postgresql.org/
+master_sites http://ftp3.de.postgresql.org/pub/Mirrors/ftp.postgresql.org/source/v${version}/ \
+ postgresql:source/v${version}/
+distname postgresql-${version}
checksums rmd160 039c0881ed97a383944f07b143a5e28c90338032 \
sha256 3b5fe9634b80a4511aac1832a087586a7caa8c3413619562bdda009a015863ce
-use_bzip2 yes
+use_bzip2 yes
-depends_lib port:readline path:lib/libssl.dylib:openssl port:zlib port:libxml2 port:libxslt
-depends_build port:bison
-depends_run port:postgresql_select
+depends_lib port:readline path:lib/libssl.dylib:openssl port:zlib port:libxml2 port:libxslt
+depends_build port:bison
+depends_run port:postgresql_select
-worksrcdir postgresql-${version}
+worksrcdir postgresql-${version}
-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-includes=${prefix}/include \
- --with-libraries=${prefix}/lib \
- --with-openssl \
- --with-bonjour \
- --with-readline \
- --with-zlib \
- --with-libxml \
- --with-libxslt \
- --with-gssapi \
- --enable-thread-safety \
- --with-uuid=e2fs
+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-includes=${prefix}/include \
+ --with-libraries=${prefix}/lib \
+ --with-openssl \
+ --with-bonjour \
+ --with-readline \
+ --with-zlib \
+ --with-libxml \
+ --with-libxslt \
+ --with-gssapi \
+ --enable-thread-safety \
+ --with-uuid=e2fs
configure.ldflags-append -headerpad_max_install_names
configure.universal_args-delete --disable-dependency-tracking
# building psql with clang from XCode prior to 4.4 causes segfault on query; see #31717
-compiler.blacklist-append {clang < 421}
+compiler.blacklist-append {clang < 421}
notes "To use the postgresql server, install the ${name}-server port"
if {[variant_isset universal]} {
- configure.cflags-append -DAC_APPLE_UNIVERSAL_BUILD
+ configure.cflags-append -DAC_APPLE_UNIVERSAL_BUILD
post-configure {
system "cd ${worksrcpath}/src/include \
&& ed - pg_config.h < ${filespath}/pg95_config.h.ed \
@@ -74,17 +74,17 @@
}
}
-build.type gnu
+build.type gnu
build.target
-test.run yes
-test.target check
+test.run yes
+test.target check
# remember to change livecheck with first proper release
-livecheck.type regex
-livecheck.regex (9\\.6\[.0-9\]*\[a-z\]+\[0-9\])
-#livecheck.regex (9\\.6\\.\[.0-9\]+)
-livecheck.url ${homepage}/ftp/source/
+livecheck.type regex
+livecheck.regex (9\\.6\[.0-9\]*\[a-z\]+\[0-9\])
+#livecheck.regex (9\\.6\\.\[.0-9\]+)
+livecheck.url ${homepage}/ftp/source/
# prepare the contrib modules
set contribs {}
@@ -107,56 +107,56 @@
lappend contribs [file tail $d]
}
}
- foreach contrib ${contribs} {
- system "cd ${worksrcpath}/contrib/${contrib}/ && ${build.cmd}"
- }
+ foreach contrib ${contribs} {
+ system "cd ${worksrcpath}/contrib/${contrib}/ && ${build.cmd}"
+ }
}
post-destroot {
- foreach contrib ${contribs} {
- system "echo contrib: \"${contrib}\""
- system "cd ${worksrcpath}/contrib/${contrib}/ && \
- ${destroot.cmd} install ${destroot.destdir} && touch DONE"
- }
- system "cd ${destroot}${prefix}/bin && ln -sf ${libdir}/bin/psql psql96"
- file delete -force ${destroot}${prefix}/share/doc/postgresql \
- ${destroot}${prefix}/share/man
-
- reinplace -E "s#-arch\[\[:space:\]\]+\[\[:alnum:\]_\]+##g" \
- ${destroot}${prefix}/lib/${name}/pgxs/src/Makefile.global
-
- reinplace -E "s#^CFLAGS =#CFLAGS +=#g" \
- ${destroot}${prefix}/lib/${name}/pgxs/src/Makefile.global
-
- reinplace -E "s#^(\[\[:space:\]\]+)LDFLAGS =#\\1LDFLAGS +=#g" \
- ${destroot}${prefix}/lib/${name}/pgxs/src/Makefile.global
+ foreach contrib ${contribs} {
+ system "echo contrib: \"${contrib}\""
+ system "cd ${worksrcpath}/contrib/${contrib}/ && \
+ ${destroot.cmd} install ${destroot.destdir} && touch DONE"
+ }
+ system "cd ${destroot}${prefix}/bin && ln -sf ${libdir}/bin/psql psql96"
+ file delete -force ${destroot}${prefix}/share/doc/postgresql \
+ ${destroot}${prefix}/share/man
+
+ reinplace -E "s#-arch\[\[:space:\]\]+\[\[:alnum:\]_\]+##g" \
+ ${destroot}${prefix}/lib/${name}/pgxs/src/Makefile.global
+
+ reinplace -E "s#^CFLAGS =#CFLAGS +=#g" \
+ ${destroot}${prefix}/lib/${name}/pgxs/src/Makefile.global
+
+ reinplace -E "s#^(\[\[:space:\]\]+)LDFLAGS =#\\1LDFLAGS +=#g" \
+ ${destroot}${prefix}/lib/${name}/pgxs/src/Makefile.global
}
-select.group postgresql
-select.file ${filespath}/${name}
+select.group postgresql
+select.file ${filespath}/${name}
variant python requires python27 description {add support for python} {
}
variant python27 conflicts python3 description {add support for python 2.7} {
- depends_lib-append port:python27
- configure.args-append --with-python
- configure.python ${prefix}/bin/python2.7
+ depends_lib-append port:python27
+ configure.args-append --with-python
+ configure.python ${prefix}/bin/python2.7
}
variant python3 conflicts python27 description {add support for python 3.x} {
- depends_lib-append port:python35
- configure.args-append --with-python
- configure.python ${prefix}/bin/python3.5
+ depends_lib-append port:python35
+ configure.args-append --with-python
+ configure.python ${prefix}/bin/python3.5
}
variant perl description {add Perl support} {
- depends_lib-append bin:perl:perl5
- configure.args-append --with-perl
+ depends_lib-append bin:perl:perl5
+ configure.args-append --with-perl
}
variant tcl description {add Tcl support} {
- depends_lib-append port:tcl
- configure.args-append --with-tcl --with-tclconfig=${prefix}/lib
- configure.env-append TCLSH=${prefix}/bin/tclsh
+ depends_lib-append port:tcl
+ configure.args-append --with-tcl --with-tclconfig=${prefix}/lib
+ configure.env-append TCLSH=${prefix}/bin/tclsh
}
Modified: trunk/dports/databases/postgresql96-doc/Portfile
===================================================================
--- trunk/dports/databases/postgresql96-doc/Portfile 2016-10-01 23:44:23 UTC (rev 153471)
+++ trunk/dports/databases/postgresql96-doc/Portfile 2016-10-02 03:35:31 UTC (rev 153472)
@@ -3,47 +3,47 @@
PortSystem 1.0
-name postgresql96-doc
-conflicts postgresql90-doc postgresql91-doc postgresql92-doc \
+name postgresql96-doc
+conflicts postgresql90-doc postgresql91-doc postgresql92-doc \
postgresql93-doc postgresql94-doc postgresql95-doc
-version 9.6.0
-categories databases
-platforms darwin
-maintainers mww jwa
-license Permissive
-description Documentation for the postgresql database BETA release.
-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. This is the documentation.
+version 9.6.0
+categories databases
+platforms darwin
+maintainers mww jwa
+license Permissive
+description Documentation for the postgresql database BETA release.
+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. This is the documentation.
-homepage http://www.postgresql.org/
-master_sites postgresql:source/v${version}
-distname postgresql-${version}
-set rname postgresql96
+homepage http://www.postgresql.org/
+master_sites postgresql:source/v${version}
+distname postgresql-${version}
+set rname postgresql96
checksums rmd160 039c0881ed97a383944f07b143a5e28c90338032 \
sha256 3b5fe9634b80a4511aac1832a087586a7caa8c3413619562bdda009a015863ce
-use_bzip2 yes
-dist_subdir ${rname}
+use_bzip2 yes
+dist_subdir ${rname}
-set libdir ${prefix}/lib/${rname}
-configure.args --mandir=${prefix}/share/man \
- --without-openssl \
- --without-readline \
- --without-zlib
+set libdir ${prefix}/lib/${rname}
+configure.args --mandir=${prefix}/share/man \
+ --without-openssl \
+ --without-readline \
+ --without-zlib
-build.dir ${worksrcpath}/doc
-build.type gnu
+build.dir ${worksrcpath}/doc
+build.type gnu
build.target
-destroot.dir ${build.dir}
+destroot.dir ${build.dir}
post-destroot {
- file rename ${destroot}${prefix}/share/doc/postgresql \
- ${destroot}${prefix}/share/doc/${rname}
+ file rename ${destroot}${prefix}/share/doc/postgresql \
+ ${destroot}${prefix}/share/doc/${rname}
}
-livecheck.type none
+livecheck.type none
Modified: trunk/dports/databases/postgresql96-server/Portfile
===================================================================
--- trunk/dports/databases/postgresql96-server/Portfile 2016-10-01 23:44:23 UTC (rev 153471)
+++ trunk/dports/databases/postgresql96-server/Portfile 2016-10-02 03:35:31 UTC (rev 153472)
@@ -3,55 +3,55 @@
PortSystem 1.0
-name postgresql96-server
-version 9.6.0
-categories databases
-platforms darwin
-maintainers mww jwa
-license Permissive
+name postgresql96-server
+version 9.6.0
+categories databases
+platforms darwin
+maintainers mww jwa
+license Permissive
-set rname postgresql96
-description run ${rname} as server
-long_description ${description}
+set rname postgresql96
+description run ${rname} as server
+long_description ${description}
distfiles
-homepage http://www.postgresql.org/
-master_sites postgresql
+homepage http://www.postgresql.org/
+master_sites postgresql
-depends_run port:${rname}
+depends_run port:${rname}
-supported_archs noarch
+supported_archs noarch
-use_configure no
-build {}
+use_configure no
+build {}
-set libdir ${prefix}/lib/${rname}
-set dbdir ${prefix}/var/db/${rname}/defaultdb
-set logdir ${prefix}/var/log/${rname}
-set dbuser postgres
-set dbgrp postgres
+set libdir ${prefix}/lib/${rname}
+set dbdir ${prefix}/var/db/${rname}/defaultdb
+set logdir ${prefix}/var/log/${rname}
+set dbuser postgres
+set dbgrp postgres
add_users ${dbuser} shell=/bin/sh group=${dbgrp} \
home=${prefix}/var/db/${rname} \
realname=PostgreSQL-96\ Server
-startupitem.create yes
-startupitem.init \
- "PGCTL=${libdir}/bin/pg_ctl"
-startupitem.start \
- "su ${dbuser} -c \"\${PGCTL} -D \${POSTGRESQL96DATA:=${dbdir}} start -l ${logdir}/postgres.log\""
-startupitem.stop \
+startupitem.create yes
+startupitem.init \
+ "PGCTL=${libdir}/bin/pg_ctl"
+startupitem.start \
+ "su ${dbuser} -c \"\${PGCTL} -D \${POSTGRESQL96DATA:=${dbdir}} start -l ${logdir}/postgres.log\""
+startupitem.stop \
"su ${dbuser} -c \"\${PGCTL} -D \${POSTGRESQL96DATA:=${dbdir}} stop -s -m fast\""
destroot {
- xinstall -m 755 -d ${destroot}${logdir}
- system "touch ${destroot}${logdir}/postgres.log"
- system "chown ${dbuser}:${dbgrp} ${destroot}${logdir}/postgres.log"
+ xinstall -m 755 -d ${destroot}${logdir}
+ system "touch ${destroot}${logdir}/postgres.log"
+ system "chown ${dbuser}:${dbgrp} ${destroot}${logdir}/postgres.log"
}
notes "\nTo create a database instance, after install do\n\
- sudo mkdir -p ${dbdir}\n\
- sudo chown ${dbuser}:${dbgrp} ${dbdir}\n\
- sudo su ${dbuser} -c \'${libdir}/bin/initdb -D ${dbdir}\' "
+ sudo mkdir -p ${dbdir}\n\
+ sudo chown ${dbuser}:${dbgrp} ${dbdir}\n\
+ sudo su ${dbuser} -c \'${libdir}/bin/initdb -D ${dbdir}\' "
-livecheck.type none
+livecheck.type none
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-changes/attachments/20161001/c6dd197c/attachment-0002.html>
More information about the macports-changes
mailing list