summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
Diffstat (limited to 'www')
-rw-r--r--www/mod_ruby/Makefile13
-rw-r--r--www/mod_ruby/distinfo1
2 files changed, 12 insertions, 2 deletions
diff --git a/www/mod_ruby/Makefile b/www/mod_ruby/Makefile
index 9a504bac35d7..e7bc9c289cbe 100644
--- a/www/mod_ruby/Makefile
+++ b/www/mod_ruby/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= mod_ruby
-PORTVERSION= 0.2.0
+PORTVERSION= ${VERSION}
CATEGORIES= www ruby
MASTER_SITES= http://www.ruby-lang.org/~shugo/mod_ruby/
DIST_SUBDIR= ruby
@@ -18,6 +18,15 @@ LIB_DEPENDS= eruby.1:${PORTSDIR}/textproc/eruby
RUN_DEPENDS= ${APXS}:${PORTSDIR}/www/apache13
USE_RUBY= yes
+RUBY_REQUIRE= 160 <= Ruby
+
+.include <bsd.port.pre.mk>
+
+.if defined(RUBY_PROVIDED)
+VERSION= 0.2.1
+.else
+VERSION= 0.2.0
+.endif
APXS= ${LOCALBASE}/sbin/apxs
@@ -45,4 +54,4 @@ do-install:
.endif
${CAT} ${PKGMESSAGE}
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/www/mod_ruby/distinfo b/www/mod_ruby/distinfo
index 19c11e35a37a..66487ea5a109 100644
--- a/www/mod_ruby/distinfo
+++ b/www/mod_ruby/distinfo
@@ -1 +1,2 @@
MD5 (ruby/mod_ruby-0.2.0.tar.gz) = 816feff73fcabbc4bb75e5c17919bc3e
+MD5 (ruby/mod_ruby-0.2.1.tar.gz) = 28b786af4eaf36faf1be43cd9cf68ac6