commit:     796eebd2c1fe3c7ce99b67ec3c8abfa61b27ca2f
Author:     Azael Reyes <azael.devel <AT> gmail <DOT> com>
AuthorDate: Tue Sep  8 03:12:54 2020 +0000
Commit:     Azael Reyes <azael.devel <AT> gmail <DOT> com>
CommitDate: Tue Sep  8 03:12:54 2020 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=796eebd2

app-misc/apidb: adding use for postgresq.

Signed-off-by: Azael Reyes <azael.devel <AT> gmail.com>
Package-Manager: Portage-2.3.103, Repoman-2.3.23
Signed-off-by: Azael Reyes <azael.devel <AT> gmail.com>

 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 8c65f8d..c532b3c 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
 }

Reply via email to