<pre style='margin:0'>
Marcus Calhoun-Lopez (MarcusCalhoun-Lopez) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/b40aad1b58f9cf542b856411cf656fe9414c8bb5">https://github.com/macports/macports-ports/commit/b40aad1b58f9cf542b856411cf656fe9414c8bb5</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit b40aad1b58f9cf542b856411cf656fe9414c8bb5
</span>Author: Marcus Calhoun-Lopez <mcalhoun@macports.org>
AuthorDate: Mon Nov 13 00:01:07 2017 -0700
<span style='display:block; white-space:pre;color:#404040;'> postgresql*: don't build/install contrib files manually
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Instead, set build.target and destroot.target
</span><span style='display:block; white-space:pre;color:#404040;'> to world and install-world respectively.
</span><span style='display:block; white-space:pre;color:#404040;'> This behavior seems to have been inherited from PostgreSQL 7 & 8,
</span><span style='display:block; white-space:pre;color:#404040;'> where world and install-world were not available.
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> See https://trac.macports.org/ticket/55303
</span>---
databases/postgresql10/Portfile | 35 +++--------------------------------
databases/postgresql90/Portfile | 24 +++---------------------
databases/postgresql91/Portfile | 26 +++-----------------------
databases/postgresql92/Portfile | 26 +++-----------------------
databases/postgresql93/Portfile | 26 +++-----------------------
databases/postgresql94/Portfile | 26 +++-----------------------
databases/postgresql95/Portfile | 35 +++--------------------------------
databases/postgresql96/Portfile | 35 +++--------------------------------
8 files changed, 24 insertions(+), 209 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/databases/postgresql10/Portfile b/databases/postgresql10/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 63b064d..96c7037 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/databases/postgresql10/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/databases/postgresql10/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -75,7 +75,9 @@ if {[variant_isset universal]} {
</span> }
build.type gnu
<span style='display:block; white-space:pre;background:#ffe0e0;'>-build.target
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+build.target world
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+destroot.target install-world
</span>
test.run yes
test.target check
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -86,38 +88,7 @@ livecheck.type regex
</span> livecheck.regex (10\\.\[.0-9\]+)
livecheck.url ${homepage}/ftp/source/
<span style='display:block; white-space:pre;background:#ffe0e0;'>-# prepare the contrib modules
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-set contribs {}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-post-build {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# remove a Linux-specific contrib before continuing
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- file delete -force ${worksrcpath}/contrib/sepgsql
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# remove perl-specific contrib, if no perl variant
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if {![variant_isset perl]} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- file delete -force ${worksrcpath}/contrib/hstore_plperl
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# remove python-specific contrib, if no python27 variant
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if {![variant_isset python27] && ![variant_isset python3]} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- file delete -force ${worksrcpath}/contrib/hstore_plpython
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- file delete -force ${worksrcpath}/contrib/ltree_plpython
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set contribdirs [glob -nocomplain -type d ${worksrcpath}/contrib/*]
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- foreach d [lsort $contribdirs] {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if { [file exists $d/Makefile] } {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- lappend contribs [file tail $d]
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- foreach contrib ${contribs} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- system "cd ${worksrcpath}/contrib/${contrib}/ && ${build.cmd}"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span> post-destroot {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- foreach contrib ${contribs} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- system "echo contrib: \"${contrib}\""
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- system "cd ${worksrcpath}/contrib/${contrib}/ && \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ${destroot.cmd} install ${destroot.destdir} && touch DONE"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span> system "cd ${destroot}${prefix}/bin && ln -sf ${libdir}/bin/psql psql10"
file delete -force ${destroot}${prefix}/share/doc/postgresql \
${destroot}${prefix}/share/man
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/databases/postgresql90/Portfile b/databases/postgresql90/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 6c73d8f..c4fa956 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/databases/postgresql90/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/databases/postgresql90/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -72,7 +72,9 @@ if {[variant_isset universal]} {
</span> }
build.type gnu
<span style='display:block; white-space:pre;background:#ffe0e0;'>-build.target
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+build.target world
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+destroot.target install-world
</span>
test.run yes
test.target check
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -87,27 +89,7 @@ platform darwin {
</span> }
}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-# prepare the contrib modules
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-set contribs {}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-post-build {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set contribdirs [glob -nocomplain -type d ${worksrcpath}/contrib/*]
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- foreach d [lsort $contribdirs] {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if { [file exists $d/Makefile] } {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- lappend contribs [file tail $d]
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- foreach contrib ${contribs} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- system "cd ${worksrcpath}/contrib/${contrib}/ && ${build.cmd}"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span> post-destroot {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- foreach contrib ${contribs} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- system "echo contrib: \"${contrib}\""
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- system "cd ${worksrcpath}/contrib/${contrib}/ && \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ${destroot.cmd} install ${destroot.destdir} && touch DONE"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span> system "cd ${destroot}${prefix}/bin && ln -sf ${libdir}/bin/psql psql90"
file delete -force ${destroot}${prefix}/share/doc/postgresql \
${destroot}${prefix}/share/man
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/databases/postgresql91/Portfile b/databases/postgresql91/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index a716825..80a897c 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/databases/postgresql91/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/databases/postgresql91/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -72,7 +72,9 @@ if {[variant_isset universal]} {
</span> }
build.type gnu
<span style='display:block; white-space:pre;background:#ffe0e0;'>-build.target
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+build.target world
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+destroot.target install-world
</span>
test.run yes
test.target check
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -87,29 +89,7 @@ platform darwin {
</span> }
}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-# prepare the contrib modules
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-set contribs {}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-post-build {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # remove a Linux-specific contrib before continuing
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- file delete -force ${worksrcpath}/contrib/sepgsql
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set contribdirs [glob -nocomplain -type d ${worksrcpath}/contrib/*]
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- foreach d [lsort $contribdirs] {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if { [file exists $d/Makefile] } {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- lappend contribs [file tail $d]
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- foreach contrib ${contribs} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- system "cd ${worksrcpath}/contrib/${contrib}/ && ${build.cmd}"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span> post-destroot {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- foreach contrib ${contribs} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- system "echo contrib: \"${contrib}\""
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- system "cd ${worksrcpath}/contrib/${contrib}/ && \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ${destroot.cmd} install ${destroot.destdir} && touch DONE"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span> system "cd ${destroot}${prefix}/bin && ln -sf ${libdir}/bin/psql psql91"
file delete -force ${destroot}${prefix}/share/doc/postgresql \
${destroot}${prefix}/share/man
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/databases/postgresql92/Portfile b/databases/postgresql92/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 5c911b9..74cfba5 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/databases/postgresql92/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/databases/postgresql92/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -72,7 +72,9 @@ if {[variant_isset universal]} {
</span> }
build.type gnu
<span style='display:block; white-space:pre;background:#ffe0e0;'>-build.target
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+build.target world
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+destroot.target install-world
</span>
test.run yes
test.target check
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -90,29 +92,7 @@ platform darwin {
</span> }
}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-# prepare the contrib modules
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-set contribs {}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-post-build {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # remove a Linux-specific contrib before continuing
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- file delete -force ${worksrcpath}/contrib/sepgsql
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set contribdirs [glob -nocomplain -type d ${worksrcpath}/contrib/*]
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- foreach d [lsort $contribdirs] {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if { [file exists $d/Makefile] } {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- lappend contribs [file tail $d]
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- foreach contrib ${contribs} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- system "cd ${worksrcpath}/contrib/${contrib}/ && ${build.cmd}"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span> post-destroot {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- foreach contrib ${contribs} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- system "echo contrib: \"${contrib}\""
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- system "cd ${worksrcpath}/contrib/${contrib}/ && \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ${destroot.cmd} install ${destroot.destdir} && touch DONE"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span> system "cd ${destroot}${prefix}/bin && ln -sf ${libdir}/bin/psql psql92"
file delete -force ${destroot}${prefix}/share/doc/postgresql \
${destroot}${prefix}/share/man
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/databases/postgresql93/Portfile b/databases/postgresql93/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index e2a212f..cafb285 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/databases/postgresql93/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/databases/postgresql93/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -72,7 +72,9 @@ if {[variant_isset universal]} {
</span> }
build.type gnu
<span style='display:block; white-space:pre;background:#ffe0e0;'>-build.target
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+build.target world
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+destroot.target install-world
</span>
test.run yes
test.target check
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -90,29 +92,7 @@ platform darwin {
</span> }
}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-# prepare the contrib modules
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-set contribs {}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-post-build {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# remove a Linux-specific contrib before continuing
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- file delete -force ${worksrcpath}/contrib/sepgsql
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set contribdirs [glob -nocomplain -type d ${worksrcpath}/contrib/*]
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- foreach d [lsort $contribdirs] {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if { [file exists $d/Makefile] } {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- lappend contribs [file tail $d]
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- foreach contrib ${contribs} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- system "cd ${worksrcpath}/contrib/${contrib}/ && ${build.cmd}"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span> post-destroot {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- foreach contrib ${contribs} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- system "echo contrib: \"${contrib}\""
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- system "cd ${worksrcpath}/contrib/${contrib}/ && \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ${destroot.cmd} install ${destroot.destdir} && touch DONE"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span> system "cd ${destroot}${prefix}/bin && ln -sf ${libdir}/bin/psql psql93"
file delete -force ${destroot}${prefix}/share/doc/postgresql \
${destroot}${prefix}/share/man
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/databases/postgresql94/Portfile b/databases/postgresql94/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 65289d2..2355c47 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/databases/postgresql94/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/databases/postgresql94/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -73,7 +73,9 @@ if {[variant_isset universal]} {
</span> }
build.type gnu
<span style='display:block; white-space:pre;background:#ffe0e0;'>-build.target
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+build.target world
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+destroot.target install-world
</span>
test.run yes
test.target check
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -84,29 +86,7 @@ livecheck.regex (9\\.4\\.\[.0-9\]+)
</span> livecheck.url ${homepage}/ftp/source/
#livecheck.regex (9\\.4\[.0-9\]*\[a-z\]+\[0-9\])
<span style='display:block; white-space:pre;background:#ffe0e0;'>-# prepare the contrib modules
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-set contribs {}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-post-build {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# remove a Linux-specific contrib before continuing
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- file delete -force ${worksrcpath}/contrib/sepgsql
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set contribdirs [glob -nocomplain -type d ${worksrcpath}/contrib/*]
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- foreach d [lsort $contribdirs] {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if { [file exists $d/Makefile] } {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- lappend contribs [file tail $d]
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- foreach contrib ${contribs} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- system "cd ${worksrcpath}/contrib/${contrib}/ && ${build.cmd}"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span> post-destroot {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- foreach contrib ${contribs} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- system "echo contrib: \"${contrib}\""
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- system "cd ${worksrcpath}/contrib/${contrib}/ && \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ${destroot.cmd} install ${destroot.destdir} && touch DONE"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span> system "cd ${destroot}${prefix}/bin && ln -sf ${libdir}/bin/psql psql94"
file delete -force ${destroot}${prefix}/share/doc/postgresql \
${destroot}${prefix}/share/man
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/databases/postgresql95/Portfile b/databases/postgresql95/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 0bc60a9..6c2c5e5 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/databases/postgresql95/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/databases/postgresql95/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -75,7 +75,9 @@ if {[variant_isset universal]} {
</span> }
build.type gnu
<span style='display:block; white-space:pre;background:#ffe0e0;'>-build.target
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+build.target world
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+destroot.target install-world
</span>
test.run yes
test.target check
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -86,38 +88,7 @@ livecheck.type regex
</span> livecheck.regex (9\\.5\\.\[.0-9\]+)
livecheck.url ${homepage}/ftp/source/
<span style='display:block; white-space:pre;background:#ffe0e0;'>-# prepare the contrib modules
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-set contribs {}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-post-build {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# remove a Linux-specific contrib before continuing
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- file delete -force ${worksrcpath}/contrib/sepgsql
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# remove perl-specific contrib, if no perl variant
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if {![variant_isset perl]} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- file delete -force ${worksrcpath}/contrib/hstore_plperl
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# remove python-specific contrib, if no python27 variant
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if {![variant_isset python27] && ![variant_isset python3]} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- file delete -force ${worksrcpath}/contrib/hstore_plpython
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- file delete -force ${worksrcpath}/contrib/ltree_plpython
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set contribdirs [glob -nocomplain -type d ${worksrcpath}/contrib/*]
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- foreach d [lsort $contribdirs] {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if { [file exists $d/Makefile] } {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- lappend contribs [file tail $d]
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- foreach contrib ${contribs} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- system "cd ${worksrcpath}/contrib/${contrib}/ && ${build.cmd}"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span> post-destroot {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- foreach contrib ${contribs} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- system "echo contrib: \"${contrib}\""
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- system "cd ${worksrcpath}/contrib/${contrib}/ && \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ${destroot.cmd} install ${destroot.destdir} && touch DONE"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span> system "cd ${destroot}${prefix}/bin && ln -sf ${libdir}/bin/psql psql95"
file delete -force ${destroot}${prefix}/share/doc/postgresql \
${destroot}${prefix}/share/man
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/databases/postgresql96/Portfile b/databases/postgresql96/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 7b68221..f8669d8 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/databases/postgresql96/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/databases/postgresql96/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -75,7 +75,9 @@ if {[variant_isset universal]} {
</span> }
build.type gnu
<span style='display:block; white-space:pre;background:#ffe0e0;'>-build.target
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+build.target world
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+destroot.target install-world
</span>
test.run yes
test.target check
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -86,38 +88,7 @@ livecheck.type regex
</span> livecheck.regex (9\\.6\\.\[.0-9\]+)
livecheck.url ${homepage}/ftp/source/
<span style='display:block; white-space:pre;background:#ffe0e0;'>-# prepare the contrib modules
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-set contribs {}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-post-build {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# remove a Linux-specific contrib before continuing
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- file delete -force ${worksrcpath}/contrib/sepgsql
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# remove perl-specific contrib, if no perl variant
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if {![variant_isset perl]} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- file delete -force ${worksrcpath}/contrib/hstore_plperl
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# remove python-specific contrib, if no python27 variant
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if {![variant_isset python27] && ![variant_isset python3]} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- file delete -force ${worksrcpath}/contrib/hstore_plpython
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- file delete -force ${worksrcpath}/contrib/ltree_plpython
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set contribdirs [glob -nocomplain -type d ${worksrcpath}/contrib/*]
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- foreach d [lsort $contribdirs] {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if { [file exists $d/Makefile] } {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- lappend contribs [file tail $d]
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- foreach contrib ${contribs} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- system "cd ${worksrcpath}/contrib/${contrib}/ && ${build.cmd}"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span> post-destroot {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- foreach contrib ${contribs} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- system "echo contrib: \"${contrib}\""
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- system "cd ${worksrcpath}/contrib/${contrib}/ && \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ${destroot.cmd} install ${destroot.destdir} && touch DONE"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span> system "cd ${destroot}${prefix}/bin && ln -sf ${libdir}/bin/psql psql96"
file delete -force ${destroot}${prefix}/share/doc/postgresql \
${destroot}${prefix}/share/man
</pre><pre style='margin:0'>
</pre>