Import docx2txt-1.0:

Docx2txt is a Perl based command-line tool to convert Microsoft docx
documents to (ASCII) text files, preserving some formatting and document
information (which MS text conversion drops) along with appropriate
character conversions.  It can also recover text from damaged docx
documents in many cases.

tweaks and ok sthen@
This commit is contained in:
schwarze 2011-04-05 15:09:50 +00:00
parent 6e8810ecac
commit 34a89b9d08
5 changed files with 49 additions and 0 deletions

View File

@ -0,0 +1,25 @@
# $OpenBSD: Makefile,v 1.1.1.1 2011/04/05 15:09:50 schwarze Exp $
COMMENT = command line converter from Microsoft docx to ASCII text
DISTNAME = docx2txt-1.0
CATEGORIES = textproc
HOMEPAGE = http://docx2txt.sourceforge.net/
MAINTAINER = Ingo Schwarze <schwarze@openbsd.org>
# GPLv3+
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
PERMIT_DISTFILES_CDROM =Yes
PERMIT_DISTFILES_FTP = Yes
MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=docx2txt/}
EXTRACT_SUFX = .tgz
RUN_DEPENDS = archivers/unzip
NO_BUILD = Yes
NO_REGRESS = Yes
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/docx2txt.pl ${PREFIX}/bin/docx2txt
.include <bsd.port.mk>

View File

@ -0,0 +1,5 @@
MD5 (docx2txt-1.0.tgz) = ei00BMRFttLSTWK/X8aBFg==
RMD160 (docx2txt-1.0.tgz) = /ndDsNX9KpxjlPaUricVkebDvf0=
SHA1 (docx2txt-1.0.tgz) = EJ7GWXaQiXecNSyyionPQAhAeRw=
SHA256 (docx2txt-1.0.tgz) = 9I9pc2+nMFnZ3eHy9RjJr/qBdFFfEG3bOdakXi+iM9s=
SIZE (docx2txt-1.0.tgz) = 24795

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-docx2txt_pl,v 1.1.1.1 2011/04/05 15:09:50 schwarze Exp $
--- docx2txt.pl.orig Sun Oct 4 17:31:04 2009
+++ docx2txt.pl Tue Apr 5 16:07:08 2011
@@ -72,7 +72,7 @@
# first in current directory and then in the same location as this script.
#
-our $unzip = '/usr/bin/unzip'; # Windows path like 'C:/path/to/unzip.exe'
+our $unzip = 'unzip'; # rely on the PATH
our $newLine = "\n"; # Alternative is "\r\n".
our $listIndent = " "; # Indent nested lists by "\t", " " etc.
our $lineWidth = 80; # Line width, used for short line justification.

View File

@ -0,0 +1,5 @@
Docx2txt is a Perl based command-line tool to convert Microsoft docx
documents to (ASCII) text files, preserving some formatting and document
information (which MS text conversion drops) along with appropriate
character conversions. It can also recover text from damaged docx
documents in many cases.

View File

@ -0,0 +1,2 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2011/04/05 15:09:50 schwarze Exp $
bin/docx2txt