aboutsummaryrefslogtreecommitdiffstats
path: root/japanese/ruby-eb/Makefile
diff options
context:
space:
mode:
authorknu <knu@FreeBSD.org>2000-09-07 15:44:38 +0800
committerknu <knu@FreeBSD.org>2000-09-07 15:44:38 +0800
commite911379d47fa39daa6cb9830741fed10b1aba05d (patch)
treee9c8a7c6f295c77312cf8f27078de702e8324bb4 /japanese/ruby-eb/Makefile
parent57a36d42b96e563526258513aa4391b9faf810ba (diff)
downloadfreebsd-ports-gnome-e911379d47fa39daa6cb9830741fed10b1aba05d.tar.gz
freebsd-ports-gnome-e911379d47fa39daa6cb9830741fed10b1aba05d.tar.zst
freebsd-ports-gnome-e911379d47fa39daa6cb9830741fed10b1aba05d.zip
Update with bsd.ruby.mk.
Diffstat (limited to 'japanese/ruby-eb/Makefile')
-rw-r--r--japanese/ruby-eb/Makefile26
1 files changed, 9 insertions, 17 deletions
diff --git a/japanese/ruby-eb/Makefile b/japanese/ruby-eb/Makefile
index 193c2a3b4391..014abf717b7c 100644
--- a/japanese/ruby-eb/Makefile
+++ b/japanese/ruby-eb/Makefile
@@ -14,33 +14,25 @@ DIST_SUBDIR= ruby
MAINTAINER= knu@FreeBSD.org
-BUILD_DEPENDS= ruby:${PORTSDIR}/lang/ruby
LIB_DEPENDS= eb.3:${PORTSDIR}/japanese/eb
-RUN_DEPENDS= ruby:${PORTSDIR}/lang/ruby
+
+USE_RUBY= yes
+USE_RUBY_EXTCONF= yes
NO_WRKSUBDIR= yes
-CONFIGURE_ARGS= --with-opt-dir="${LOCALBASE}"
INSTALL_TARGET= site-install
-PLIST_SUB= RUBY_VER="${RUBY_VER}" RUBY_ARCH="${RUBY_ARCH}"
-
-RUBY?= ${LOCALBASE}/bin/ruby
-RUBY_VER?= 1.4
-RUBY_ARCH?= ${ARCH}-freebsd${OSREL}
.include <bsd.port.pre.mk>
+.include "${PORTSDIR}/Mk/bsd.ruby.mk"
-PKGNAMEPREFIX:= ${PKGNAMEPREFIX}ruby-
-
-do-configure:
- @cd ${WRKSRC}; \
- ${SETENV} ${CONFIGURE_ENV} ${RUBY} extconf.rb ${CONFIGURE_ARGS}
+PKGNAMEPREFIX:= ${PKGNAMEPREFIX}${RUBY_PKGNAMEPREFIX}
post-install:
.if !defined(NOPORTDOCS)
- ${MKDIR} ${PREFIX}/share/examples/ruby/eb/ja/
- ${INSTALL_DATA} ${WRKSRC}/test.rb ${PREFIX}/share/examples/ruby/eb/ja/
- ${MKDIR} ${PREFIX}/share/doc/ruby/eb/ja
- ${INSTALL_DATA} ${WRKSRC}/eb.html ${PREFIX}/share/doc/ruby/eb/ja/
+ ${MKDIR} ${RUBY_EXAMPLESDIR}/eb/ja/
+ ${INSTALL_DATA} ${WRKSRC}/test.rb ${RUBY_EXAMPLESDIR}/eb/ja/
+ ${MKDIR} ${RUBY_DOCDIR}/eb/ja
+ ${INSTALL_DATA} ${WRKSRC}/eb.html ${RUBY_DOCDIR}/eb/ja/
.endif
.include <bsd.port.post.mk>