diff options
Diffstat (limited to 'app-text/ots')
-rw-r--r-- | app-text/ots/Manifest | 1 | ||||
-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 | 10 | ||||
-rw-r--r-- | app-text/ots/ots-0.5.0-r1.ebuild | 55 |
7 files changed, 122 insertions, 0 deletions
diff --git a/app-text/ots/Manifest b/app-text/ots/Manifest new file mode 100644 index 000000000000..a22f6a10bf73 --- /dev/null +++ b/app-text/ots/Manifest @@ -0,0 +1 @@ +DIST ots-0.5.0.tar.gz 371126 SHA256 ea908d22256166d1200fef55a82dd3ea8e096a249eaaf0b926f3577f1a63e137 SHA512 736a672e16b741f2948e6874b88d4ade8e0450941915e65285f2fe661194a6d384a6abb267b15c3254c638750c644b4b2cf4279d7bda163b02336fcd8da9cfbe WHIRLPOOL 53fbbdc514231531f669eb5635549538f67523503c3550d7bff2deb207e293abc6efee0e6a9b2d627387c8577be971f97188b6fd2e209431b63c90df29c79357 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..571d4e4a95a6 --- /dev/null +++ b/app-text/ots/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>maintainer-needed@gentoo.org</email> + </maintainer> + <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..33c1d78a22ac --- /dev/null +++ b/app-text/ots/ots-0.5.0-r1.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +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 +} |