aboutsummaryrefslogtreecommitdiff
path: root/textproc/eruby
diff options
context:
space:
mode:
Diffstat (limited to 'textproc/eruby')
-rw-r--r--textproc/eruby/Makefile17
-rw-r--r--textproc/eruby/pkg-plist10
2 files changed, 12 insertions, 15 deletions
diff --git a/textproc/eruby/Makefile b/textproc/eruby/Makefile
index 7d01da624941..0282bbad7d21 100644
--- a/textproc/eruby/Makefile
+++ b/textproc/eruby/Makefile
@@ -13,15 +13,10 @@ DIST_SUBDIR= ruby
MAINTAINER= knu@FreeBSD.org
-BUILD_DEPENDS= ruby:${PORTSDIR}/lang/ruby
-RUN_DEPENDS= ruby:${PORTSDIR}/lang/ruby
+USE_RUBY= yes
WRKSRC= ${WRKDIR}/${PORTNAME}
-RUBY?= ${LOCALBASE}/bin/ruby
-RUBY_VER?= 1.4
-RUBY_ARCH?= ${ARCH}-freebsd${OSREL}
-
DOCS_EN= ChangeLog README.en
DOCS_JA= README.ja
@@ -30,13 +25,15 @@ do-configure:
post-install:
.if !defined(NOPORTDOCS)
- ${MKDIR} ${PREFIX}/share/doc/ruby/eruby/ja
+ ${MKDIR} ${RUBY_DOCDIR}/eruby/ja
.for f in ${DOCS_EN}
- ${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/share/doc/ruby/eruby/
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/eruby/
.endfor
.for f in ${DOCS_JA}
- ${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/share/doc/ruby/eruby/ja/
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/eruby/ja/
.endfor
.endif
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+.include "${PORTSDIR}/Mk/bsd.ruby.mk"
+.include <bsd.port.post.mk>
diff --git a/textproc/eruby/pkg-plist b/textproc/eruby/pkg-plist
index ef823ed224b2..6dde67b527ad 100644
--- a/textproc/eruby/pkg-plist
+++ b/textproc/eruby/pkg-plist
@@ -1,6 +1,6 @@
bin/eruby
-share/doc/ruby/eruby/ChangeLog
-share/doc/ruby/eruby/README.en
-share/doc/ruby/eruby/ja/README.ja
-@dirrm share/doc/ruby/eruby/ja
-@dirrm share/doc/ruby/eruby
+%%RUBY_DOCDIR%%/eruby/ChangeLog
+%%RUBY_DOCDIR%%/eruby/README.en
+%%RUBY_DOCDIR%%/eruby/ja/README.ja
+@dirrm %%RUBY_DOCDIR%%/eruby/ja
+@dirrm %%RUBY_DOCDIR%%/eruby