Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Apr 2014 13:01:27 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r350461 - head/biology/ruby-bio
Message-ID:  <201404071301.s37D1RNT042022@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bapt
Date: Mon Apr  7 13:01:26 2014
New Revision: 350461
URL: http://svnweb.freebsd.org/changeset/ports/350461
QAT: https://qat.redports.org/buildarchive/r350461/

Log:
  Support stage

Modified:
  head/biology/ruby-bio/Makefile
  head/biology/ruby-bio/pkg-plist

Modified: head/biology/ruby-bio/Makefile
==============================================================================
--- head/biology/ruby-bio/Makefile	Mon Apr  7 11:33:23 2014	(r350460)
+++ head/biology/ruby-bio/Makefile	Mon Apr  7 13:01:26 2014	(r350461)
@@ -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>

Modified: head/biology/ruby-bio/pkg-plist
==============================================================================
--- head/biology/ruby-bio/pkg-plist	Mon Apr  7 11:33:23 2014	(r350460)
+++ head/biology/ruby-bio/pkg-plist	Mon Apr  7 13:01:26 2014	(r350461)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201404071301.s37D1RNT042022>