* gnu/packages/patches/ots-no-include-missing-file.patch: New file.
* gnu/packages/ots.scm: New file.
* gnu-system.am (GNU_SYSTEM_MODULES): Add ots.scm.
(dist_patch_DATA): Add ots-no-include-missing-file.patch.
---
gnu-system.am | 2 +
gnu/packages/ots.scm | 74 ++++++++++++++++++++
.../patches/ots-no-include-missing-file.patch | 14 ++++
3 files changed, 90 insertions(+)
create mode 100644 gnu/packages/ots.scm
create mode 100644 gnu/packages/patches/ots-no-include-missing-file.patch
diff --git a/gnu-system.am b/gnu-system.am
index 868cd59..b8465d6 100644
--- a/gnu-system.am
+++ b/gnu-system.am
@@ -188,6 +188,7 @@ GNU_SYSTEM_MODULES = \
gnu/packages/openldap.scm \
gnu/packages/openssl.scm \
gnu/packages/orpheus.scm \
+ gnu/packages/ots.scm \
gnu/packages/package-management.scm \
gnu/packages/parallel.scm \
gnu/packages/patchutils.scm \
@@ -362,6 +363,7 @@ dist_patch_DATA = \
gnu/packages/patches/module-init-tools-moduledir.patch \
gnu/packages/patches/nvi-assume-preserve-path.patch \
gnu/packages/patches/orpheus-cast-errors-and-includes.patch \
+ gnu/packages/patches/ots-no-include-missing-file.patch \
gnu/packages/patches/patchelf-page-size.patch \
gnu/packages/patches/patchutils-xfail-gendiff-tests.patch \
gnu/packages/patches/perl-no-sys-dirs.patch \
diff --git a/gnu/packages/ots.scm b/gnu/packages/ots.scm
new file mode 100644
index 0000000..5e19b07
--- /dev/null
+++ b/gnu/packages/ots.scm
@@ -0,0 +1,74 @@
+;;; GNU Guix --- Functional package management for GNU
+;;; Copyright © 2014 Marek Benc
+;;;
+;;; This file is part of GNU Guix.
+;;;
+;;; GNU Guix is free software; you can redistribute it and/or modify it
+;;; under the terms of the GNU General Public License as published by
+;;; the Free Software Foundation; either version 3 of the License, or (at
+;;; your option) any later version.
+;;;
+;;; GNU Guix is distributed in the hope that it will be useful, but
+;;; WITHOUT ANY WARRANTY; without even the implied warranty of
+;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+;;; GNU General Public License for more details.
+;;;
+;;; You should have received a copy of the GNU General Public License
+;;; along with GNU Guix. If not, see .
+
+(define-module (gnu packages ots)
+ #:use-module (gnu packages)
+ #:use-module (gnu packages compression)
+ #:use-module (gnu packages glib)
+ #:use-module (gnu packages pkg-config)
+ #:use-module (gnu packages popt)
+ #:use-module (gnu packages xml)
+ #:use-module (guix packages)
+ #:use-module (guix download)
+ #:use-module (guix build-system gnu)
+ #:use-module ((guix licenses)
+ #:renamer (symbol-prefix-proc 'license:)))
+
+(define-public ots
+ (package
+ (name "ots")
+ (version "0.5.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri
+ (string-append "http://sourceforge.net/projects/libots/files/libots/"
+ name "-" version "/" name "-" version ".tar.gz/download"))
+ (file-name
+ (string-append
+ name "-" version ".tar.gz"))
+ (sha256
+ (base32 "0dz1ccd7ymzk4swz1aly4im0k3pascnshmgg1whd2rk14li8v47a"))
+ (patches
+ (list (search-patch "ots-no-include-missing-file.patch")))))
+
+ (build-system gnu-build-system)
+ (inputs
+ `(("glib" ,glib)
+ ("popt" ,popt)
+ ("libxml2" ,libxml2)
+ ("zlib" ,zlib)))
+ (native-inputs
+ `(("glib:bin" ,glib "bin")
+ ("pkg-config" ,pkg-config)))
+ (synopsis "Tool for summarizing texts")
+ (description
+ "The Open Text Summarizer is a free tool for summarizing texts. The
+program reads a text and decides which sentences are important and which are
+not. OTS will create a short summary or will highlight the main ideas in the text.
+
+OTS is both a library and a command line tool. Word processors such as AbiWord
+and KWord can link to the library and summarize documents while the command line
+tool lets you summarize text on the console.
+
+The program can either print the summarized text as plain text or HTML. If in
+HTML, the important sentences are highlighted.
+
+The program is multi lingual and works with UTF-8 encoding.")
+ (home-page "http://libots.sourceforge.net/")
+ (license license:gpl2+)))
diff --git a/gnu/packages/patches/ots-no-include-missing-file.patch b/gnu/packages/patches/ots-no-include-missing-file.patch
new file mode 100644
index 0000000..c23c7c3
--- /dev/null
+++ b/gnu/packages/patches/ots-no-include-missing-file.patch
@@ -0,0 +1,14 @@
+The file $(top_srcdir)/gtk-doc.make doesn't exist, so don't include it.
+
+--- a/doc/Makefile.in 2007-04-08 20:17:25.000000000 +0200
++++ b/doc/Makefile.in 2014-09-06 23:19:41.413397662 +0200
+@@ -240,9 +240,6 @@
+ distclean-generic clean-generic maintainer-clean-generic clean \
+ mostlyclean distclean maintainer-clean
+
+-
+-include $(top_srcdir)/gtk-doc.make
+-
+ # Tell versions [3.59,3.63) of GNU make to not export all variables.
+ # Otherwise a system limit (for SysV at least) may be exceeded.
+ .NOEXPORT:
--
1.7.10.4