Stage support.

PR:		ports/189779
Submitted by:	Anton Shterenlikht <mexas@bris.ac.uk> (maintainer)
This commit is contained in:
Rene Ladan 2014-05-26 09:49:24 +00:00
parent a1ed68057d
commit de004aefea
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=355294
2 changed files with 35 additions and 25 deletions

View file

@ -15,34 +15,20 @@ LICENSE= GPLv3
GNU_CONFIGURE= yes
MAKEFILE= makefile
MAN1= robodoc.1 robohdrs.1
OPTIONS_DEFINE= DOCS EXAMPLES
DOCS_FILES= AUTHORS ChangeLog NEWS README \
Docs/manual.html Docs/manual.css Docs/robodoc_example.rc
OPTIONS_DEFINE= DOCS EXAMPLES
DOCS_FILES= AUTHORS ChangeLog NEWS README Docs/manual.html Docs/manual.css \
Docs/robodoc_example.rc
PORTDOCS= *
PORTEXAMPLES= *
PLIST_FILES= bin/robodoc bin/robohdrs
NO_STAGE= yes
.include <bsd.port.options.mk>
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/Source/robodoc ${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/Source/robohdrs ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/Docs/robodoc.1 ${MANPREFIX}/man/man1
${INSTALL_MAN} ${WRKSRC}/Docs/robohdrs.1 ${MANPREFIX}/man/man1
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${DOCS_FILES:S,^,${WRKSRC}/,} ${DOCSDIR}/
.endif
.if ${PORT_OPTIONS:MEXAMPLES}
@${MKDIR} ${EXAMPLESDIR}
${CP} -R ${WRKSRC}/Examples/* ${EXAMPLESDIR}
.endif
${INSTALL_PROGRAM} ${WRKSRC}/Source/robodoc ${STAGEDIR}${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/Source/robohdrs ${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/Docs/robodoc.1 ${STAGEDIR}${MANPREFIX}/man/man1
${INSTALL_MAN} ${WRKSRC}/Docs/robohdrs.1 ${STAGEDIR}${MANPREFIX}/man/man1
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${DOCS_FILES:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${CP} -R ${WRKSRC}/Examples/* ${STAGEDIR}${EXAMPLESDIR}
.include <bsd.port.mk>

24
devel/robodoc/pkg-plist Normal file
View file

@ -0,0 +1,24 @@
bin/robodoc
bin/robohdrs
man/man1/robodoc.1.gz
man/man1/robohdrs.1.gz
%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
%%PORTDOCS%%%%DOCSDIR%%/ChangeLog
%%PORTDOCS%%%%DOCSDIR%%/NEWS
%%PORTDOCS%%%%DOCSDIR%%/README
%%PORTDOCS%%%%DOCSDIR%%/manual.css
%%PORTDOCS%%%%DOCSDIR%%/manual.html
%%PORTDOCS%%%%DOCSDIR%%/robodoc_example.rc
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/PerlExample/Source/Box.pm
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/PerlExample/Source/Box/RectangularBox.pm
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/PerlExample/Source/Box/SquareBox.pm
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/PerlExample/Source/Cargo.txt
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/PerlExample/Source/Loader.txt
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/PerlExample/Source/SmartLoader.pm
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/PerlExample/Source/TruckPacker.pl
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/PerlExample/robodoc.rc
%%PORTDOCS%%@dirrmtry %%DOCSDIR%%
%%PORTEXAMPLES%%@dirrmtry %%EXAMPLESDIR%%/PerlExample/Source/Box
%%PORTEXAMPLES%%@dirrmtry %%EXAMPLESDIR%%/PerlExample/Source
%%PORTEXAMPLES%%@dirrmtry %%EXAMPLESDIR%%/PerlExample
%%PORTEXAMPLES%%@dirrmtry %%EXAMPLESDIR%%