- Add staging support
- Switch to PORTDOCS
This commit is contained in:
parent
e497a2904b
commit
f882a8136a
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=348924
2 changed files with 31 additions and 31 deletions
|
@ -15,17 +15,13 @@ NO_CDROM= May not be sold or incorporated into a commercial product
|
|||
WRKSRC= ${WRKDIR}/fasta
|
||||
PKGMESSAGE= ${WRKDIR}/pkg-message
|
||||
SUB_FILES= pkg-message
|
||||
FASTA_DOCS= COPYRIGHT README.versions fasta20.doc fasta20.me format.doc \
|
||||
readme.*
|
||||
|
||||
MAN1= align.1 fasta.1 lalign.1 prdf.1 prss.1 randseq.1 ssearch.1
|
||||
MLINKS= fasta.1 tfasta.1 fasta.1 lfasta.1 fasta.1 plfasta.1 \
|
||||
fasta.1 fastx.1 fasta.1 tfastx.1 \
|
||||
align.1 align0.1 lalign.1 plalign.1
|
||||
MAN_FILES= align.1 fasta.1 lalign.1 prdf.1 prss.1 randseq.1 ssearch.1
|
||||
PORTDOCS= COPYRIGHT README.versions fasta20.doc fasta20.me format.doc \
|
||||
readme.*
|
||||
|
||||
OPTIONS_DEFINE= DOCS
|
||||
|
||||
NO_STAGE= yes
|
||||
do-extract:
|
||||
@ ${RM} -rf ${WRKDIR}
|
||||
@ ${MKDIR} ${WRKSRC}
|
||||
|
@ -33,19 +29,23 @@ do-extract:
|
|||
cd ${WRKSRC} && (${GZCAT} ${DISTDIR}/$${f} | ${SH} >/dev/null); \
|
||||
done
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} 's|BIN)|DESTDIR)$$(&|' ${WRKSRC}/Makefile
|
||||
|
||||
BROKEN_powerpc= Does not build: runs out of space on powerpc
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
post-install:
|
||||
.for manpage in ${MAN1}
|
||||
${INSTALL_MAN} ${WRKSRC}/${manpage} ${MAN1PREFIX}/man/man1/
|
||||
(cd ${WRKSRC} && ${INSTALL_MAN} ${MAN_FILES} \
|
||||
${STAGEDIR}${MAN1PREFIX}/man/man1)
|
||||
.for mlink in tfasta lfasta plfasta fastx tfastx
|
||||
${LN} -s ${MAN1PREFIX}/man/man1/fasta.1.gz \
|
||||
${STAGEDIR}${MAN1PREFIX}/man/man1/${mlink}.1.gz
|
||||
.endfor
|
||||
.if ${PORT_OPTIONS:MDOCS}
|
||||
@ ${MKDIR} ${DOCSDIR}
|
||||
.for docfile in ${FASTA_DOCS}
|
||||
${INSTALL_DATA} ${WRKSRC}/${docfile} ${DOCSDIR}
|
||||
.endfor
|
||||
.endif
|
||||
${LN} -s ${MAN1PREFIX}/man/man1/align.1.gz \
|
||||
${STAGEDIR}${MAN1PREFIX}/man/man1/align0.1.gz
|
||||
${LN} -s ${MAN1PREFIX}/man/man1/align.1.gz \
|
||||
${STAGEDIR}${MAN1PREFIX}/man/man1/plalign.1.gz
|
||||
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
|
|
@ -1,16 +1,3 @@
|
|||
%%PORTDOCS%%%%DOCSDIR%%/COPYRIGHT
|
||||
%%PORTDOCS%%%%DOCSDIR%%/README.versions
|
||||
%%PORTDOCS%%%%DOCSDIR%%/fasta20.doc
|
||||
%%PORTDOCS%%%%DOCSDIR%%/fasta20.me
|
||||
%%PORTDOCS%%%%DOCSDIR%%/format.doc
|
||||
%%PORTDOCS%%%%DOCSDIR%%/readme.v15
|
||||
%%PORTDOCS%%%%DOCSDIR%%/readme.v16
|
||||
%%PORTDOCS%%%%DOCSDIR%%/readme.v17
|
||||
%%PORTDOCS%%%%DOCSDIR%%/readme.v20
|
||||
%%PORTDOCS%%%%DOCSDIR%%/readme.v20u4
|
||||
%%PORTDOCS%%%%DOCSDIR%%/readme.v20u5
|
||||
%%PORTDOCS%%%%DOCSDIR%%/readme.v20u6
|
||||
%%PORTDOCS%%%%DOCSDIR%%/readme.v21u0
|
||||
bin/align
|
||||
bin/align0
|
||||
bin/chofas
|
||||
|
@ -18,4 +5,17 @@ bin/garnier
|
|||
bin/lalign
|
||||
bin/plalign
|
||||
bin/psgrease
|
||||
%%PORTDOCS%%@dirrm %%DOCSDIR%%
|
||||
man/man1/align.1.gz
|
||||
man/man1/align0.1.gz
|
||||
man/man1/fasta.1.gz
|
||||
man/man1/fastx.1.gz
|
||||
man/man1/lalign.1.gz
|
||||
man/man1/lfasta.1.gz
|
||||
man/man1/plalign.1.gz
|
||||
man/man1/plfasta.1.gz
|
||||
man/man1/prdf.1.gz
|
||||
man/man1/prss.1.gz
|
||||
man/man1/randseq.1.gz
|
||||
man/man1/ssearch.1.gz
|
||||
man/man1/tfasta.1.gz
|
||||
man/man1/tfastx.1.gz
|
||||
|
|
Loading…
Reference in a new issue