provision: Refactor handling of dependencies for building pgroonga.

This lets us leave build-pgroonga platform-agnostic.
This commit is contained in:
Tim Abbott 2019-03-05 15:42:17 -08:00
parent 5c20ee998c
commit 0ab8cd9ca3
2 changed files with 6 additions and 3 deletions

View File

@ -4,9 +4,6 @@ set -e
PGROONGA_VERSION="2.1.6"
# Currently only tested for Fedora systems.
yum install -y groonga-devel msgpack-devel
cd "$(mktemp -d)"
wget https://packages.groonga.org/source/pgroonga/pgroonga-"$PGROONGA_VERSION".tar.gz

View File

@ -183,6 +183,9 @@ if vendor in ["Ubuntu", "Debian"]:
pkg.format(POSTGRES_VERSION) for pkg in [
"postgresql-{0}",
"postgresql-server-dev-{0}",
# Needed to build pgroonga from source
"libgroonga-dev",
"libmsgpack-dev",
]
]
else:
@ -209,6 +212,9 @@ elif vendor == "Fedora":
"postgresql{0}-server",
"postgresql{0}",
"postgresql{0}-devel",
# Needed to build pgroonga from source
"groonga-devel",
"msgpack-devel",
]
] + FEDORA_VENV_DEPENDENCIES
BUILD_TSEARCH_FROM_SOURCE = True