/
Portfile
68 lines (52 loc) · 2.53 KB
/
Portfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# -*- 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 golang 1.0
go.setup github.com/xataio/pgroll 0.6.0 v
go.offline_build no
github.tarball_from archive
revision 0
homepage https://xata.io/blog/pgroll-schema-migrations-postgres
description Postgres zero-downtime migrations made easy
long_description \
${name} is an open source command-line tool that offers safe and \
reversible schema migrations for PostgreSQL by serving multiple schema \
versions simultaneously. It takes care of the complex migration \
operations to ensure that client applications continue working while the \
database schema is being updated. This includes ensuring changes are \
applied without locking the database, and that both old and new schema \
versions work simultaneously \(even when breaking changes are being \
made\!\). This removes risks related to schema migrations, and greatly \
simplifies client application rollout, also allowing for instant rollbacks.
categories databases
installs_libs no
license Apache-2
maintainers {gmail.com:herby.gillot @herbygillot} \
openmaintainer
checksums rmd160 7bcf87d44ec9a59ec5ae4cba6c2141845238846f \
sha256 db1a9fda834300bd2c861895b6015f6c6332b7f032e1ac57cb331ca2e1944355 \
size 481842
build.pre_args-append \
-ldflags=\"-X ${go.package}/cmd.Version=${version}\"
set comppath ${workpath}/completions
post-build {
file mkdir ${comppath}
foreach shell {bash fish zsh} {
system -W ${worksrcpath} \
"${worksrcpath}/${name} completion ${shell} > ${comppath}/${name}.${shell}"
}
}
destroot {
xinstall -m 0755 ${worksrcpath}/${name} ${destroot}${prefix}/bin/
xinstall -d ${destroot}${prefix}/share/${name}
copy ${worksrcpath}/examples ${destroot}${prefix}/share/${name}/
# Shell completions
set bash_comp_path ${destroot}${prefix}/share/bash-completion/completions
xinstall -d ${bash_comp_path}
copy ${comppath}/${name}.bash ${bash_comp_path}/${name}
set fish_comp_path ${destroot}${prefix}/share/fish/vendor_completions.d
xinstall -d ${fish_comp_path}
copy ${comppath}/${name}.fish ${fish_comp_path}
set zsh_comp_path ${destroot}${prefix}/share/zsh/site-functions
xinstall -d ${zsh_comp_path}
copy ${comppath}/${name}.zsh ${zsh_comp_path}/_${name}
}