freebsd-ports/textproc/p5-docx2txt/Makefile
Steve Wills 7ed43bddc7 textproc/p5-docx2txt: create port
docx2txt is a perl based command line utility to convert Microsoft Office(Tm)
Docx documents to equivalent Text documents. Latest version supports
following features during text extraction.

*	Character conversions (" ' < & > - ... fraction and some mathematical
	symbols etc.); currency characters are converted to respective names
	like Euro.
*	Capitalisation of text blocks.
*	Center and right justification of text fitting in a line of
	(configurable) 80 columns.
*	Horizontal ruler, line breaks, paragraphs separation, tabs
*	Indicating hyperlinked text along with the hyperlink. (configurable)
*	Handling (bullet, decimal, letter, roman) lists along with (attempt at)
	indentation.

WWW: https://sourceforge.net/projects/docx2txt/

PR:		225113
Submitted by:	Piotr Kubaj <pkubaj@anongoth.pl>
2019-01-05 18:05:38 +00:00

28 lines
694 B
Makefile

# $FreeBSD$
PORTNAME= docx2txt
PORTVERSION= 1.4
CATEGORIES= textproc perl5
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/v${PORTVERSION}
PKGNAMEPREFIX= p5-
MAINTAINER= pkubaj@anongoth.pl
COMMENT= Utility to convert Docx documents to equivalent Text documents
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/COPYING
USES= perl5 tar:tgz
NO_ARCH= yes
NO_BUILD= yes
pre-patch:
${REINPLACE_CMD} -e 's|/etc|${PREFIX}/etc|' ${WRKSRC}/docx2txt.pl
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/docx2txt.pl ${STAGEDIR}${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKSRC}/docx2txt.sh ${STAGEDIR}${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/docx2txt.config ${STAGEDIR}${PREFIX}/etc/docx2txt.config.sample
.include <bsd.port.mk>