mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-30 05:40:06 +00:00
- Switch to options helpers
Approved by: portmgr blanket
This commit is contained in:
parent
32a719b37a
commit
e1ea1eae3c
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=441765
@ -21,8 +21,6 @@ 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
|
||||
@ -34,7 +32,7 @@ post-extract:
|
||||
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' \
|
||||
@${REINPLACE_CMD} -e 's/"\(.*\.xls\)"/"\/tmp\/\1"/g' \
|
||||
${WRKSRC}/excel_out_demo.adb
|
||||
|
||||
do-build:
|
||||
@ -42,7 +40,7 @@ do-build:
|
||||
(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} gnatmake -p -Pbiff_dump)
|
||||
|
||||
do-install:
|
||||
${MKDIR} ${STAGEDIR}${PREFIX}/lib/gnat \
|
||||
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/gnat \
|
||||
${STAGEDIR}${PREFIX}/lib/excel_writer \
|
||||
${STAGEDIR}${PREFIX}/include/excel_writer \
|
||||
${STAGEDIR}${DATADIR}
|
||||
@ -54,15 +52,15 @@ do-install:
|
||||
${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}
|
||||
|
||||
do-install-DOCS-on:
|
||||
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/excel_writer.txt ${STAGEDIR}${DOCSDIR}
|
||||
.endif
|
||||
.if ${PORT_OPTIONS:MEXAMPLES}
|
||||
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
||||
|
||||
do-install-EXAMPLES-on:
|
||||
@${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>
|
||||
|
Loading…
Reference in New Issue
Block a user