summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Evans <grknight@gentoo.org>2015-10-20 10:22:15 -0400
committerBrian Evans <grknight@gentoo.org>2015-10-20 10:52:10 -0400
commit18d0f5d145480f03bc363c4532a0de7798736aea (patch)
treeb75715fe1f961ee62055528e01189132b6f2ee4f /eclass/mysql-multilib.eclass
parentdev-libs/angelscript: rm old (diff)
downloadgentoo-18d0f5d145480f03bc363c4532a0de7798736aea.tar.gz
gentoo-18d0f5d145480f03bc363c4532a0de7798736aea.tar.bz2
gentoo-18d0f5d145480f03bc363c4532a0de7798736aea.zip
mysql-multilib.eclass: Add LibreSSL support
Signed-off-by: Brian Evans <grknight@gentoo.org>
Diffstat (limited to 'eclass/mysql-multilib.eclass')
-rw-r--r--eclass/mysql-multilib.eclass25
1 files changed, 17 insertions, 8 deletions
diff --git a/eclass/mysql-multilib.eclass b/eclass/mysql-multilib.eclass
index da5594becdf4..f76143471ed8 100644
--- a/eclass/mysql-multilib.eclass
+++ b/eclass/mysql-multilib.eclass
@@ -192,8 +192,10 @@ fi
LICENSE="GPL-2"
SLOT="0/${SUBSLOT:-0}"
-IUSE="+community cluster debug embedded extraengine jemalloc latin1
- +perl profiling selinux ssl systemtap static static-libs tcmalloc test"
+IUSE="+community cluster debug embedded extraengine jemalloc latin1 libressl +openssl
+ +perl profiling selinux systemtap static static-libs tcmalloc test yassl"
+
+REQUIRED_USE="^^ ( yassl openssl libressl )"
### Begin readline/libedit
### If the world was perfect, we would use external libedit on both to have a similar experience
@@ -261,7 +263,7 @@ fi
REQUIRED_USE="
${REQUIRED_USE} tcmalloc? ( !jemalloc ) jemalloc? ( !tcmalloc )
- static? ( !ssl )"
+ static? ( yassl )"
#
# DEPENDENCIES:
@@ -271,7 +273,6 @@ REQUIRED_USE="
# These are used for both runtime and compiletime
# MULTILIB_USEDEP only set for libraries used by the client library
DEPEND="
- ssl? ( >=dev-libs/openssl-1.0.0:0=[${MULTILIB_USEDEP},static-libs?] )
kernel_linux? (
sys-process/procps:0=
dev-libs/libaio:0=
@@ -287,18 +288,21 @@ DEPEND="
if [[ ${HAS_TOOLS_PATCH} ]] ; then
DEPEND+="
client-libs? (
- ssl? ( >=dev-libs/openssl-1.0.0:0=[${MULTILIB_USEDEP},static-libs?] )
+ openssl? ( >=dev-libs/openssl-1.0.0:0=[${MULTILIB_USEDEP},static-libs?] )
+ libressl? ( dev-libs/libressl:0=[${MULTILIB_USEDEP},static-libs?] )
>=sys-libs/zlib-1.2.3:0=[${MULTILIB_USEDEP},static-libs?]
)
!client-libs? (
- ssl? ( >=dev-libs/openssl-1.0.0:0=[static-libs?] )
+ openssl? ( >=dev-libs/openssl-1.0.0:0=[static-libs?] )
+ libressl? ( dev-libs/libressl:0=[static-libs?] )
>=sys-libs/zlib-1.2.3:0=[static-libs?]
)
tools? ( sys-libs/ncurses:0= ) embedded? ( sys-libs/ncurses:0= )
"
else
DEPEND+="
- ssl? ( >=dev-libs/openssl-1.0.0:0=[${MULTILIB_USEDEP},static-libs?] )
+ openssl? ( >=dev-libs/openssl-1.0.0:0=[${MULTILIB_USEDEP},static-libs?] )
+ libressl? ( dev-libs/libressl:0=[${MULTILIB_USEDEP},static-libs?] )
>=sys-libs/zlib-1.2.3:0=[${MULTILIB_USEDEP},static-libs?]
sys-libs/ncurses:0=[${MULTILIB_USEDEP}]
"
@@ -637,11 +641,16 @@ multilib_src_configure() {
-DENABLED_LOCAL_INFILE=1
-DMYSQL_UNIX_ADDR=${EPREFIX}/var/run/mysqld/mysqld.sock
-DINSTALL_UNIX_ADDRDIR=${EPREFIX}/var/run/mysqld/mysqld.sock
- -DWITH_SSL=$(usex ssl system bundled)
-DWITH_DEFAULT_COMPILER_OPTIONS=0
-DWITH_DEFAULT_FEATURE_SET=0
)
+ if use openssl || use libressl ; then
+ mycmakeargs+=( -DWITH_SSL=system )
+ else
+ mycmakeargs+=( -DWITH_SSL=bundled )
+ fi
+
if in_iuse client-libs ; then
mycmakeargs+=( -DWITHOUT_CLIENTLIBS=$(usex client-libs 0 1) )
fi