diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2019-04-05 21:17:31 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2019-04-05 21:17:31 +0100 |
commit | dc7cbdfa65fd814b3b9aa3c56257da201109e807 (patch) | |
tree | c85d72f6f31f21f178069c9d41d41a7c1ff4b362 /dev-util/ninka | |
parent | 0706fc6986773f4e4d391deff4ad5143c464ea4e (diff) |
gentoo resync : 05.04.2019
Diffstat (limited to 'dev-util/ninka')
-rw-r--r-- | dev-util/ninka/Manifest | 5 | ||||
-rw-r--r-- | dev-util/ninka/files/ninka-2.0_pre1_p20170402-braces.patch | 11 | ||||
-rw-r--r-- | dev-util/ninka/files/ninka-2.0_pre1_p20170402-makefile.patch | 33 | ||||
-rw-r--r-- | dev-util/ninka/metadata.xml | 7 | ||||
-rw-r--r-- | dev-util/ninka/ninka-2.0_pre1_p20170402.ebuild | 52 |
5 files changed, 108 insertions, 0 deletions
diff --git a/dev-util/ninka/Manifest b/dev-util/ninka/Manifest new file mode 100644 index 000000000000..ddcc17ab1f70 --- /dev/null +++ b/dev-util/ninka/Manifest @@ -0,0 +1,5 @@ +AUX ninka-2.0_pre1_p20170402-braces.patch 284 BLAKE2B a417f77193b086485ca5522cc14328c54ba52e1a0a8ae263c1d2880f5c6efa0629ed6c180675c844af9595ba977a453548400964b2cc09f70c758c90937f2c8c SHA512 76bfcd86036fccca00f2f5e145a52aa280fb129b7dccdcb6c2f1dcd591b35d964baef3f82116f7f2159394be227766ebaa15bce7e3177f8a15fbeda41c05be71 +AUX ninka-2.0_pre1_p20170402-makefile.patch 911 BLAKE2B 40157c2517b8959842a83d47d60f937a5da8d0c6da8ed3378fc186fe7a6b528d048b8f4227cc529b5862b72a489c7f3a5ce5280b7977dfe425e01518adb6db01 SHA512 4b9c604608446b49d308221757f986f8c9c901aacbd9c09dba1b26eecb6798e381782e49270f79ecbf4cff45d50c4dba99cc04b9fd9d428a9c8b66d7d74043aa +DIST ninka-2.0_pre1_p20170402.tar.xz 136080 BLAKE2B 9c612dd3586681b1bb037d5c7271341fc652ca62d3e22ee29f330922d78e9a460e3bb2700f4216ea3fa564ed2e5c83a9c50cdea5db796851bbdc999b9f35658a SHA512 fc1c8f6e134c6c618852bc62b306c4e73fcd7443900f4d31d9abffe718e8b4fa7e3853631d0207f70e1223d00a72e976f4c3e7c8780a892113644ba5167f30a1 +EBUILD ninka-2.0_pre1_p20170402.ebuild 1112 BLAKE2B 6e0e0217108598a7ccdaf27469db6e4ecbe95361d737fb9fe2f2c38e0901864e530362f1742c9a661a018b0442d168f8392705079d735b44924cd178b869bb1d SHA512 c24e1c10bc810a7363a7dc9d5ffcca001bf9a73eb2c1041330b743acedc66fd8cc1aed67b73ce432d9446adcaa1d704751f5726a9c4c222df1203753f27d8dfb +MISC metadata.xml 212 BLAKE2B ecb53eb3efac6ceef048d345601c5ca0430e2f62d6409dc2a18494ee188f792d4763892816f197418d2e9a6d04452091a0c69d83afc207b366fca816632209ee SHA512 3919b8b096abf61c7edaa6a76898603b6ca2e206e2eccd27c671957a9d085bc2591a2fb4839a85ef2a51dcbf887bb2c752d4b38e82ea19c48dfd6d99b67954fa diff --git a/dev-util/ninka/files/ninka-2.0_pre1_p20170402-braces.patch b/dev-util/ninka/files/ninka-2.0_pre1_p20170402-braces.patch new file mode 100644 index 000000000000..54e4d4a50feb --- /dev/null +++ b/dev-util/ninka/files/ninka-2.0_pre1_p20170402-braces.patch @@ -0,0 +1,11 @@ +--- ninka-orig/lib/Ninka/SentenceExtractor.pm ++++ ninka/lib/Ninka/SentenceExtractor.pm +@@ -114,7 +114,7 @@ + + # check for trailing bullets of different types + s/^o //; +- s/^\s*[0-9]{1-2}+\s*[\-\)]//; ++ s/^\s*[0-9]{1,2}+\s*[\-\)]//; + s/^[ \t]+//; + s/[ \t]+$//; + diff --git a/dev-util/ninka/files/ninka-2.0_pre1_p20170402-makefile.patch b/dev-util/ninka/files/ninka-2.0_pre1_p20170402-makefile.patch new file mode 100644 index 000000000000..1799d416b26b --- /dev/null +++ b/dev-util/ninka/files/ninka-2.0_pre1_p20170402-makefile.patch @@ -0,0 +1,33 @@ +--- ninka-orig/comments/Makefile ++++ ninka/comments/Makefile +@@ -11,12 +11,13 @@ + #DEBUG = -g -DDEBUG -DIODEBUG + + +-all: +- g++ $(DEBUG) $(OPTIONS) $(DEFINES) -c io.cpp +- g++ $(DEBUG) $(OPTIONS) $(DEFINES) -c dformat.cpp +- g++ $(DEBUG) $(OPTIONS) $(DEFINES) -c func.cpp +- g++ $(DEBUG) $(OPTIONS) $(DEFINES) -c main.cpp +- g++ -o $(NAME) main.o io.o dformat.o func.o ++all: $(NAME) ++ ++%.o: %.cpp ++ $(CXX) $(CXXFLAGS) $(DEFINES) -c $< ++ ++$(NAME): main.o io.o dformat.o func.o ++ $(CXX) $(LDFLAGS) -o $@ $^ + + install: + @echo -n "Installing binary: " +--- ninka-orig/Makefile.PL ++++ ninka/Makefile.PL +@@ -13,7 +13,7 @@ + 'Yuki Manabe <y-manabe@ist.osaka-u.ac.jp>', + 'René Scheibe <rene.scheibe@gmail.com>', + ], +- EXE_FILES => ['bin/ninka'], ++ EXE_FILES => ['bin/ninka', 'bin/ninka-excel', 'bin/ninka-sqlite'], + CONFIGURE_REQUIRES => { + 'ExtUtils::MakeMaker' => '6.52', + }, diff --git a/dev-util/ninka/metadata.xml b/dev-util/ninka/metadata.xml new file mode 100644 index 000000000000..c665e48637be --- /dev/null +++ b/dev-util/ninka/metadata.xml @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="person"> + <email>ulm@gentoo.org</email> +</maintainer> +</pkgmetadata> diff --git a/dev-util/ninka/ninka-2.0_pre1_p20170402.ebuild b/dev-util/ninka/ninka-2.0_pre1_p20170402.ebuild new file mode 100644 index 000000000000..56bd4273a95d --- /dev/null +++ b/dev-util/ninka/ninka-2.0_pre1_p20170402.ebuild @@ -0,0 +1,52 @@ +# Copyright 2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit perl-module toolchain-funcs + +DESCRIPTION="A license identification tool for source code" +HOMEPAGE="http://ninka.turingmachine.org/" +# snapshot of https://github.com/dmgerman/ninka +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="sqlite test" + +RDEPEND="dev-perl/IO-CaptureOutput + dev-perl/Spreadsheet-WriteExcel + virtual/perl-File-Temp + sqlite? ( + dev-perl/DBD-SQLite + dev-perl/DBI + )" + +DEPEND="virtual/perl-ExtUtils-MakeMaker + test? ( + ${RDEPEND} + dev-perl/Test-Pod + dev-perl/Test-Strict + virtual/perl-Test-Simple + )" + +S="${WORKDIR}/${PN}" + +PATCHES=( + "${FILESDIR}"/${P}-braces.patch + "${FILESDIR}"/${P}-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 +} |