From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id A71E71381F3 for ; Fri, 20 Sep 2013 22:29:53 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9BC7AE0B37; Fri, 20 Sep 2013 22:29:50 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 2AC3DE0B3D for ; Fri, 20 Sep 2013 22:29:50 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 3DE7A33ED54 for ; Fri, 20 Sep 2013 22:29:49 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id EB0C7E545E for ; Fri, 20 Sep 2013 22:29:47 +0000 (UTC) From: "Brian Evans" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Brian Evans" Message-ID: <1379710746.84dfe8d38bc498b062f3d2fd850c6a6a6b8c6ef1.grknight.pub@gentoo> Subject: [gentoo-commits] proj/mysql:master commit in: eclass/ X-VCS-Repository: proj/mysql X-VCS-Files: eclass/mysql-cmake.eclass X-VCS-Directories: eclass/ X-VCS-Committer: grknight.pub X-VCS-Committer-Name: Brian Evans X-VCS-Revision: 84dfe8d38bc498b062f3d2fd850c6a6a6b8c6ef1 X-VCS-Branch: master Date: Fri, 20 Sep 2013 22:29:47 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 68427723-17f9-4d60-9757-91482ea4ea5d X-Archives-Hash: 73618ca4e3c3dbc8ff9155aae8b1a25b commit: 84dfe8d38bc498b062f3d2fd850c6a6a6b8c6ef1 Author: Brian Evans lavabit com> AuthorDate: Fri Sep 20 20:59:06 2013 +0000 Commit: Brian Evans lavabit com> CommitDate: Fri Sep 20 20:59:06 2013 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/mysql.git;a=commit;h=84dfe8d3 [eclass] Finish commenting and complete mysql-cmake_use_plugins --- eclass/mysql-cmake.eclass | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/eclass/mysql-cmake.eclass b/eclass/mysql-cmake.eclass index c45218e..147d8e5 100644 --- a/eclass/mysql-cmake.eclass +++ b/eclass/mysql-cmake.eclass @@ -67,12 +67,17 @@ mysql-cmake_disable_test() { fi } +# @FUNCTION: mysql-cmake_use_plugin +# @DESCRIPTION: +# Helper function to enable/disable plugins by use flags +# cmake-utils_use_with is not enough as some references check WITH_ (0|1) +# and some check WITHOUT_. Also, this can easily extend to non-storage plugins. mysql-cmake_use_plugin() { [[ -z $2 ]] && die "mysql-cmake_use_plugin " if use $1 ; then echo "-DWITH_$2=1" else - echo "-DWITHOUT_$2=1" + echo "-DWITHOUT_$2=1 -DWITH_$2=0" fi }