SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
21
devel/ruby-rspec/1/Makefile
Normal file
21
devel/ruby-rspec/1/Makefile
Normal file
|
@ -0,0 +1,21 @@
|
|||
COMMENT = ruby framework for Behaviour Driven Development
|
||||
DISTNAME = rspec-1.3.2
|
||||
PORTROACH = limit:^1
|
||||
REVISION = 7
|
||||
SUBST_VARS = MODRUBY_FLAVOR MODRUBY_PKG_PREFIX
|
||||
|
||||
# When you have two different versions of a ruby gem installed, the
|
||||
# binaries will always select the latest version installed, even if
|
||||
# newer gem has a different binary name than the older version, as
|
||||
# rspec does with spec for 1 and rspec for 2. Fix this by setting
|
||||
# a specific version in the gem binary shim, so that running spec
|
||||
# will load the rspec 1 gem, not the rspec 2 gem.
|
||||
post-install:
|
||||
perl -pi -e 's/version = ">= 0"/version = "~> 1.3"/' \
|
||||
${WRKINST}${LOCALBASE}/${GEM_BIN}/spec${GEM_BIN_SUFFIX}
|
||||
|
||||
# Requires heckle and quite a few other libraries to run its own
|
||||
# specs, so this is currently broken.
|
||||
MODRUBY_TEST = rake rspec
|
||||
|
||||
.include <bsd.port.mk>
|
Loading…
Add table
Add a link
Reference in a new issue