summaryrefslogtreecommitdiff
path: root/math/ruby-bigfloat
diff options
context:
space:
mode:
authorAkinori MUSHA <knu@FreeBSD.org>2000-09-07 14:39:47 +0000
committerAkinori MUSHA <knu@FreeBSD.org>2000-09-07 14:39:47 +0000
commit6be33926020dcfa43ec8a1bf94700238962f3b92 (patch)
treeb915338a31558eaf368cfd16cdf2b7ec1e6e80db /math/ruby-bigfloat
parentFix the error detection routines at the end. (diff)
Update with bsd.ruby.mk. :>
Notes
Notes: svn path=/head/; revision=32391
Diffstat (limited to 'math/ruby-bigfloat')
-rw-r--r--math/ruby-bigfloat/Makefile29
-rw-r--r--math/ruby-bigfloat/pkg-plist12
2 files changed, 17 insertions, 24 deletions
diff --git a/math/ruby-bigfloat/Makefile b/math/ruby-bigfloat/Makefile
index 91501e08ca7b..bfa3ca740d2b 100644
--- a/math/ruby-bigfloat/Makefile
+++ b/math/ruby-bigfloat/Makefile
@@ -6,36 +6,29 @@
#
PORTNAME= bigfloat
-PORTVERSION= 1.1.3
+PORTVERSION= 1.1.3
CATEGORIES= math ruby
MASTER_SITES= http://www.tinyforest.gr.jp/ruby/
-PKGNAMEPREFIX= ruby-
+PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
DIST_SUBDIR= ruby
MAINTAINER= knu@FreeBSD.org
-BUILD_DEPENDS= ruby:${PORTSDIR}/lang/ruby
-RUN_DEPENDS= ruby:${PORTSDIR}/lang/ruby
-
-INSTALL_TARGET= site-install
+USE_RUBY= yes
+USE_RUBY_EXTCONF= yes
NO_WRKSUBDIR= yes
-PLIST_SUB= RUBY_VER="${RUBY_VER}" RUBY_ARCH="${RUBY_ARCH}"
-
-RUBY?= ${LOCALBASE}/bin/ruby
-RUBY_VER?= 1.4
-RUBY_ARCH?= ${ARCH}-freebsd${OSREL}
-
-do-configure:
- @cd ${WRKSRC}; ${SETENV} ${CONFIGURE_ENV} ${RUBY} extconf.rb
+INSTALL_TARGET= site-install
post-install:
.if !defined(NOPORTDOCS)
- ${MKDIR} ${PREFIX}/share/doc/ruby/bigfloat/ja
+ ${MKDIR} ${RUBY_DOCDIR}/bigfloat/ja
${INSTALL_DATA} ${WRKSRC}/README ${WRKSRC}/bigfloat_en.html \
- ${PREFIX}/share/doc/ruby/bigfloat
+ ${RUBY_DOCDIR}/bigfloat
${INSTALL_DATA} ${WRKSRC}/bigfloat.html \
- ${PREFIX}/share/doc/ruby/bigfloat/ja
+ ${RUBY_DOCDIR}/bigfloat/ja
.endif
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+.include "${PORTSDIR}/Mk/bsd.ruby.mk"
+.include <bsd.port.post.mk>
diff --git a/math/ruby-bigfloat/pkg-plist b/math/ruby-bigfloat/pkg-plist
index 95ea4b50eb9e..ed11dacc362b 100644
--- a/math/ruby-bigfloat/pkg-plist
+++ b/math/ruby-bigfloat/pkg-plist
@@ -1,6 +1,6 @@
-lib/ruby/site_ruby/%%RUBY_VER%%/%%RUBY_ARCH%%/BigFloat.so
-share/doc/ruby/bigfloat/ja/bigfloat.html
-share/doc/ruby/bigfloat/README
-share/doc/ruby/bigfloat/bigfloat_en.html
-@dirrm share/doc/ruby/bigfloat/ja
-@dirrm share/doc/ruby/bigfloat
+%%RUBY_SITEARCHLIBDIR%%/BigFloat.so
+%%RUBY_DOCDIR%%/bigfloat/ja/bigfloat.html
+%%RUBY_DOCDIR%%/bigfloat/README
+%%RUBY_DOCDIR%%/bigfloat/bigfloat_en.html
+@dirrm %%RUBY_DOCDIR%%/bigfloat/ja
+@dirrm %%RUBY_DOCDIR%%/bigfloat