net-misc/kea: Added support for mysql and postgresql.
authorLars Wendler <polynomial-c@gentoo.org>
Mon, 10 Dec 2018 09:35:42 +0000 (10:35 +0100)
committerLars Wendler <polynomial-c@gentoo.org>
Mon, 10 Dec 2018 09:35:42 +0000 (10:35 +0100)
Thanks to James Browning <jamesb.fe80@gmail.com> for the initial patch

Bug: https://bugs.gentoo.org/663538
Package-Manager: Portage-2.3.52, Repoman-2.3.12
Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
net-misc/kea/kea-9999.ebuild

index 6a29a56af2286c68709e322b9152783169577895..9088c8b223fae751c33c50be5e4eb67910d78ed6 100644 (file)
@@ -8,6 +8,7 @@ inherit toolchain-funcs user
 MY_PV="${PV//_p/-P}"
 MY_PV="${MY_PV/_/-}"
 MY_P="${PN}-${MY_PV}"
+
 DESCRIPTION="High-performance production grade DHCPv4 & DHCPv6 server"
 HOMEPAGE="http://www.isc.org/kea/"
 if [[ ${PV} = 9999* ]] ; then
@@ -22,14 +23,16 @@ fi
 
 LICENSE="ISC BSD SSLeay GPL-2" # GPL-2 only for init script
 SLOT="0"
-IUSE="openssl samples"
+IUSE="mysql openssl postgres samples"
 
 DEPEND="
        dev-libs/boost:=
        dev-cpp/gtest
        dev-libs/log4cplus
+       mysql? ( virtual/mysql )
        !openssl? ( dev-libs/botan:0= )
        openssl? ( dev-libs/openssl:0= )
+       postgres? ( dev-db/postgresql:* )
 "
 RDEPEND="${DEPEND}"
 
@@ -46,7 +49,9 @@ src_prepare() {
 
 src_configure() {
        local myeconfargs=(
+               $(use_with mysql)
                $(use_with openssl)
+               $(use_with postgres pgsql)
                $(use_enable samples install-configurations)
                --disable-static
                --without-werror