commit:     50d8ee2293d0f8c4fae6c1343d97bc19b16ffae8
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Sun Jul  3 05:49:58 2022 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Sun Jul  3 05:56:56 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=50d8ee22

dev-util/ninka: add 2.0_pre1_p20220619

Bug: https://bugs.gentoo.org/856007
Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>

 dev-util/ninka/Manifest                        |  1 +
 dev-util/ninka/ninka-2.0_pre1_p20220619.ebuild | 49 ++++++++++++++++++++++++++
 2 files changed, 50 insertions(+)

diff --git a/dev-util/ninka/Manifest b/dev-util/ninka/Manifest
index 442d11b608e4..b5ee88d9e970 100644
--- a/dev-util/ninka/Manifest
+++ b/dev-util/ninka/Manifest
@@ -1 +1,2 @@
 DIST ninka-2.0_pre1_p20170402.tar.xz 136080 BLAKE2B 
9c612dd3586681b1bb037d5c7271341fc652ca62d3e22ee29f330922d78e9a460e3bb2700f4216ea3fa564ed2e5c83a9c50cdea5db796851bbdc999b9f35658a
 SHA512 
fc1c8f6e134c6c618852bc62b306c4e73fcd7443900f4d31d9abffe718e8b4fa7e3853631d0207f70e1223d00a72e976f4c3e7c8780a892113644ba5167f30a1
+DIST ninka-b94e0d36669c4cc086856adf57bc67ced8f1aaf0.tar.gz 266201 BLAKE2B 
ebc0466cef0e193784fb9a4096d6e35f3c006efa1911e76bba3996f12785cf2748fa4aeb13b0caa2689c4a3a325874d8922f0fd47b27739d4e33e81d11953958
 SHA512 
3c9abb5e7e5e3b1a2b46e04b0eaa0c9e5f681ffbe37077f0ce5aee727a4e68a2bf169aaa8953678f452abee916c62a47d4305f669f9023350a235442b7cebfca

diff --git a/dev-util/ninka/ninka-2.0_pre1_p20220619.ebuild 
b/dev-util/ninka/ninka-2.0_pre1_p20220619.ebuild
new file mode 100644
index 000000000000..2ee065f72d2b
--- /dev/null
+++ b/dev-util/ninka/ninka-2.0_pre1_p20220619.ebuild
@@ -0,0 +1,49 @@
+# Copyright 2019-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit perl-module toolchain-funcs
+
+COMMIT="b94e0d36669c4cc086856adf57bc67ced8f1aaf0"
+DESCRIPTION="A license identification tool for source code"
+HOMEPAGE="http://ninka.turingmachine.org/";
+SRC_URI="https://github.com/dmgerman/${PN}/archive/${COMMIT}.tar.gz -> 
${PN}-${COMMIT}.tar.gz"
+S="${WORKDIR}/${PN}-${COMMIT}"
+
+LICENSE="GPL-2+ myspell-en_CA-KevinAtkinson public-domain Princeton Ispell"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="sqlite test"
+RESTRICT="!test? ( test )"
+
+RDEPEND="dev-perl/IO-CaptureOutput
+       dev-perl/Spreadsheet-WriteExcel
+       virtual/perl-File-Temp
+       sqlite? (
+               dev-perl/DBD-SQLite
+               dev-perl/DBI
+       )"
+
+BDEPEND="virtual/perl-ExtUtils-MakeMaker
+       test? (
+               ${RDEPEND}
+               dev-perl/Test-Pod
+               dev-perl/Test-Strict
+               virtual/perl-Test-Simple
+       )"
+
+PATCHES=( "${FILESDIR}"/${PN}-2.0_pre1_p20170402-makefile.patch )
+
+src_compile() {
+       perl-module_src_compile
+       emake -C comments CXX="$(tc-getCXX)"
+}
+
+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