Work around duplicate ruby 1.8/1.9 dependency if RUBY_VER is 1.9.

Discussed with:		pgollucci
This commit is contained in:
Mark Linimon 2011-12-17 03:26:22 +00:00
parent 0366f22e5b
commit e2ec2feed5
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=287520
2 changed files with 9 additions and 4 deletions

View file

@ -16,13 +16,14 @@ EXTRACT_SUFX= .tgz
MAINTAINER= lee@writequit.org
COMMENT= A collaborative attack-analysis tool for security researchers
BUILD_DEPENDS= ruby:${PORTSDIR}/lang/ruby18
RUN_DEPENDS= ${LOCALBASE}/lib/ruby/1.8/tk/canvas.rb:${PORTSDIR}/x11-toolkits/ruby-tk
USE_RUBY= yes
USE_RUBY_SETUP= yes
MAN1= flowtag.1 listflows.1 pcap2flowdb.1 printflow.1
MANCOMPRESSED= yes
.include <bsd.port.mk>
.include <bsd.port.pre.mk>
RUN_DEPENDS+= ${RUBY_SITELIBDIR}/tk/canvas.rb:${PORTSDIR}/x11-toolkits/ruby-tk
.include <bsd.port.post.mk>

View file

@ -18,7 +18,11 @@ COMMENT= A flexible project management web application
RUN_DEPENDS= rackup:${PORTSDIR}/www/rubygem-rack \
rubygem-i18n>=0.4.2:${PORTSDIR}/devel/rubygem-i18n
.if defined(RUBY_VER) && ${RUBY_VER} != "1.8"
IGNORE= requires ruby1.8, but you have RUBY_VER set to 1.9
.else
RUBY_VER= 1.8
.endif
USE_RUBY= yes
USE_RUBY_FEATURES= iconv
USE_RAKE= yes