diff options
author | Vagrant Cascadian <vagrant@debian.org> | 2019-09-05 16:12:08 -0700 |
---|---|---|
committer | Vagrant Cascadian <vagrant@debian.org> | 2019-09-08 00:21:21 -0700 |
commit | bc5aa386675cb39aaf034d73af406c3ddffb4cb0 (patch) | |
tree | 20114c29c3966968a8a447ada77d9129aff78fe8 /gnu/packages/textutils.scm | |
parent | d54ca1cd4d77a945ad07dba34a69c23a3e57b3f1 (diff) | |
download | guix-bc5aa386675cb39aaf034d73af406c3ddffb4cb0.tar.gz |
gnu: Add odt2txt.
* gnu/packages/textutils (odt2txt): New variable. * gnu/packages/package-management (diffoscope)[native-inputs]: Add odt2txt. [use-modules]: Remove accidentally added libreoffice package module.
Diffstat (limited to 'gnu/packages/textutils.scm')
-rw-r--r-- | gnu/packages/textutils.scm | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/gnu/packages/textutils.scm b/gnu/packages/textutils.scm index 388f164428..2da31973f4 100644 --- a/gnu/packages/textutils.scm +++ b/gnu/packages/textutils.scm @@ -879,6 +879,44 @@ indentation. (home-page "http://docx2txt.sourceforge.net") (license license:gpl3+))) +(define-public odt2txt + (package + (name "odt2txt") + (version "0.5") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/dstosberg/odt2txt/") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0im3kzvhxkjlx57w6h13mc9584c74ma1dyymgvpq2y61av3gc35v")))) + (build-system gnu-build-system) + (arguments + `(#:tests? #f ; no make check + #:make-flags (list "CC=gcc" + (string-append "DESTDIR=" (assoc-ref %outputs "out"))) + #:phases + (modify-phases %standard-phases + ;; no configure script + (delete 'configure)))) + (inputs + `(("zlib" ,zlib))) + (home-page "https://github.com/dstosberg/odt2txt/") + (synopsis "Converter from OpenDocument Text to plain text") + (description "odt2txt is a command-line tool which extracts the text out +of OpenDocument Texts, as produced by OpenOffice.org, KOffice, StarOffice and +others. + +odt2txt can also extract text from some file formats similar to OpenDocument +Text, such as OpenOffice.org XML (*.sxw), which was used by OpenOffice.org +version 1.x and older StarOffice versions. To a lesser extent, odt2txt may be +useful to extract content from OpenDocument spreadsheets (*.ods) and +OpenDocument presentations (*.odp).") + (license license:gpl2))) + (define-public opencc (package (name "opencc") |