diff options
Diffstat (limited to 'app-text/ots')
-rw-r--r-- | app-text/ots/Manifest | 9 | ||||
-rw-r--r-- | app-text/ots/files/ots-0.5.0-automake-1.13.patch | 12 | ||||
-rw-r--r-- | app-text/ots/files/ots-0.5.0-fix-installation.patch | 11 | ||||
-rw-r--r-- | app-text/ots/files/ots-0.5.0-fix-underlinking.patch | 22 | ||||
-rw-r--r-- | app-text/ots/files/ots-0.5.0-math.patch | 11 | ||||
-rw-r--r-- | app-text/ots/metadata.xml | 8 | ||||
-rw-r--r-- | app-text/ots/ots-0.5.0-r1.ebuild | 54 |
7 files changed, 127 insertions, 0 deletions
diff --git a/app-text/ots/Manifest b/app-text/ots/Manifest new file mode 100644 index 000000000000..c170be2dda9b --- /dev/null +++ b/app-text/ots/Manifest @@ -0,0 +1,9 @@ +AUX ots-0.5.0-automake-1.13.patch 435 SHA256 9bac99ba35f13fa1563a6e154da73272fdade090d882612f7057ae32544dfc98 SHA512 9ff7d9117ea12917b967c386054afbc25c2c9a9e85d9930fa7ecdf9e0c230a64a6f3689d22c94a796f00d13cd652fd6d7bcfe21c7ccc1649ee58f68ca5f89a11 WHIRLPOOL 00bef4180c3f2b2b6c2df0de68dbb4d99652a7a7410b23694d31398ef53b700d55391c282e99fa8939a4c5c8361786d1cea93a38fd2aaaee0332a388e3c8b52a +AUX ots-0.5.0-fix-installation.patch 514 SHA256 cf2780a52212e8e1393d1e4799cc94ae9fef426f0633c7624c0a2c758d61b820 SHA512 490974d43f3001220505fe9b77830b57f0ffc8faf0ab262c3de8f50c4ada75df64588441f20810e6958ed78de5a2e898c889cb686eddeeccfe497f42cbfa4664 WHIRLPOOL ec165b6527687019a8eda175f2a46701aa2bcf6770dbac61310dc2bfabe6f1c39517949fbc2d1705b61d0ec14a28eeb54251d853a3f36c30622325b168f56680 +AUX ots-0.5.0-fix-underlinking.patch 863 SHA256 9c46f66814c7c30795101dc9258b484a64c3459a2be8fb91f4b766f285afc092 SHA512 34f189afbba9d1c8936142f27e5ab6ed4ab2eac8271a58e9295e46b993b0be7d48fa771cd62b3a8374da15b07deaa12eefcc01b0dd34643947cb43cd64f5d0a6 WHIRLPOOL 81230b7093e9483f52d792e250f4683e5f3827112962b1822bc9f7a1a02477dd434859730b30ba2b78b6f23de44e36860862fd045c495973e93d10afbad028c4 +AUX ots-0.5.0-math.patch 402 SHA256 329d2bef112039430a8d78592370e90f53c91c595a53b77a0bf0431fb26c26c2 SHA512 4ba250e3c51eb621bba6e8ee1d291719c86d04ecb2dc20cbd1bf7bae27ea22ffbe54376d690c24c84a0af0da9907dcf40d01c0aa53e9b610737930a442cf6918 WHIRLPOOL bbfeb9cf45aa4c2e5921e23927f34e4d2ab6b8a85888990341c0473ff961b83fda94f9f2c0b060f175925c034d8fa1db3dfec7d63057aa00ea58137a09b14740 +DIST ots-0.5.0.tar.gz 371126 SHA256 ea908d22256166d1200fef55a82dd3ea8e096a249eaaf0b926f3577f1a63e137 SHA512 736a672e16b741f2948e6874b88d4ade8e0450941915e65285f2fe661194a6d384a6abb267b15c3254c638750c644b4b2cf4279d7bda163b02336fcd8da9cfbe WHIRLPOOL 53fbbdc514231531f669eb5635549538f67523503c3550d7bff2deb207e293abc6efee0e6a9b2d627387c8577be971f97188b6fd2e209431b63c90df29c79357 +EBUILD ots-0.5.0-r1.ebuild 1124 SHA256 743cb684ac4515ea665bf2be4c1a3f1b910eecc29544f281edaa8877ea8ca56b SHA512 288c8c5dcb109b05dd0f36ed24a2419778e01da987b14c4f0d478f229979a7f01290f24a6aa1d2983c6fe23ba3b7eb2d4999e8a9ecdd27846050edab4f5c2d28 WHIRLPOOL 926f2949a89934d67ddef4aa31a4b8fd5a8ed124354bd4aa9271008240d57ff9976c32b3f709e6b98f665bb2307374975167f894548d0f6a10dcf858c82b01e2 +MISC ChangeLog 2671 SHA256 c178d458fc32e6b081267664706826bffc1fd3520e07d71aadbe38fd59c42971 SHA512 cf7ed7700bb3accd6a7fe7830c8d9d4c9a745c4c2bb8b75f8102bfffd6a4bcfa3c56205db48bc08936fc5261d4ff46c3cb9648ece8c53bf920082c9bc9405015 WHIRLPOOL 7aaa235f1d4e0a99aedb47c9c585b23e17439c37a66438f81245b2100a4b8b2607d115511c597cd8e15a54162c72de1f9a58d6d5573ef016d0ab0cfe0e524092 +MISC ChangeLog-2015 5461 SHA256 9313e9353aa6787d9592187ce94fc3cfe46d7ddd092ad109f9f8801aa9405459 SHA512 79f6083a7edf6f68958f9d62deb3b161abc71e270d46785cdaf253c2839c21e5c6623e7b07b7ef33ac1b7258caae2aea026cb61c17992cd8dfb001295ba1134d WHIRLPOOL 233f96b8d1dcf7e9c31bfebb68a5059f82b54ea60ad41d8aaaa9d45dd3dae9cda43a10f102799693b055eb4b4dbb4a8155cd0408ca5d7e97b8f012f874cfaeaf +MISC metadata.xml 243 SHA256 1bce04e723ab396868c8a2d6590d41b74aef49a87e96774b0ceceff5658ff468 SHA512 354efb009da3999e18811a3e91f53628d4ce26aa103544be6b5d42caf9c5d9881097e81777665f96c7828a15a7e38f1e4a118579a865eb4c740e580527b42774 WHIRLPOOL 532974727c923d44a0f71c610d7a39a1c05c3ae1d20abec7868703d9f942e31737c19a94065ede93f52deab3531b26477fb946d8651bd11b91ca3039725374d5 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 +} |