aboutsummaryrefslogtreecommitdiff
path: root/math
diff options
context:
space:
mode:
authorAkinori MUSHA <knu@FreeBSD.org>2001-03-28 17:03:41 +0000
committerAkinori MUSHA <knu@FreeBSD.org>2001-03-28 17:03:41 +0000
commite0e828a1a84ac7af343426a2a1128d031a8d505e (patch)
tree3df80d06b250a7290e4bfdff6423720bdd69b4cf /math
parentde5f3ad69ddee361127f6a878bfb26cdd0b0a773 (diff)
downloadports-e0e828a1a84ac7af343426a2a1128d031a8d505e.tar.gz
ports-e0e828a1a84ac7af343426a2a1128d031a8d505e.zip
Notes
Diffstat (limited to 'math')
-rw-r--r--math/ruby-bigfloat/Makefile25
-rw-r--r--math/ruby-bigfloat/distinfo4
2 files changed, 22 insertions, 7 deletions
diff --git a/math/ruby-bigfloat/Makefile b/math/ruby-bigfloat/Makefile
index 4c4d6240e7be..7bad6745f072 100644
--- a/math/ruby-bigfloat/Makefile
+++ b/math/ruby-bigfloat/Makefile
@@ -6,11 +6,13 @@
#
PORTNAME= bigfloat
-PORTVERSION= 1.1.5
+PORTVERSION= 1.1.6
CATEGORIES= math ruby
MASTER_SITES= http://www.tinyforest.gr.jp/ruby/
PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
+DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${PORTNAME}.html ${PORTNAME}_en.html
DIST_SUBDIR= ruby
+EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
MAINTAINER= knu@FreeBSD.org
@@ -20,13 +22,24 @@ USE_RUBY_EXTCONF= yes
NO_WRKSUBDIR= yes
INSTALL_TARGET= site-install
+DOCS_EN= README ${PORTNAME}_en.html
+DOCS_JA= ${PORTNAME}.html
+
+post-extract:
+ ${RUBY} -pe 'gsub %r|\./(${PORTNAME}_en.html)|, "../\\1"' \
+ ${_DISTDIR}/${PORTNAME}.html > ${WRKSRC}/${PORTNAME}.html
+ ${RUBY} -pe 'gsub %r|\./(${PORTNAME}.html)|, "./ja/\\1"' \
+ ${_DISTDIR}/${PORTNAME}_en.html > ${WRKSRC}/${PORTNAME}_en.html
+
post-install:
.if !defined(NOPORTDOCS)
- ${MKDIR} ${RUBY_DOCDIR}/bigfloat/ja
- ${INSTALL_DATA} ${WRKSRC}/README ${WRKSRC}/bigfloat_en.html \
- ${RUBY_DOCDIR}/bigfloat
- ${INSTALL_DATA} ${WRKSRC}/bigfloat.html \
- ${RUBY_DOCDIR}/bigfloat/ja
+ ${MKDIR} ${RUBY_DOCDIR}/${PORTNAME}/ja
+.for f in ${DOCS_EN}
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/${PORTNAME}/
+.endfor
+.for f in ${DOCS_JA}
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/${PORTNAME}/ja/
+.endfor
.endif
.include <bsd.port.mk>
diff --git a/math/ruby-bigfloat/distinfo b/math/ruby-bigfloat/distinfo
index 318019338790..e14e5b4e8fde 100644
--- a/math/ruby-bigfloat/distinfo
+++ b/math/ruby-bigfloat/distinfo
@@ -1 +1,3 @@
-MD5 (ruby/bigfloat-1.1.5.tar.gz) = e11581339af4efc8d1505062fd09377b
+MD5 (ruby/bigfloat-1.1.6.tar.gz) = 29ffba8bf4bf535fccd247fc49065f19
+MD5 (ruby/bigfloat.html) = dcaf49e13f13cad6978f9e0d24f18e37
+MD5 (ruby/bigfloat_en.html) = 8ce760f62a03b11a807bde94eafef07f