| 1 | |
| 2 | |
| 3 | |
| 4 | |
| 5 | |
| 6 | |
| 7 | |
| 8 | |
| 9 | |
| 10 | |
| 11 | |
| 12 | |
| 13 | |
| 14 | |
| 15 | |
| 16 | |
| 17 | |
| 18 | |
| 19 |
|
| 20 | (define-module (gnu packages ots)
|
| 21 | #:use-module (gnu packages)
|
| 22 | #:use-module (gnu packages compression)
|
| 23 | #:use-module (gnu packages glib)
|
| 24 | #:use-module (gnu packages pkg-config)
|
| 25 | #:use-module (gnu packages popt)
|
| 26 | #:use-module (gnu packages xml)
|
| 27 | #:use-module (guix packages)
|
| 28 | #:use-module (guix download)
|
| 29 | #:use-module (guix build-system gnu)
|
| 30 | #:use-module ((guix licenses) #:prefix license:))
|
| 31 |
|
| 32 | (define-public ots
|
| 33 | (package
|
| 34 | (name "ots")
|
| 35 | (version "0.5.0")
|
| 36 | (source
|
| 37 | (origin
|
| 38 | (method url-fetch)
|
| 39 | |
| 40 | |
| 41 | (uri (list (string-append "mirror://debian/pool/main/o/ots/ots_"
|
| 42 | version ".orig.tar.gz")
|
| 43 | (string-append "mirror://sourceforge/libots/libots/"
|
| 44 | name "-" version "/" name "-" version
|
| 45 | ".tar.gz")))
|
| 46 | (sha256
|
| 47 | (base32 "0dz1ccd7ymzk4swz1aly4im0k3pascnshmgg1whd2rk14li8v47a"))
|
| 48 | (patches (search-patches "ots-no-include-missing-file.patch"))))
|
| 49 |
|
| 50 | (build-system gnu-build-system)
|
| 51 | (arguments
|
| 52 | |
| 53 | |
| 54 | '(#:parallel-build? #f
|
| 55 |
|
| 56 | #:phases
|
| 57 | (modify-phases %standard-phases
|
| 58 | (add-after 'unpack 'fix-includes
|
| 59 | (lambda _
|
| 60 | (substitute* "src/libots.h"
|
| 61 | (("#include <glib.h>" all)
|
| 62 | (string-append all "\n#include <math.h>")))))
|
| 63 | (add-after 'configure 'set-shared-lib-extension
|
| 64 | (lambda _
|
| 65 | |
| 66 | |
| 67 | |
| 68 | |
| 69 | |
| 70 | (substitute* "libtool"
|
| 71 | (("shrext_cmds") "shrext")))))))
|
| 72 | (inputs
|
| 73 | (list glib popt libxml2 zlib))
|
| 74 | (native-inputs
|
| 75 | `(("glib:bin" ,glib "bin")
|
| 76 | ("pkg-config" ,pkg-config)))
|
| 77 | (synopsis "Tool for summarizing texts")
|
| 78 | (description
|
| 79 | "The Open Text Summarizer is a library and command-line tool for
|
| 80 | summarizing texts. The program reads a text and decides which sentences are
|
| 81 | important and which are not. OTS will create a short summary or will
|
| 82 | highlight the main ideas in the text.
|
| 83 |
|
| 84 | The program can either print the summarized text as plain text or HTML. If in
|
| 85 | HTML, the important sentences are highlighted.
|
| 86 |
|
| 87 | The program is multi lingual and works with UTF-8 encoding.")
|
| 88 | (home-page "http://libots.sourceforge.net/")
|
| 89 | (license license:gpl2+)))
|