summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcelo Góes <vanquirius@gentoo.org>2008-05-17 15:24:43 +0000
committerMarcelo Góes <vanquirius@gentoo.org>2008-05-17 15:24:43 +0000
commitc99595c155649059c95db707833b84f843d875aa (patch)
tree01be78ef735b0214dd9b63159b53d034c4abe2c6 /app-text/ots
parentSimplify postprocess_desktop_entries(). (diff)
downloadgentoo-2-c99595c155649059c95db707833b84f843d875aa.tar.gz
gentoo-2-c99595c155649059c95db707833b84f843d875aa.tar.bz2
gentoo-2-c99595c155649059c95db707833b84f843d875aa.zip
Include math.h in grader-tf.c to avoid log function warnings, use emake install
instead of make install. (Portage version: 2.1.4.4)
Diffstat (limited to 'app-text/ots')
-rw-r--r--app-text/ots/ChangeLog9
-rw-r--r--app-text/ots/files/ots-0.5.0-math.patch11
-rw-r--r--app-text/ots/ots-0.5.0.ebuild14
3 files changed, 28 insertions, 6 deletions
diff --git a/app-text/ots/ChangeLog b/app-text/ots/ChangeLog
index 4f1ca55391fa..a17a1d1e9eaa 100644
--- a/app-text/ots/ChangeLog
+++ b/app-text/ots/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for app-text/ots
-# Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-text/ots/ChangeLog,v 1.19 2007/10/07 22:43:39 eva Exp $
+# Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-text/ots/ChangeLog,v 1.20 2008/05/17 15:24:43 vanquirius Exp $
+
+ 17 May 2008; Marcelo Goes <vanquirius@gentoo.org>
+ +files/ots-0.5.0-math.patch, ots-0.5.0.ebuild:
+ Include math.h in grader-tf.c to avoid log function warnings, use emake
+ install instead of make install.
*ots-0.5.0 (07 Oct 2007)
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/ots-0.5.0.ebuild b/app-text/ots/ots-0.5.0.ebuild
index 515bdd076d81..b395f8877100 100644
--- a/app-text/ots/ots-0.5.0.ebuild
+++ b/app-text/ots/ots-0.5.0.ebuild
@@ -1,8 +1,8 @@
-# Copyright 1999-2007 Gentoo Foundation
+# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-text/ots/ots-0.5.0.ebuild,v 1.1 2007/10/07 22:43:39 eva Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-text/ots/ots-0.5.0.ebuild,v 1.2 2008/05/17 15:24:43 vanquirius Exp $
-inherit
+inherit eutils
DESCRIPTION="Open source Text Summarizer, as used in newer releases of abiword and kword."
HOMEPAGE="http://libots.sourceforge.net/"
@@ -20,6 +20,12 @@ RDEPEND="=dev-libs/glib-2*
DEPEND="${RDEPEND}
dev-util/pkgconfig"
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/${P}-math.patch
+}
+
src_compile() {
# bug 97448
econf --disable-gtk-doc || die
@@ -32,7 +38,7 @@ src_compile() {
}
src_install() {
- make DESTDIR="${D}" install || die
+ emake DESTDIR="${D}" install || die
rm -rf "${D}"/usr/share/doc/libots
dodoc AUTHORS BUGS ChangeLog HACKING NEWS README TODO
cd "${S}"/doc/html