summaryrefslogtreecommitdiff
path: root/app-text/ots
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
commit8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch)
tree7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /app-text/ots
parent30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff)
gentoo resync : 14.07.2018
Diffstat (limited to 'app-text/ots')
-rw-r--r--app-text/ots/Manifest7
-rw-r--r--app-text/ots/files/ots-0.5.0-automake-1.13.patch12
-rw-r--r--app-text/ots/files/ots-0.5.0-fix-installation.patch11
-rw-r--r--app-text/ots/files/ots-0.5.0-fix-underlinking.patch22
-rw-r--r--app-text/ots/files/ots-0.5.0-math.patch11
-rw-r--r--app-text/ots/metadata.xml8
-rw-r--r--app-text/ots/ots-0.5.0-r1.ebuild54
7 files changed, 125 insertions, 0 deletions
diff --git a/app-text/ots/Manifest b/app-text/ots/Manifest
new file mode 100644
index 000000000000..4a6643e14f26
--- /dev/null
+++ b/app-text/ots/Manifest
@@ -0,0 +1,7 @@
+AUX ots-0.5.0-automake-1.13.patch 435 BLAKE2B a4ea226fa489a0d42f73c1f2bc936b10dd875067190f0f1f2c824209ad38511beb7baf471438408564e5e66af7980714e64a1345fc5b7b27bfe7df9394860c63 SHA512 9ff7d9117ea12917b967c386054afbc25c2c9a9e85d9930fa7ecdf9e0c230a64a6f3689d22c94a796f00d13cd652fd6d7bcfe21c7ccc1649ee58f68ca5f89a11
+AUX ots-0.5.0-fix-installation.patch 514 BLAKE2B 932a241591dcc23b9a57070e23422f9ae8077061f812ab262d63ed069bac1d7984a66169d47640359dfbb41ed779928470d81b604b6695b9a8fbf5c6291c2104 SHA512 490974d43f3001220505fe9b77830b57f0ffc8faf0ab262c3de8f50c4ada75df64588441f20810e6958ed78de5a2e898c889cb686eddeeccfe497f42cbfa4664
+AUX ots-0.5.0-fix-underlinking.patch 863 BLAKE2B a85d3c6d4c004a3105935e013705e10e26159500f7dd95c2edf6fcccf1af9bfd1a1f8854feba37ed7b8473e8c272d355367eb795486cc65b820c264a4dd32ed6 SHA512 34f189afbba9d1c8936142f27e5ab6ed4ab2eac8271a58e9295e46b993b0be7d48fa771cd62b3a8374da15b07deaa12eefcc01b0dd34643947cb43cd64f5d0a6
+AUX ots-0.5.0-math.patch 402 BLAKE2B 647dd793323f1eb6a470015053c066593a6fc4da95c3b36f3e0c7926e38ebd75997fd3482dffa3bda850f70fac5a8a65ad19cb6e725fd514d4e9d4b366d9fec1 SHA512 4ba250e3c51eb621bba6e8ee1d291719c86d04ecb2dc20cbd1bf7bae27ea22ffbe54376d690c24c84a0af0da9907dcf40d01c0aa53e9b610737930a442cf6918
+DIST ots-0.5.0.tar.gz 371126 BLAKE2B 05785a4d4ec5feba421762ba58a7dab649f3fadcf83a3f809a73b8027c6668263a29305766aba1bba4ce9447e115a89a59788026d567b5b82f9e1c1f7a934d97 SHA512 736a672e16b741f2948e6874b88d4ade8e0450941915e65285f2fe661194a6d384a6abb267b15c3254c638750c644b4b2cf4279d7bda163b02336fcd8da9cfbe
+EBUILD ots-0.5.0-r1.ebuild 1124 BLAKE2B 1f3213172db8d4c7e23170c887fc34e85611f22a5908e949545d8721af069100374b9b890d3d33ef6e33bb8894b157f2a24679c389ff3eac538869190e2eb66f SHA512 288c8c5dcb109b05dd0f36ed24a2419778e01da987b14c4f0d478f229979a7f01290f24a6aa1d2983c6fe23ba3b7eb2d4999e8a9ecdd27846050edab4f5c2d28
+MISC metadata.xml 243 BLAKE2B aa2c4e92961faa40826e16a92582bb02cacbe1a10bd1e6e8d169560472923ce521ec642b1b0175ad5beac315e575d65c9a23466b08cc95eb9605ed2376af50d1 SHA512 354efb009da3999e18811a3e91f53628d4ce26aa103544be6b5d42caf9c5d9881097e81777665f96c7828a15a7e38f1e4a118579a865eb4c740e580527b42774
diff --git a/app-text/ots/files/ots-0.5.0-automake-1.13.patch b/app-text/ots/files/ots-0.5.0-automake-1.13.patch
new file mode 100644
index 000000000000..074eb0e53a83
--- /dev/null
+++ b/app-text/ots/files/ots-0.5.0-automake-1.13.patch
@@ -0,0 +1,12 @@
+diff -up ots-0.5.0/configure.in.automake-1_13 ots-0.5.0/configure.in
+--- ots-0.5.0/configure.in.automake-1_13 2007-04-08 20:12:42.000000000 +0200
++++ ots-0.5.0/configure.in 2013-01-09 02:31:52.690211708 +0100
+@@ -34,7 +34,7 @@ PACKAGE=ots
+
+ dnl Specify a configuration file
+ dnl Initialize automake stuff
+-AM_CONFIG_HEADER(ots-config.h)
++AC_CONFIG_HEADERS(ots-config.h)
+ AM_INIT_AUTOMAKE($PACKAGE, $OTS_VERSION)
+ AM_MAINTAINER_MODE
+
diff --git a/app-text/ots/files/ots-0.5.0-fix-installation.patch b/app-text/ots/files/ots-0.5.0-fix-installation.patch
new file mode 100644
index 000000000000..757f4f86b80b
--- /dev/null
+++ b/app-text/ots/files/ots-0.5.0-fix-installation.patch
@@ -0,0 +1,11 @@
+--- dic/Makefile.am~ 2003-07-22 16:56:03.000000000 +0200
++++ dic/Makefile.am 2009-06-01 00:40:17.000000000 +0200
+@@ -1,7 +1,7 @@
+ DICTS=bg.xml ca.xml cs.xml cy.xml da.xml de.xml el.xml en.xml eo.xml es.xml \
+ et.xml eu.xml fi.xml fr.xml ga.xml gl.xml he.xml hu.xml ia.xml id.xml \
+ is.xml it.xml lv.xml mi.xml ms.xml mt.xml nl.xml nn.xml pl.xml pt.xml \
+- ro.xml ru.xml sv.xml tl.xml tr.xml uk.xml yi.xml en.xml
++ ro.xml ru.xml sv.xml tl.xml tr.xml uk.xml yi.xml
+
+ pkgdata_DATA = $(DICTS)
+
diff --git a/app-text/ots/files/ots-0.5.0-fix-underlinking.patch b/app-text/ots/files/ots-0.5.0-fix-underlinking.patch
new file mode 100644
index 000000000000..dd9295930c33
--- /dev/null
+++ b/app-text/ots/files/ots-0.5.0-fix-underlinking.patch
@@ -0,0 +1,22 @@
+--- src/Makefile.in.orig 2007-04-08 20:17:23.000000000 +0200
++++ src/Makefile.in 2008-07-05 02:16:42.000000000 +0200
+@@ -108,7 +108,7 @@
+
+ lib_LTLIBRARIES = libots-1.la
+
+-libots_1_la_LIBADD = $(OTS_LIBS)
++libots_1_la_LIBADD = $(OTS_LIBS) -lm
+ libots_1_la_LDFLAGS = -version-info @VERSION_INFO@ $(no_undefined)
+ libots_1_la_SOURCES = libots.h article.c dictionary.c grader.c grader-tf.c grader-tc.c grader-tc.h html.c parser.c text.c stemmer.c highlighter.c wordlist.c relations.c
+
+--- src/Makefile.am~ 2007-04-08 18:21:51.000000000 +0200
++++ src/Makefile.am 2009-06-01 00:28:53.000000000 +0200
+@@ -20,7 +20,7 @@
+
+ lib_LTLIBRARIES = libots-1.la
+
+-libots_1_la_LIBADD = $(OTS_LIBS)
++libots_1_la_LIBADD = $(OTS_LIBS) -lm
+ libots_1_la_LDFLAGS = -version-info @VERSION_INFO@ $(no_undefined)
+ libots_1_la_SOURCES = \
+ libots.h \
diff --git a/app-text/ots/files/ots-0.5.0-math.patch b/app-text/ots/files/ots-0.5.0-math.patch
new file mode 100644
index 000000000000..da964c25f612
--- /dev/null
+++ b/app-text/ots/files/ots-0.5.0-math.patch
@@ -0,0 +1,11 @@
+diff --exclude='*~' -Naur ots-0.5.0.orig/src/grader-tf.c ots-0.5.0/src/grader-tf.c
+--- ots-0.5.0.orig/src/grader-tf.c 2008-05-17 12:17:23.000000000 +0000
++++ ots-0.5.0/src/grader-tf.c 2008-05-17 12:17:37.000000000 +0000
+@@ -22,6 +22,7 @@
+ #include <stdlib.h>
+ #include <string.h>
+ #include "libots.h"
++#include <math.h>
+
+ /*Grader - using the Term frequency algorithm. Will give each line a score*/
+
diff --git a/app-text/ots/metadata.xml b/app-text/ots/metadata.xml
new file mode 100644
index 000000000000..88f5ac008b4a
--- /dev/null
+++ b/app-text/ots/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <!-- maintainer-needed -->
+ <upstream>
+ <remote-id type="sourceforge">libots</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-text/ots/ots-0.5.0-r1.ebuild b/app-text/ots/ots-0.5.0-r1.ebuild
new file mode 100644
index 000000000000..9df04cf45067
--- /dev/null
+++ b/app-text/ots/ots-0.5.0-r1.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit autotools eutils
+
+DESCRIPTION="Open source Text Summarizer, as used in newer releases of abiword and kword"
+HOMEPAGE="http://libots.sourceforge.net/"
+SRC_URI="mirror://sourceforge/libots/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 ~arm hppa ~mips ppc ppc64 ~sparc x86"
+IUSE=""
+
+RDEPEND="
+ dev-libs/glib:2
+ >=dev-libs/libxml2-2.4.23
+ >=dev-libs/popt-1.5
+"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+"
+
+DOCS="AUTHORS BUGS ChangeLog HACKING NEWS README TODO"
+
+src_prepare() {
+ # ugly ugly hack, kick upstream to fix its packaging
+ touch "${S}"/gtk-doc.make
+
+ epatch "${FILESDIR}"/${P}-math.patch
+ epatch "${FILESDIR}"/${P}-automake-1.13.patch
+ epatch "${FILESDIR}"/${P}-fix-installation.patch
+ epatch "${FILESDIR}"/${P}-fix-underlinking.patch
+ eautoreconf
+}
+
+src_configure() {
+ # bug 97448
+ econf \
+ --disable-gtk-doc \
+ --disable-static
+}
+
+src_compile() {
+ # parallel make fails, bug 112932
+ emake -j1
+}
+
+src_install() {
+ default
+ prune_libtool_files
+ rm -rf "${D}"/usr/share/doc/libots
+}