aboutsummaryrefslogtreecommitdiffstats
path: root/biology
diff options
context:
space:
mode:
authorpawel <pawel@FreeBSD.org>2014-03-24 04:50:54 +0800
committerpawel <pawel@FreeBSD.org>2014-03-24 04:50:54 +0800
commit6fed6af87c15bd9be79f93398a5add8c5026894c (patch)
treec67d6c4ab83bea2d9ae4461d83ba2144bcfc3010 /biology
parent703e38aeb2465ee76bba6e8eccc2b918ce63074c (diff)
downloadfreebsd-ports-gnome-6fed6af87c15bd9be79f93398a5add8c5026894c.tar.gz
freebsd-ports-gnome-6fed6af87c15bd9be79f93398a5add8c5026894c.tar.zst
freebsd-ports-gnome-6fed6af87c15bd9be79f93398a5add8c5026894c.zip
Add staging support
Diffstat (limited to 'biology')
-rw-r--r--biology/ncbi-toolkit/Makefile56
-rw-r--r--biology/ncbi-toolkit/pkg-plist38
2 files changed, 60 insertions, 34 deletions
diff --git a/biology/ncbi-toolkit/Makefile b/biology/ncbi-toolkit/Makefile
index 7d396f94fd3a..2a60f93a4c4e 100644
--- a/biology/ncbi-toolkit/Makefile
+++ b/biology/ncbi-toolkit/Makefile
@@ -41,19 +41,15 @@ BLAST_EXE= bl2seq blastall blastcl3 blastclust blastpgp copymat \
X11_EXE= Nentrez Psequin ddv entrez2 sbtedit udv
# and these are the man pages we have
-MAN1= Psequin.1 asn2ff.1 asn2idx.1 asn2xml.1 asndhuff.1 \
+MAN_FILES= Psequin.1 asn2ff.1 asn2idx.1 asn2xml.1 asndhuff.1 \
asntool.1 blast.1 blastclust.1 cdscan.1 checksub.1 \
copymat.1 ddv.1 debruijn.1 entrez2.1 errhdr.1 fa2htgs.1 \
fastacmd.1 findspl.1 formatdb.1 formatrpsdb.1 getmesh.1 \
getpub.1 gil2bin.1 idfetch.1 indexpub.1 makemat.1 \
taxblast.1 tbl2asn.1 udv.1 vecscreen.1
-MLINKS= blast.1 bl2seq.1 blast.1 blastall.1 blast.1 blastcl3.1 \
- blast.1 blastpgp.1 blast.1 impala.1 blast.1 megablast.1 \
- blast.1 seedtop.1 blast.1 rpsblast.1
-
-NO_STAGE= yes
-.include <bsd.port.options.mk>
+MAN_LINKS= bl2seq blastall blastcl3 blastpgp impala megablast \
+ seedtop rpsblast
post-patch:
@${REINPLACE_CMD} -e \
@@ -80,36 +76,28 @@ do-build:
# we thus roll our own
do-install:
-.for blastexe in ${BLAST_EXE}
- (cd ${WRKSRC}/bin && ${INSTALL_PROGRAM} ${blastexe} ${PREFIX}/bin)
-.endfor
-.for toolkitexe in ${TOOLKIT_EXE}
- (cd ${WRKSRC}/bin && ${INSTALL_PROGRAM} ${toolkitexe} ${PREFIX}/bin)
-.endfor
-.for x11exe in ${X11_EXE}
- (cd ${WRKSRC}/bin && ${INSTALL_PROGRAM} ${x11exe} ${PREFIX}/bin)
-.endfor
- @${MKDIR} ${PREFIX}/lib/${DISTNAME}
- (cd ${WRKSRC}/lib && ${INSTALL_DATA} *.a ${PREFIX}/lib/${DISTNAME})
- @${MKDIR} ${PREFIX}/include/${DISTNAME}
+ (cd ${WRKSRC}/bin && ${INSTALL_PROGRAM} ${BLAST_EXE} \
+ ${TOOLKIT_EXE} ${X11_EXE} ${STAGEDIR}${PREFIX}/bin)
+ @${MKDIR} ${STAGEDIR}${PREFIX}/lib/${DISTNAME}
+ (cd ${WRKSRC}/lib && ${INSTALL_DATA} *.a \
+ ${STAGEDIR}${PREFIX}/lib/${DISTNAME})
+ @${MKDIR} ${STAGEDIR}${PREFIX}/include/${DISTNAME}/connect
(cd ${WRKSRC}/include && ${INSTALL_DATA} *.h \
- ${PREFIX}/include/${DISTNAME})
- @${MKDIR} ${PREFIX}/include/${DISTNAME}/connect
+ ${STAGEDIR}${PREFIX}/include/${DISTNAME})
(cd ${WRKSRC}/include/connect && ${INSTALL_DATA} *.h \
- ${PREFIX}/include/${DISTNAME}/connect)
-.for man in ${MAN1}
- (cd ${WRKSRC}/doc/man && ${INSTALL_MAN} ${man} ${MANPREFIX}/man/man1)
+ ${STAGEDIR}${PREFIX}/include/${DISTNAME}/connect)
+ (cd ${WRKSRC}/doc/man && ${INSTALL_MAN} ${MAN_FILES} \
+ ${STAGEDIR}${MANPREFIX}/man/man1)
+.for man in ${MAN_LINKS}
+ ${LN} -s ${MANPREFIX}/man/man1/blast.1.gz \
+ ${STAGEDIR}${PREFIX}/man/man1/${man}.1.gz
.endfor
- @${MKDIR} ${DATADIR}
- (cd ${WRKSRC}/data && ${INSTALL_DATA} * ${DATADIR})
-.if ${PORT_OPTIONS:MDOCS}
- @${MKDIR} ${DOCSDIR}
+ @${MKDIR} ${STAGEDIR}${DATADIR}
+ (cd ${WRKSRC}/data && ${INSTALL_DATA} * ${STAGEDIR}${DATADIR})
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
@(cd ${WRKSRC}/doc && ${TAR} --exclude man -cf - .) | \
- (cd ${DOCSDIR} && ${TAR} --unlink -xf -)
- @${FIND} ${DOCSDIR} | ${XARGS} ${CHOWN} ${SHAREOWN}:${SHAREGRP}
- @${FIND} ${DOCSDIR} -type d | ${XARGS} ${CHMOD} a+rx
- @${FIND} ${DOCSDIR} -type f | ${XARGS} ${CHMOD} ${SHAREMODE}
-.endif
- @${CAT} ${PKGMESSAGE}
+ (cd ${STAGEDIR}${DOCSDIR} && ${TAR} --unlink -xf -)
+ @${FIND} ${STAGEDIR}${DOCSDIR} -type d | ${XARGS} ${CHMOD} a+rx
+ @${FIND} ${STAGEDIR}${DOCSDIR} -type f | ${XARGS} ${CHMOD} ${SHAREMODE}
.include <bsd.port.mk>
diff --git a/biology/ncbi-toolkit/pkg-plist b/biology/ncbi-toolkit/pkg-plist
index 6388a9c0dcb8..63be592a2a22 100644
--- a/biology/ncbi-toolkit/pkg-plist
+++ b/biology/ncbi-toolkit/pkg-plist
@@ -585,6 +585,44 @@ lib/ncbi/libregexp.a
lib/ncbi/libvibgif.a
lib/ncbi/libvibnet.a
lib/ncbi/libvibrant.a
+man/man1/Psequin.1.gz
+man/man1/asn2ff.1.gz
+man/man1/asn2idx.1.gz
+man/man1/asn2xml.1.gz
+man/man1/asndhuff.1.gz
+man/man1/asntool.1.gz
+man/man1/bl2seq.1.gz
+man/man1/blast.1.gz
+man/man1/blastall.1.gz
+man/man1/blastcl3.1.gz
+man/man1/blastclust.1.gz
+man/man1/blastpgp.1.gz
+man/man1/cdscan.1.gz
+man/man1/checksub.1.gz
+man/man1/copymat.1.gz
+man/man1/ddv.1.gz
+man/man1/debruijn.1.gz
+man/man1/entrez2.1.gz
+man/man1/errhdr.1.gz
+man/man1/fa2htgs.1.gz
+man/man1/fastacmd.1.gz
+man/man1/findspl.1.gz
+man/man1/formatdb.1.gz
+man/man1/formatrpsdb.1.gz
+man/man1/getmesh.1.gz
+man/man1/getpub.1.gz
+man/man1/gil2bin.1.gz
+man/man1/idfetch.1.gz
+man/man1/impala.1.gz
+man/man1/indexpub.1.gz
+man/man1/makemat.1.gz
+man/man1/megablast.1.gz
+man/man1/rpsblast.1.gz
+man/man1/seedtop.1.gz
+man/man1/taxblast.1.gz
+man/man1/tbl2asn.1.gz
+man/man1/udv.1.gz
+man/man1/vecscreen.1.gz
%%PORTDOCS%%%%DOCSDIR%%/FAQ.txt
%%PORTDOCS%%%%DOCSDIR%%/README.asn2xml
%%PORTDOCS%%%%DOCSDIR%%/README.sdk