1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-23 04:23:08 +00:00
freebsd-ports/misc/excel-writer/Makefile
John Marino cac1c1bb51 misc/excel-writer: Update version 12 => 13
From recent http://planet.ada.cx feed: Excel Writer v.13

Some recently added features:
  * freeze panes
  * cell comments
  * vertical text alignment
  * text orientation
  * Ada.Calendar.Time Put/Write and date built-in formats
  * background colours
  * wrap_text format option
  * Next and Next_Row
  * Text_IO's New_Line(lines), Line, Col now available

Excel Writer (Excel_Out) is a free, standalone, portable, open source
package for producing Excel spreadsheets with basic formattings and
page layout. It can be used in an "Ada.Text_IO" fashion, with Put,
Put_Line and New_Line.
2014-04-13 09:51:20 +00:00

68 lines
2.1 KiB
Makefile

# Created by: John Marino <marino@FreeBSD.org>
# $FreeBSD$
PORTNAME= excel-writer
PORTVERSION= 13
CATEGORIES= misc
MASTER_SITES= http://sourceforge.net/projects/${SFPATH}/
DISTNAME= excel_writer_${PORTVERSION}
MAINTAINER= marino@FreeBSD.org
COMMENT= Ada package for easily creating Excel files with basic formats
LICENSE= MIT
USES= ada zip dos2unix
SFPATH= excel-writer/files/excel-writer
WRKSRC= ${WRKDIR}/Excel_Writer
PORTDOCS= excel_writer.txt
PORTEXAMPLES= example.gpr excel_out_demo.adb runme.sh
OPTIONS_DEFINE= DOCS EXAMPLES
.include <bsd.port.options.mk>
post-extract:
${CP} ${FILESDIR}/construct.gpr ${FILESDIR}/biff_dump.gpr ${WRKSRC}
${MKDIR} ${WRKSRC}/src ${WRKDIR}/data
${MV} "${WRKSRC}/Big [BIFF4].xls" ${WRKDIR}/data/Big.xls
(cd ${WRKSRC}; ${MV} excel_out.ad[bs] ieee* extras/csv.* src)
${SED} -e "s,@PREFIX@,${LOCALBASE},g" ${FILESDIR}/runme.sh.in \
> ${WRKSRC}/runme.sh
post-patch:
@${REINPLACE_CMD} -e "s|Big.xls|${DATADIR}/Big.xls|" \
-e 's|\$$Dump\$$|_dump_|g' ${WRKSRC}/extras/biff_dump.adb
${REINPLACE_CMD} -e 's/"\(.*\.xls\)"/"\/tmp\/\1"/g' \
${WRKSRC}/excel_out_demo.adb
do-build:
(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} gnatmake -p -Pconstruct)
(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} gnatmake -p -Pbiff_dump)
do-install:
${MKDIR} ${STAGEDIR}${PREFIX}/lib/gnat \
${STAGEDIR}${PREFIX}/lib/excel_writer \
${STAGEDIR}${PREFIX}/include/excel_writer \
${STAGEDIR}${DATADIR}
${INSTALL_DATA} ${FILESDIR}/excel_writer.gpr \
${STAGEDIR}${PREFIX}/lib/gnat
${INSTALL_DATA} ${WRKSRC}/src/* \
${STAGEDIR}${PREFIX}/include/excel_writer
${INSTALL_DATA} ${WRKSRC}/lib/* \
${STAGEDIR}${PREFIX}/lib/excel_writer
${INSTALL_PROGRAM} ${WRKSRC}/bin/biff_dump ${STAGEDIR}${PREFIX}/bin
${INSTALL_DATA} ${WRKDIR}/data/Big.xls ${STAGEDIR}${DATADIR}
.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/excel_writer.txt ${STAGEDIR}${DOCSDIR}
.endif
.if ${PORT_OPTIONS:MEXAMPLES}
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_SCRIPT} ${WRKSRC}/runme.sh ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/excel_out_demo.adb \
${FILESDIR}/example.gpr ${STAGEDIR}${EXAMPLESDIR}
.endif
.include <bsd.port.mk>