pantry/projects/postgresql.org/package.yml
Jacob Heider d7adf09a43
replace hardcoded versions (mostly) (#1733)
* update(slirp)

* update(poppler-data)

* update(doxygen)

* update(xcb)

* update(sm)

* update(xdmcp)

* update(ice)

* update(util-macros)

* update(xtrans)

* update(xmu)

* update(xt)

* update(xau)

* update(xrender)

* update(x11)

* update(xcb-proto)

* update(xpm)

* update(xaw)

* update(xorg-protocol)

* update(exts)

* update(lame)

* update(nmap)

* update(cairo)

* update(unicode)

* update(gts)

* update(vim)

* update(libtiff)

* update(lua)

* comment(bpb)

* update(giflib)

* update(gdk-pixbuf)

* update(gobj-intro)

* update(libcap2)

* update(gnuplot)

* update(dav1d)

* update(wumpus)

* update(librist)

* update(subversion)

* comment(jbig2dec)

* update(moreutils)

* update(eigen)

* update(ogg)

* update(musl)

* update(libtool)

* update(isl)

* update(coreutils)

* update(wget)

* update(gmp)

* update(libiconv)

* update(stow)

* update(sed)

* update(gperf)

* update(libunistring)

* update(grep)

* update(patch)

* update(tar)

* update(autoconf)

* update(libgpg-error)

* update(automake)

* update(libksba)

* update(npth)

* update(libgcrypt)

* update(libidn)

* update(libassuan)

* update(gnupg)

* update(libtasn1)

* update(ncdu)

* update(freexl)

* update(nasm)

* update(ffmpeg)

* update(libsodium)

* update(mpg123)

* update(freetype)

* update(dnsmasq)

* update(postgres)

* update(xz)

* update(docutils)

* update(aom)

* update(libssh)

* update(gitlab-cli)

* update(watch)

* update(tree)

* update(c-ares)

* update(mpdecimal)

* update(lzo)

* update(graphviz)

* update(nano)

* update(yasm)

* update(expect)

* update(pcre)

* update(file)

* update(shared-mime-info)

* use `gitlab:` builtin
2023-05-01 13:14:59 -04:00

100 lines
2.2 KiB
YAML

distributable:
url: https://github.com/postgres/postgres/archive/refs/tags/REL_{{version.major}}_{{version.minor}}.tar.gz
strip-components: 1
versions:
url: https://www.postgresql.org/ftp/source/
match: /"v\d+\.\d+(\.\d+)?\/"/
strip:
- /"v/
- /\/"/
dependencies:
openssl.org: ^1.0.1
gnu.org/readline: '*'
zlib.net: '*'
lz4.org: '*'
gnome.org/libxml2: '*'
gnome.org/libxslt: '*'
build:
dependencies:
tea.xyz/gx/make: '*'
freedesktop.org/pkg-config: '*'
tea.xyz/gx/cc: c99
gnu.org/gcc: '*'
gnu.org/bison: '*'
github.com/westes/flex: ^2.5.31
perl.org: '*'
script: |
# remove `-w`` from CFLAGS, because it causes build to fail, ironically.
# `./configure` *specifically* checks that certain warnings are emitted.
export CFLAGS="$(echo $CFLAGS | tr ' ' '\n' | sed -e '/^-w$/d' | tr '\n' ' ')"
./configure $ARGS
make --jobs {{ hw.concurrency }}
make install
env:
ARGS:
- --prefix={{prefix}}
- --with-ssl=openssl
- --with-lz4
- --with-libxml
- --with-libxslt
darwin:
LDFLAGS: -headerpad_max_install_names
provides:
- bin/clusterdb
- bin/createdb
- bin/dropdb
- bin/dropuser
- bin/ecpg
- bin/initdb
- bin/pg_archivecleanup
- bin/pg_basebackup
- bin/pg_config
- bin/pg_controldata
- bin/pg_ctl
- bin/pg_dump
- bin/pg_dumpall
- bin/pg_isready
- bin/pg_receivewal
- bin/pg_recvlogical
- bin/pg_resetwal
- bin/pg_restore
- bin/pg_rewind
- bin/pg_test_fsync
- bin/pg_test_timing
- bin/pg_upgrade
- bin/pg_waldump
- bin/pgbench
- bin/postgres
- bin/psql
- bin/reindexdb
- bin/vacuumdb
test:
script: |
# While we'd love a good test like this, `initdb` doesn't run as root, and managing
# all the environment passthrough with `sudo` is a nightmare.
if test "{{ hw.platform }}" = "linux"; then
pg_config --sharedir
pg_config --libdir
pg_config --pkglibdir
pg_config --pkgincludedir
pg_config --includedir-server
else
mkdir -p ./data
initdb -D ./data
pg_ctl -D ./data -l logfile start
createdb test
psql -c 'create table test (id int);' test
dropdb test
pg_ctl -D ./data stop
rm -rf ./data
fi