# ChangeLog for app-text/ots
# Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-text/ots/ChangeLog,v 1.10 2005/09/03 00:41:27 vanquirius Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-text/ots/ChangeLog,v 1.11 2005/09/29 01:29:51 vanquirius Exp $
+
+ 29 Sep 2005; Marcelo Goes <vanquirius@gentoo.org>
+ +files/ots-0.4.2-gcc4.diff, ots-0.4.1.ebuild, ots-0.4.2.ebuild:
+ Do not dodoc INSTALL, add gcc4 patch.
*ots-0.4.2 (03 Sep 2005)
-MD5 677547a59e1d66ba9caab3275f716e82 ots-0.4.1.ebuild 849
-MD5 0204947ebc421e8b03cf09f27b5c2960 ChangeLog 1545
+MD5 1167e8a27c583ee55ba8845845d70373 ots-0.4.1.ebuild 842
+MD5 14788c47c58a00b231a98156f050afb7 ChangeLog 1704
MD5 5c0cf8693a8e3f46bbd06854f4d8a6f7 metadata.xml 258
-MD5 35134f9cd5fc509c13190bc50daba500 ots-0.4.2.ebuild 871
+MD5 23c3e97a0d8ac10f0ea3bd92ff3d6c01 ots-0.4.2.ebuild 958
+MD5 77ea1e5c9421e55a38bc2f9bebcb17ed files/ots-0.4.2-gcc4.diff 677
MD5 4fb352a699bbaed36ab4cd3ae199aca5 files/digest-ots-0.4.1 61
MD5 90b8180610e12a5b5f83f128256082ea files/digest-ots-0.4.2 61
--- /dev/null
+--- ots-0.4.2.orig/src/article.c 2005-09-28 22:11:41.000000000 -0300
++++ ots-0.4.2/src/article.c 2005-09-28 22:18:24.000000000 -0300
+@@ -35,7 +35,7 @@
+ ots_new_sentence (void)
+ {
+ OtsSentence *aLine = g_new0 (OtsSentence, 1);
+- (GList *) aLine->words = NULL;
++ aLine->words = (GList *)NULL;
+ aLine->wc = 0;
+ aLine->selected = 0;
+ aLine->score = 0;
+--- ots-0.4.2.orig/src/grader-tf.c 2005-09-28 22:11:41.000000000 -0300
++++ ots-0.4.2/src/grader-tf.c 2005-09-28 22:21:48.000000000 -0300
+@@ -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*/
+
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-text/ots/ots-0.4.1.ebuild,v 1.9 2005/09/03 00:41:27 vanquirius Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-text/ots/ots-0.4.1.ebuild,v 1.10 2005/09/29 01:29:51 vanquirius Exp $
DESCRIPTION="Open source Text Summarizer, as used in newer releases of abiword and kword."
HOMEPAGE="http://libots.sourceforge.net/"
src_install() {
einstall || die
rm -rf "${D}"/usr/share/doc/libots
- dodoc AUTHORS BUGS ChangeLog HACKING INSTALL NEWS README TODO
+ dodoc AUTHORS BUGS ChangeLog HACKING NEWS README TODO
cd "${S}"/doc/html
dohtml -r ./
}
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-text/ots/ots-0.4.2.ebuild,v 1.1 2005/09/03 00:41:27 vanquirius Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-text/ots/ots-0.4.2.ebuild,v 1.2 2005/09/29 01:29:51 vanquirius Exp $
+
+inherit eutils
DESCRIPTION="Open source Text Summarizer, as used in newer releases of abiword and kword."
HOMEPAGE="http://libots.sourceforge.net/"
DEPEND="${RDEPEND}
dev-util/pkgconfig"
+src_unpack() {
+ unpack ${A}; cd "${S}"
+ epatch "${FILESDIR}"/${P}-gcc4.diff
+}
+
src_compile() {
# bug 97448
econf --disable-gtk-doc || die
src_install() {
make DESTDIR="${D}" install || die
rm -rf "${D}"/usr/share/doc/libots
- dodoc AUTHORS BUGS ChangeLog HACKING INSTALL NEWS README TODO
+ dodoc AUTHORS BUGS ChangeLog HACKING NEWS README TODO
cd "${S}"/doc/html
dohtml -r ./
}