summaryrefslogtreecommitdiff
path: root/biology/ruby-bio
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2014-04-07 13:01:26 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2014-04-07 13:01:26 +0000
commit8086bfab37dcaa9aec522c6ec8d92d1266b5e605 (patch)
treee6899578292f623b27b4078f1b4b79008fb3d182 /biology/ruby-bio
parent- Add staging support (diff)
Support stage
Notes
Notes: svn path=/head/; revision=350461
Diffstat (limited to 'biology/ruby-bio')
-rw-r--r--biology/ruby-bio/Makefile47
-rw-r--r--biology/ruby-bio/pkg-plist1
2 files changed, 16 insertions, 32 deletions
diff --git a/biology/ruby-bio/Makefile b/biology/ruby-bio/Makefile
index 616ed926fce4..54503ea6f71e 100644
--- a/biology/ruby-bio/Makefile
+++ b/biology/ruby-bio/Makefile
@@ -12,30 +12,22 @@ DIST_SUBDIR= ruby
MAINTAINER= mauricio@arareko.net
COMMENT= Integrated environment for Bioinformatics written in Ruby
-OPTIONS_DEFINE= XMLPARSER BDB4 MYSQL PGSQL
+OPTIONS_DEFINE= XMLPARSER BDB4 MYSQL PGSQL DOCS
XMLPARSER_DESC= xmlparser support for faster Blast processing
BDB4_DESC= bdb4 support for faster flat file indexing
OPTIONSFILE= ${PORT_DBDIR}/ruby-${PORTNAME}/options
+USES= shebangfix
USE_RUBY= yes
USE_RUBY_SETUP= yes
+SHEBANG_FILES= sample/biofetch.rb
+ruby_OLD_CMD= /usr/proj/bioruby/bin/ruby
-NO_STAGE= yes
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MXMLPARSER}
-RUN_DEPENDS+= ${RUBY_SITEARCHLIBDIR}/xmlparser.so:${PORTSDIR}/textproc/ruby-xmlparser
-.endif
-.if ${PORT_OPTIONS:MBDB4}
-RUN_DEPENDS+= ${RUBY_SITEARCHLIBDIR}/bdb.so:${PORTSDIR}/databases/ruby-bdb
-.endif
-.if ${PORT_OPTIONS:MMYSQL}
-RUN_DEPENDS+= ${RUBY_SITELIBDIR}/DBD/Mysql/Mysql.rb:${PORTSDIR}/databases/ruby-dbd_mysql
-.endif
-.if ${PORT_OPTIONS:MPGSQL}
-RUN_DEPENDS+= ${RUBY_SITELIBDIR}/DBD/Pg/Pg.rb:${PORTSDIR}/databases/ruby-dbd_pg
-.endif
+XML_PARSER_RUN_DEPENDS= ${RUBY_SITEARCHLIBDIR}/xmlparser.so:${PORTSDIR}/textproc/ruby-xmlparser
+BDB4_RUN_DEPENDS= ${RUBY_SITEARCHLIBDIR}/bdb.so:${PORTSDIR}/databases/ruby-bdb
+MYSQL_RUN_DEPENDS= ${RUBY_SITELIBDIR}/DBD/Mysql/Mysql.rb:${PORTSDIR}/databases/ruby-dbd_mysql
+PGSQL_RUN_DEPENDS= ${RUBY_SITELIBDIR}/DBD/Pg/Pg.rb:${PORTSDIR}/databases/ruby-dbd_pg
post-patch:
${RUBY} -i -pe 'gsub(%r"(/etc/bioinformatics/)") { "${PREFIX}" + $$1 }' \
@@ -43,22 +35,15 @@ post-patch:
${WRKSRC}/lib/bio/io/registry.rb
do-install:
- ${MKDIR} ${PREFIX}/etc/bioinformatics
+ @${MKDIR} ${STAGEDIR}${PREFIX}/etc/bioinformatics
.for f in etc/bioinformatics/seqdatabase.ini
- ${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/${f}.sample
- if [ ! -f ${PREFIX}/${f} ]; then \
- ${CP} -p ${PREFIX}/${f}.sample ${PREFIX}/${f}; \
- fi
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${PREFIX}/${f}.sample
.endfor
-.if ${PORT_OPTIONS:MEXAMPLES}
- ${MKDIR} ${RUBY_MODEXAMPLESDIR}
- ${CP} -R ${WRKSRC}/sample/ ${RUBY_MODEXAMPLESDIR}/
-.endif
-.if ${PORT_OPTIONS:MDOCS}
- ${MKDIR} ${RUBY_MODDOCDIR}/ja
- ${INSTALL_DATA} ${WRKSRC}/ChangeLog ${WRKSRC}/README.rdoc ${RUBY_MODDOCDIR}/
- ${INSTALL_DATA} ${WRKSRC}/doc/*.rd ${RUBY_MODDOCDIR}/
- ${INSTALL_DATA} ${WRKSRC}/doc/*.rd.ja ${RUBY_MODDOCDIR}/ja/
-.endif
+ @${MKDIR} ${STAGEDIR}${RUBY_MODEXAMPLESDIR}
+ ${CP} -R ${WRKSRC}/sample/ ${STAGEDIR}${RUBY_MODEXAMPLESDIR}/
+ @${MKDIR} ${STAGEDIR}${RUBY_MODDOCDIR}/ja
+ ${INSTALL_DATA} ${WRKSRC}/ChangeLog ${WRKSRC}/README.rdoc ${STAGEDIR}${RUBY_MODDOCDIR}/
+ ${INSTALL_DATA} ${WRKSRC}/doc/*.rd ${STAGEDIR}${RUBY_MODDOCDIR}/
+ ${INSTALL_DATA} ${WRKSRC}/doc/*.rd.ja ${STAGEDIR}${RUBY_MODDOCDIR}/ja/
.include <bsd.port.mk>
diff --git a/biology/ruby-bio/pkg-plist b/biology/ruby-bio/pkg-plist
index 45398963167e..76edcc355b9f 100644
--- a/biology/ruby-bio/pkg-plist
+++ b/biology/ruby-bio/pkg-plist
@@ -329,7 +329,6 @@ bin/br_biofetch
bin/br_bioflat
bin/br_biogetseq
bin/br_pmfetch
-etc/bioinformatics/seqdatabase.ini
etc/bioinformatics/seqdatabase.ini.sample
@dirrm etc/bioinformatics
@dirrm %%RUBY_SITELIBDIR%%/bio/util/restriction_enzyme/single_strand