commit:     c97dba2d1ae75f2e1f9ed0b76882aa9469798c00
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Wed Mar 27 15:13:32 2019 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Wed Mar 27 15:13:32 2019 +0000
URL:        https://gitweb.gentoo.org/repo/dev/ulm.git/commit/?id=c97dba2d

dev-util/ninka: Make sqlite backend optional.

Package-Manager: Portage-2.3.62, Repoman-2.3.12
Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>

 dev-util/ninka/ninka-2.0_pre1_p20170402.ebuild | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)

diff --git a/dev-util/ninka/ninka-2.0_pre1_p20170402.ebuild 
b/dev-util/ninka/ninka-2.0_pre1_p20170402.ebuild
index c080e37..3a18623 100644
--- a/dev-util/ninka/ninka-2.0_pre1_p20170402.ebuild
+++ b/dev-util/ninka/ninka-2.0_pre1_p20170402.ebuild
@@ -13,13 +13,15 @@ SRC_URI="https://dev.gentoo.org/~ulm/distfiles/${P}.tar.xz";
 LICENSE="GPL-2+ myspell-en_CA-KevinAtkinson public-domain Princeton Ispell"
 SLOT="0"
 KEYWORDS="~amd64"
-IUSE="test"
+IUSE="sqlite test"
 
-RDEPEND="dev-perl/DBD-SQLite
-       dev-perl/DBI
+RDEPEND="dev-perl/IO-CaptureOutput
+       dev-perl/Spreadsheet-WriteExcel
        virtual/perl-File-Temp
-       dev-perl/IO-CaptureOutput
-       dev-perl/Spreadsheet-WriteExcel"
+       sqlite? (
+               dev-perl/DBD-SQLite
+               dev-perl/DBI
+       )"
 
 DEPEND="virtual/perl-ExtUtils-MakeMaker
        test? (
@@ -43,6 +45,7 @@ src_compile() {
 
 src_install() {
        perl-module_src_install
+       use sqlite || rm "${ED}"/usr/bin/ninka-sqlite || die
        dobin comments/comments
        doman comments/comments.1
        dodoc BUGS.org

Reply via email to