public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Ulrich Müller" <ulm@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/dev/ulm:master commit in: dev-util/ninka/files/, dev-util/ninka/
Date: Tue, 26 Mar 2019 17:10:32 +0000 (UTC)	[thread overview]
Message-ID: <1553620186.27dffa7dff419a087ed1dd091bc98c98f685f5a4.ulm@gentoo> (raw)

commit:     27dffa7dff419a087ed1dd091bc98c98f685f5a4
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Tue Mar 26 17:09:46 2019 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Tue Mar 26 17:09:46 2019 +0000
URL:        https://gitweb.gentoo.org/repo/dev/ulm.git/commit/?id=27dffa7d

dev-util/ninka: Initial import.

Ebuild contributed by me.

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

 dev-util/ninka/Manifest                            |  1 +
 .../files/ninka-2.0_pre1_p20170402-braces.patch    | 11 +++++++
 .../files/ninka-2.0_pre1_p20170402-makefile.patch  | 22 +++++++++++++
 dev-util/ninka/metadata.xml                        |  7 +++++
 dev-util/ninka/ninka-2.0_pre1_p20170402.ebuild     | 36 ++++++++++++++++++++++
 5 files changed, 77 insertions(+)

diff --git a/dev-util/ninka/Manifest b/dev-util/ninka/Manifest
new file mode 100644
index 0000000..442d11b
--- /dev/null
+++ b/dev-util/ninka/Manifest
@@ -0,0 +1 @@
+DIST ninka-2.0_pre1_p20170402.tar.xz 136080 BLAKE2B 9c612dd3586681b1bb037d5c7271341fc652ca62d3e22ee29f330922d78e9a460e3bb2700f4216ea3fa564ed2e5c83a9c50cdea5db796851bbdc999b9f35658a SHA512 fc1c8f6e134c6c618852bc62b306c4e73fcd7443900f4d31d9abffe718e8b4fa7e3853631d0207f70e1223d00a72e976f4c3e7c8780a892113644ba5167f30a1

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 0000000..5cfeee2
--- /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 0000000..d5e046b
--- /dev/null
+++ b/dev-util/ninka/files/ninka-2.0_pre1_p20170402-makefile.patch
@@ -0,0 +1,22 @@
+--- 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:   "

diff --git a/dev-util/ninka/metadata.xml b/dev-util/ninka/metadata.xml
new file mode 100644
index 0000000..c665e48
--- /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 0000000..ae97c62
--- /dev/null
+++ b/dev-util/ninka/ninka-2.0_pre1_p20170402.ebuild
@@ -0,0 +1,36 @@
+# 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"
+
+RDEPEND="dev-perl/IO-CaptureOutput"
+
+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
+	dobin comments/comments
+	doman comments/comments.1
+	dodoc BUGS.org
+}


                 reply	other threads:[~2019-03-26 17:10 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1553620186.27dffa7dff419a087ed1dd091bc98c98f685f5a4.ulm@gentoo \
    --to=ulm@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox