From 796eebd2c1fe3c7ce99b67ec3c8abfa61b27ca2f Mon Sep 17 00:00:00 2001 From: Azael Reyes Date: Mon, 7 Sep 2020 20:12:54 -0700 Subject: [PATCH] app-misc/apidb: adding use for postgresq. Signed-off-by: Azael Reyes Package-Manager: Portage-2.3.103, Repoman-2.3.23 Signed-off-by: Azael Reyes --- app-misc/apidb/apidb-5.0.0_alpha.ebuild | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/app-misc/apidb/apidb-5.0.0_alpha.ebuild b/app-misc/apidb/apidb-5.0.0_alpha.ebuild index 8c65f8d7ee..c532b3c733 100644 --- a/app-misc/apidb/apidb-5.0.0_alpha.ebuild +++ b/app-misc/apidb/apidb-5.0.0_alpha.ebuild @@ -45,6 +45,12 @@ src_prepare() { } src_configure() { - local mycmakeargs=(-DAPIDB_VERSION_STAGE=alpha -DAPIDB_MARIADB=Y -DPLATFORM=Gentoo -DCOMPONENT=FULL) + local mycmakeargs=(-DAPIDB_VERSION_STAGE=alpha -DPLATFORM=Gentoo -DCOMPONENT=FULL) + if use mariadb ;then + mycmakeargs+=(-DAPIDB_MARIADB=Y) + fi + if use postgresql ;then + mycmakeargs+=(-DAPIDB_POSTGRESQL=Y) + fi cmake_src_configure }