mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
dd1a096260
OpenDocument (ODF, the ISO standardized format used for texts, spreadsheets and presentations). Conversion is based on a XSLT which makes it easy to convert DocBook->ODF, ODT, ODS and ODP as all these documents are XML based. Also goal of docbook2odf is to generate well formatted documents in OpenDocument, ready to be used in instant, with actually considering current rules of the Corporate Identity of organizations. Final results should not be restricted to text like documents but also many other forms could be generated, like presentations, charts or forms with images and multimedia. The result is provided in a one zipped ODF file (.odt/.odp/.ods) with all required content. There are group of utilities like docbook2odt, docbook2ods and docbook2odp as docbook2odf is actually universally converting to these respective formats. WWW: http://open.comsultia.com/docbook2odf/ PR: ports/171820 Submitted by: nemysis (self) Approved by: pawel (mentor)
45 lines
1.4 KiB
Makefile
45 lines
1.4 KiB
Makefile
# Created by: Rusmir Dusko <nemysis@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= docbook2odf
|
|
PORTVERSION= 0.244
|
|
CATEGORIES= textproc perl5
|
|
MASTER_SITES= http://open.comsultia.com/docbook2odf/dwn/
|
|
|
|
MAINTAINER= nemysis@FreeBSD.org
|
|
COMMENT= Convert docbook document to Oasis Open Document
|
|
|
|
LICENSE= GPLv2
|
|
|
|
LIB_DEPENDS= libsablot.so:${PORTSDIR}/textproc/sablotron \
|
|
libxslt.so:${PORTSDIR}/textproc/libxslt
|
|
RUN_DEPENDS= convert:${PORTSDIR}/graphics/ImageMagick \
|
|
zip:${PORTSDIR}/archivers/zip \
|
|
p5-Archive-Zip>=0:${PORTSDIR}/archivers/p5-Archive-Zip
|
|
|
|
USES= desktop-file-utils perl5 shebangfix
|
|
SHEBANG_FILES= utils/maketests utils/${PORTNAME}
|
|
USE_PERL5= run
|
|
NO_BUILD= yes
|
|
|
|
PORTEXAMPLES= *
|
|
|
|
OPTIONS_DEFINE= EXAMPLES
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|#!/usr/bin/perl|#!${PERL}|' \
|
|
${WRKSRC}/tests/tests/docbook-43.001.xml
|
|
@${FIND} ${WRKSRC} -name "*.bak" -delete -or -name "*.cvsignore" -delete
|
|
|
|
do-install:
|
|
${LN} -sf ${DATADIR}/utils/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
|
|
@(cd ${WRKSRC} && ${COPYTREE_SHARE} "tests utils xsl" ${STAGEDIR}${DATADIR})
|
|
@${MKDIR} ${STAGEDIR}${DESKTOPDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/bindings/desktop/${PORTNAME}.desktop ${STAGEDIR}${DESKTOPDIR}
|
|
${LN} -sf ${EXAMPLESDIR}/${PORTNAME}.png ${STAGEDIR}${PREFIX}/share/pixmaps/
|
|
${INSTALL_MAN} ${WRKSRC}/docs/${PORTNAME}.1 ${STAGEDIR}${MAN1PREFIX}/man/man1/
|
|
|
|
@(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR})
|
|
|
|
.include <bsd.port.mk>
|