aboutsummaryrefslogtreecommitdiff
path: root/textproc
diff options
context:
space:
mode:
authorAkinori MUSHA <knu@FreeBSD.org>2000-09-07 07:44:38 +0000
committerAkinori MUSHA <knu@FreeBSD.org>2000-09-07 07:44:38 +0000
commit65ff91142eae892357ed74efdeeda4b9e192d834 (patch)
treef35923c34cade1490b49384542b065518c378507 /textproc
parentd5769b206fbb9de50356197d9530e02b1e17a5ed (diff)
downloadports-65ff91142eae892357ed74efdeeda4b9e192d834.tar.gz
ports-65ff91142eae892357ed74efdeeda4b9e192d834.zip
Update with bsd.ruby.mk.
Notes
Notes: svn path=/head/; revision=32373
Diffstat (limited to 'textproc')
-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