aboutsummaryrefslogtreecommitdiffstats
path: root/mail/ruby-tmail/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'mail/ruby-tmail/Makefile')
-rw-r--r--mail/ruby-tmail/Makefile10
1 files changed, 7 insertions, 3 deletions
diff --git a/mail/ruby-tmail/Makefile b/mail/ruby-tmail/Makefile
index dc98c681175b..5de2f6a1dfcd 100644
--- a/mail/ruby-tmail/Makefile
+++ b/mail/ruby-tmail/Makefile
@@ -17,8 +17,6 @@ DIST_SUBDIR= ruby
MAINTAINER= knu@FreeBSD.org
-RUN_DEPENDS= ${RUBY_SITELIBDIR}/racc/parser.rb:${PORTSDIR}/devel/ruby-racc-runtime
-
USE_RUBY= yes
USE_RUBY_SETUP= yes
@@ -26,6 +24,12 @@ CONFIGURE_ARGS= --with=tmail
WRKDIR_TMAIL= ${WRKSRC}/packages/tmail
+.include <bsd.port.pre.mk>
+
+.if ${RUBY_VER} < 1.7
+RUN_DEPENDS+= ${RUBY_SITELIBDIR}/racc/parser.rb:${PORTSDIR}/lang/ruby16-shim-ruby18
+.endif
+
do-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${RUBY_EXAMPLESDIR}/${PORTNAME}
@@ -35,4 +39,4 @@ do-install:
${CP} -R ${WRKDIR_TMAIL}/Incompatibilities.ja ${WRKDIR_TMAIL}/README.ja ${WRKDIR_TMAIL}/doc.ja/* ${RUBY_DOCDIR}/${PORTNAME}/ja/
.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>