# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 PortSystem 1.0 PortGroup select 1.0 name postgresql_select version 0.7 categories databases license Permissive description common files for selecting default PostgreSQL version maintainers {gmail.com:davidgilman1 @dgilman} long_description \ This port installs files that allow 'port select' to be used to \ create links to the preferred default version of PostgreSQL. homepage https://www.postgresql.org/ supported_archs noarch platforms any distfiles use_configure no build {} destroot {} if {$subport eq $name} { select.entries {postgresql base} \ {postgresql none} } foreach p {84 90 91 92 93 94 95 96 10 11 12 13 14 15 16 17} { subport postgresql_select-${p} { set pgver $p } } if {$subport ne $name} { platforms any depends_run port:postgresql_select select.entries [list postgresql postgresql${pgver} postgresql${pgver}] pre-activate { if {[file exists ${prefix}/etc/select/postgresql/postgresql${pgver}]} { set owner [registry_file_registered ${prefix}/etc/select/postgresql/postgresql${pgver}] if {[string match postgresql${pgver}* $owner]} { registry_deactivate_composite $owner "" [list ports_nodepcheck 1] } } } } livecheck.type none