summaryrefslogtreecommitdiff
path: root/math/ruby-bigfloat/Makefile
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/ruby-bigfloat/Makefile
parentadd paragui (diff)
Update to 1.1.6.
Diffstat (limited to '')
-rw-r--r--math/ruby-bigfloat/Makefile25
1 files changed, 19 insertions, 6 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>