- respect NOPORTEXAMPLES/NOPORTDOCS and fix plist

- bump PORTREVISION

Prompted by:	QA Tindy run
This commit is contained in:
Ion-Mihai Tetcu 2008-07-12 06:28:25 +00:00
parent fec2a7c6eb
commit 30eddc16be
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=216729
2 changed files with 15 additions and 14 deletions

View file

@ -7,6 +7,7 @@
PORTNAME= seqio PORTNAME= seqio
PORTVERSION= 1.2.2 PORTVERSION= 1.2.2
PORTREVISION= 1
CATEGORIES= biology CATEGORIES= biology
MASTER_SITES= http://www.cs.ucdavis.edu/~gusfield/ MASTER_SITES= http://www.cs.ucdavis.edu/~gusfield/
DISTNAME= ${PORTNAME} DISTNAME= ${PORTNAME}
@ -16,25 +17,25 @@ COMMENT= A set of C functions which can read/write biological sequence files
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
EXAMPLESDIR= ${PREFIX}/share/examples/${PORTNAME}
EXAMPLES= example1.c example2.c example3.c example4.c seqio.c \ EXAMPLES= example1.c example2.c example3.c example4.c seqio.c \
seqio.h Makefile seqio.h Makefile
PROGRAMS= fmtseq grepseq idxseq typeseq wcseq PROGRAMS= fmtseq grepseq idxseq typeseq wcseq
do-install: do-install:
${MKDIR} ${DOCSDIR}
${MKDIR} ${DOCSDIR}/html
${MKDIR} ${EXAMPLESDIR}
cd ${WRKSRC}; \ cd ${WRKSRC}; \
for file in ${PROGRAMS}; do \ for file in ${PROGRAMS}; do \
${INSTALL_PROGRAM} $$file ${PREFIX}/bin; \ ${INSTALL_PROGRAM} $$file ${PREFIX}/bin; \
done done
post-install: .if !defined(NOPORTEXAMPLES)
.if !defined(NOPORTDOCS) ${MKDIR} ${EXAMPLESDIR}
cd ${WRKSRC}; \ cd ${WRKSRC}; \
for file in ${EXAMPLES}; do \ for file in ${EXAMPLES}; do \
${INSTALL_DATA} $$file ${EXAMPLESDIR}; \ ${INSTALL_DATA} $$file ${EXAMPLESDIR}; \
done done
.endif
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${MKDIR} ${DOCSDIR}/html
${INSTALL_DATA} ${WRKSRC}/bioseq.txt ${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/bioseq.txt ${DOCSDIR}
cd ${WRKSRC}/doc; \ cd ${WRKSRC}/doc; \
for file in *.doc; do \ for file in *.doc; do \

View file

@ -27,13 +27,13 @@ bin/wcseq
%%PORTDOCS%%%%DOCSDIR%%/quickref.doc %%PORTDOCS%%%%DOCSDIR%%/quickref.doc
%%PORTDOCS%%%%DOCSDIR%%/seqio.doc %%PORTDOCS%%%%DOCSDIR%%/seqio.doc
%%PORTDOCS%%%%DOCSDIR%%/user.doc %%PORTDOCS%%%%DOCSDIR%%/user.doc
%%PORTDOCS%%share/examples/seqio/example1.c %%PORTEXAMPLES%%%%EXAMPLESDIR%%/example1.c
%%PORTDOCS%%share/examples/seqio/example2.c %%PORTEXAMPLES%%%%EXAMPLESDIR%%/example2.c
%%PORTDOCS%%share/examples/seqio/example3.c %%PORTEXAMPLES%%%%EXAMPLESDIR%%/example3.c
%%PORTDOCS%%share/examples/seqio/example4.c %%PORTEXAMPLES%%%%EXAMPLESDIR%%/example4.c
%%PORTDOCS%%share/examples/seqio/seqio.c %%PORTEXAMPLES%%%%EXAMPLESDIR%%/seqio.c
%%PORTDOCS%%share/examples/seqio/seqio.h %%PORTEXAMPLES%%%%EXAMPLESDIR%%/seqio.h
%%PORTDOCS%%share/examples/seqio/Makefile %%PORTEXAMPLES%%%%EXAMPLESDIR%%/Makefile
%%PORTDOCS%%@dirrm %%DOCSDIR%%/html %%PORTDOCS%%@dirrm %%DOCSDIR%%/html
%%PORTDOCS%%@dirrm %%DOCSDIR%% %%PORTDOCS%%@dirrm %%DOCSDIR%%
%%PORTDOCS%%@dirrm share/examples/seqio %%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%